打印
[技术问答]

keil 创建nuc120的工程的问题?

[复制链接]
819|9
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
乄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 (57.51 KB )

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  先勾选 然后确定 之后在不勾选 你看会指定位置么

使用特权

评论回复
5
IversonCar| | 2015-11-19 21:21 | 只看该作者
这个是主要压缩代码吧,我选了这个也报一个怪怪的错误,解决不了

使用特权

评论回复
6
天灵灵地灵灵| | 2015-11-19 23:03 | 只看该作者
那个是分散文件,就是生产的中间代码是分散的,那个文件进行记录,如果没有那个,估计就是代码聚集到一个文件,不分散。

使用特权

评论回复
7
598330983| | 2015-11-19 23:12 | 只看该作者
Scatter file (分散加载描述文件)用于 armlink 的输入参数,他指定映像文件内部各区 域的加载与运行时位置。不知道具体干啥用。

使用特权

评论回复
8
乄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.

使用特权

评论回复
9
zhuotuzi| | 2015-11-20 16:37 | 只看该作者
Static Stack Analysis for stack requirements at link-time is calculated by the linker.
好麻烦,楼主没事不明白的不要自己设计,默认就好,能用就行了,要说那IDE设置的地方太多了,99%用不上动。

使用特权

评论回复
10
C洛达尔多| | 2015-11-21 17:15 | 只看该作者
前几天调试stm32也遇到了这个问题了

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

28

帖子

0

粉丝