OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 6659|回复: 1

i.mx rt1052分散加载文件

[复制链接]

8

主题

25

帖子

0

精华

初级会员

Rank: 2

积分
181
金钱
181
注册时间
2015-12-21
在线时间
44 小时
发表于 2022-11-19 22:21:39 | 显示全部楼层 |阅读模式
1金钱

#define m_text_start                   0x60002400
#define m_text_size                    0x01FFDC00
#define m_text_data_start           0x80002400
#define m_text_data_size            0x01FFDC00

ER_m_text m_text_start m_text_size { ; load address = execution address
    * (InRoot$$Sections)
    .ANY (+RO)
  }
这是主程序执行区设置,放在了外部Flash,这样编译是正确的,现在我想把主程序的执行区改到外部SDRAM
就是这样      
ER_m_text m_text_data_start m_text_size { ; load address = execution address
    * (InRoot$$Sections)
    .ANY (+RO)
  }
这样编译不通过
linking...
.\Objects\text.axf: Error: L6202E: entry.o(.ARM.Collect$$$$00000000) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry4.o(.ARM.Collect$$$$00000003) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry5.o(.ARM.Collect$$$$00000004) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry7b.o(.ARM.Collect$$$$00000008) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry8b.o(.ARM.Collect$$$$0000000A) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry9a.o(.ARM.Collect$$$$0000000B) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry12b.o(.ARM.Collect$$$$0000000E) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry10a.o(.ARM.Collect$$$$0000000F) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry11a.o(.ARM.Collect$$$$00000011) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: entry4.o(.ARM.Collect$$$$00002714) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: init.o(.text) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: handlers.o(i.__scatterload_copy) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: handlers.o(i.__scatterload_null) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: handlers.o(i.__scatterload_zeroinit) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6202E: anon$$obj.o(Region$$Table) cannot be assigned to non-root region 'ER_m_text'
.\Objects\text.axf: Error: L6203E: Entry point (0x80002401) lies within non-root region ER_m_text.
Finished: 0 information, 0 warning and 16 error messages.
".\Objects\text.axf" - 16 Error(s), 0 Warning(s).
最后发现执行区的地址只能是m_text_start,其他地址都报错,不知道怎么搞了














正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

13

主题

643

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
2432
金钱
2432
注册时间
2019-12-28
在线时间
527 小时
发表于 2022-12-3 10:46:20 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-24 21:03

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表