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?