RT1170: Debugging large SRAM Code (J-Link Script Question)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RT1170: Debugging large SRAM Code (J-Link Script Question)

跳至解决方案
768 次查看
lsrbigfoot
Contributor III

I am currently using IAR EWARM for debugging ITCM code >64 KB on an i.MX RT1170 MCU.

One common observation from debug log I observe is the following after JLink loads the code into ITCM:

J-Link script: 0x5AA60FF0 has been written to address 0xFFFC


Is there a reason for the above action?
Is this associated with a J-Link script or something that is internal to the J-Link driver?

If I do something as simple as "Attach to Running Target" or Debug Reset (after pausing code) the above message displays in debug log.

With text region starting at 0x400 (m_text_start) and ending at 0x3FFFF (m_text_end), there easily can be a scenario where the above action results in text region being overwritten at address 0xFFFC by the JLink during debug, if the ITCM code allocation exceeds ~64 KB. 

I worked around this be making m_text_start 0x10000 instead of 0x400 avoiding accesses to address 0xFFFC by J-Link.

If feasible, is there a way for JLink to write 0x5aa60ff0 somewhere else (other than 0xFFFC) during ITCM debug?

标记 (4)
0 项奖励
回复
1 解答
713 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @lsrbigfoot 

Many thanks for your patience.

Yes, it is related to the jlinkscript. 

Please refer to https://blog.csdn.net/Henjay724/article/details/118042904 This post talks about the 0x5AA60FF magic number, or identification number. Please translate it to English and check the 2 Solve the identification problem caused by non-overlapping ROM support. This is user by the i.MX RT UFL project. It is  basically a number to identify the i.MX RT117x. I consider that you may customize the RTL UFL project and see, if possible, change the address for this number. 

I hope this could help you. 

Diego

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
672 次查看
lsrbigfoot
Contributor III

Thanks Diego!

Knowing that I was evaluating RT-UFL, your response answered my question perfectly.

0 项奖励
回复
714 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @lsrbigfoot 

Many thanks for your patience.

Yes, it is related to the jlinkscript. 

Please refer to https://blog.csdn.net/Henjay724/article/details/118042904 This post talks about the 0x5AA60FF magic number, or identification number. Please translate it to English and check the 2 Solve the identification problem caused by non-overlapping ROM support. This is user by the i.MX RT UFL project. It is  basically a number to identify the i.MX RT117x. I consider that you may customize the RTL UFL project and see, if possible, change the address for this number. 

I hope this could help you. 

Diego

 

0 项奖励
回复