Debug doesnt work if program is located at 0x1000

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug doesnt work if program is located at 0x1000

Jump to solution
517 Views
_Ferrari_
Contributor IV

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

 

Labels (1)
0 Kudos
Reply
1 Solution
483 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
484 Views
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 Kudos
Reply
495 Views
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 Kudos
Reply