AnsweredAssumed Answered

How to relocate/execute a function to DDR.

Question asked by TAN DINH on Dec 27, 2018
Latest reply on Jan 14, 2019 by TAN DINH

I based on the link: https://community.nxp.com/servlet/JiveServlet/download/104433-4-291307/Relocating+Code+and+Data+Using+the+KDS+GCC+Linker… and was able to relocate a function to the external DDR (0xa000_0000). I verified the relocated function was copied to the DDR and was able to single step to the function. However, as soon as I stepped to the first instruction "a4000000: push {r7, lr}", it led to the HardFault handler. Please help and let me know what am I missing. 

I include the KDS example project in the attachment.

 

Thanks

Attachments

Outcomes