RT1052 image设置跳转app的地址

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1052 image设置跳转app的地址

495 Views
qq240997293
Contributor I

本人的项目使用RT1052进行项目开发,将代码存储与flexspi下的norflash中,运行代码是将代码搬运到sdram中进行。
其中norflash的0x0000-0x1000存储了FDCB数据,0x1000-0x2000存储了image相关信息,0x2000-0x200000存储了app程序。
为了实现支持源码保护的bootloader功能,我是将新的代码下载到0x202000-0x400000区域,再通过修改image中的bootdata地址与大小实现程序的选择,但是实际上代码跳转无效。
bootdata.addr = 0x202000, bootdata.size = 0x1FE000.
还望得到解决

0 Kudos
1 Reply

486 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
非常感谢使用NXP产品,很高兴为你提供技术支持!
从你的描述判断,norflash的0x0000-0x1000存储了FDCB数据,0x1000-0x2000存储了image相关信息,本来0x2000-0x200000是存储app程序,但是你现在将代码下载到0x202000-0x400000区域,然后进行跳转,是这样的流程吗?
如果是,application code的链接到哪个区域,就必须存储在哪个区域的,是必须要匹配,否则不可能跳转成功的。
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos