[技术问答] keil 创建nuc120的工程的问题?

[复制链接]
 楼主| 乄iao鬼 发表于 2015-11-18 15:47 | 显示全部楼层 |阅读模式
最开始我取消use memory layout from target dialog 这个选项卡    keil 会在scatterfile 选项卡后面生成一个文件路径   这样会编译不过  ,然后我参考别人的工程发现删除了scatter file 这个选项卡 就正常了  我想了解一下为什么
  这个linker   scatter file  作用是什么?   另外求解另外一个问题
[url=请教一个nuc 的adc转换问题 https://bbs.21ic.com/forum.php?mo ... amp;fromuid=1578048 (出处: 21ic电子技术论坛)]请教一个nuc 的adc转换问题[/url]
9A5ED}31084QP@}UV7RRQ[L.png
Luis德华 发表于 2015-11-18 20:25 | 显示全部楼层
虽然用了很长时间的keil了不过确实没有研究过这个问题
mwang 发表于 2015-11-19 09:47 | 显示全部楼层
Scatter file (分散加载描述文件)用于 armlink 的输入参数,他指定映像文件内部各区 域的加载与运行时位置。

我这边不勾选use memory layout from target dialog的情况下,keil 并不会自行指定 Scatter file的。不知道你有做过其他操作么?

评分

参与人数 1威望 +1 收起 理由
乄iao鬼 + 1 很给力!

查看全部评分

 楼主| 乄iao鬼 发表于 2015-11-19 13:25 | 显示全部楼层
mwang 发表于 2015-11-19 09:47
Scatter file (分散加载描述文件)用于 armlink 的输入参数,他指定映像文件内部各区 域的加载与运行时位置 ...

没做其他操作  你试试把Scatter file  先勾选 然后确定 之后在不勾选 你看会指定位置么
IversonCar 发表于 2015-11-19 21:21 | 显示全部楼层
这个是主要压缩代码吧,我选了这个也报一个怪怪的错误,解决不了
天灵灵地灵灵 发表于 2015-11-19 23:03 | 显示全部楼层
那个是分散文件,就是生产的中间代码是分散的,那个文件进行记录,如果没有那个,估计就是代码聚集到一个文件,不分散。
598330983 发表于 2015-11-19 23:12 | 显示全部楼层
Scatter file (分散加载描述文件)用于 armlink 的输入参数,他指定映像文件内部各区 域的加载与运行时位置。不知道具体干啥用。
 楼主| 乄iao鬼 发表于 2015-11-20 09:05 | 显示全部楼层
598330983 发表于 2015-11-19 23:12
Scatter file (分散加载描述文件)用于 armlink 的输入参数,他指定映像文件内部各区 域的加载与运行时位置。 ...

我翻了下keil说明  大概就是这个意思
ARM Linker (armlink)

Detailed Listing File that is easy to understand is created by the linker. It contains details like the memory configuration, input modules, memory map, symbol table, and cross reference.
Global Code Listing file that shows symbolic disassembly of the generated code is created by the linker.
Static Stack Analysis for stack requirements at link-time is calculated by the linker.
Linker Set Linker related options. Typically, linker settings are required to configure the physical memory layout of the target system. Define the location of memory classes and sections in here.
zhuotuzi 发表于 2015-11-20 16:37 | 显示全部楼层
Static Stack Analysis for stack requirements at link-time is calculated by the linker.
好麻烦,楼主没事不明白的不要自己设计,默认就好,能用就行了,要说那IDE设置的地方太多了,99%用不上动。
C洛达尔多 发表于 2015-11-21 17:15 | 显示全部楼层
前几天调试stm32也遇到了这个问题了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

28

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部