Debug doesnt work if program is located at 0x1000

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

Debug doesnt work if program is located at 0x1000

跳至解决方案
1,213 次查看
_Ferrari_
Contributor V

Dear all,

I developed a simple program on LPC55S28-EVK board that turns ON and OFF the on board RGB LEDs.

It works perfectly and I can debug it.

But if I move the software from default location (0x00000) to 0x10000 the program works but it is not possible to debug it.

_Ferrari__1-1706457934319.png

 

 

Did you have similar problem ? How did you fix it ?

Thank you very much for your help and cooperation

regards

 

标签 (1)
0 项奖励
回复
1 解答
1,179 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @_Ferrari_ 

luimarma is right. 

Just add based on comments from luimarma.

If you just want to debug, there is a method as below.

make sure that "soft reset" is used once the app is programmed in flash at the given address, forcing the debug stub/server to use the entry point found in the app.

Alice_Yang_0-1706696175995.png

 

BR

Alice

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,180 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @_Ferrari_ 

luimarma is right. 

Just add based on comments from luimarma.

If you just want to debug, there is a method as below.

make sure that "soft reset" is used once the app is programmed in flash at the given address, forcing the debug stub/server to use the entry point found in the app.

Alice_Yang_0-1706696175995.png

 

BR

Alice

0 项奖励
回复
1,191 次查看
luimarma
Contributor III

I believe that you need a second boot loader that points to 0x10000 so you jump to the correct location within the debugger.

At least this happens for me, if I have not installed the second boot loader then the debugger cannot find the code. When the SBL is installed it jumps to 0x10000 and then I get the break point at my main function to resume the debugging

0 项奖励
回复