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

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

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

跳至解决方案
1,264 次查看
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 项奖励
回复
1 解答
1,254 次查看
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 项奖励
回复
2 回复数
1,255 次查看
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 项奖励
回复
1,249 次查看
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 项奖励
回复