LPC58S28 USB Multilink fail to connect after writing the stack pointer register

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

LPC58S28 USB Multilink fail to connect after writing the stack pointer register

Jump to solution
523 Views
YodaC
Contributor III

Hello,

I debuged my own board with PEMICRO Multilink and a LPC55s28 for months now without issues until I tried to change the address of the stack pointer by writing its register.

Code:
asm volatile("LDR R0, =0x20044000;");//Fin de SRAM4
asm volatile("MOV sp, R0;");

I flashed the code and debug with success until I unplugged the Multilink.
Now I can't connect it again on my board.

I could reflashed the good code via ISP and Flash Magic, but iI still cannot connect the Multilink.

Is there a solution or must I replace the LPC55s28 ?

Best regards

 

0 Kudos
1 Solution
513 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

How does it connect if you create a NEW project under a NEW workspace in ISP mode?

How does it work if other debug probe for example LPC-Link2?

Thanks,

Jun Zhang

 

View solution in original post

0 Kudos
2 Replies
514 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

How does it connect if you create a NEW project under a NEW workspace in ISP mode?

How does it work if other debug probe for example LPC-Link2?

Thanks,

Jun Zhang

 

0 Kudos
508 Views
YodaC
Contributor III

Hi Jun Zhang,

I created a New Workspace and new project and it has worked.
Then I imported my own project and it has worked too.

Thank you.

 

Best regards,

Christian

0 Kudos