Unable to Step Through Function in RAM

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

Unable to Step Through Function in RAM

跳至解决方案
2,258 次查看
chadgraham
Contributor V

Hello,

In my project, I am writing a custom Bootloader using a RT1060EVK and have the major portion of the code setup as XIP.  I am trying use the program to erase/program/check a different section of the onboard QSPI device so I can "update" the device.  I have taken steps to place the entire QSPI access function class in the SDRAM and I am getting a hard fault (Invalid State) when I execute my code.

To debug this, I would like to step through the code to see where the actual crash occurs.  Unfortunately, I can only run the program to the first breakpoint and then the program will progress no further.  (I have to move the breakpoint and restart the application to "step" to the next line.

Does anyone have any suggestions on what needs to change to enable the IDE to step through functions in RAM?

0 项奖励
回复
1 解答
2,244 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @chadgraham ,

You mean you want to debug the code in SDRAM? You can try to add '--cachelib libm7_cache.so' into RUN->Debug configure->project name-> LinkServer Debugger->Additinal options.

 

Regards,

Jing

在原帖中查看解决方案

1 回复
2,245 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @chadgraham ,

You mean you want to debug the code in SDRAM? You can try to add '--cachelib libm7_cache.so' into RUN->Debug configure->project name-> LinkServer Debugger->Additinal options.

 

Regards,

Jing