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,271件の閲覧回数
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,261件の閲覧回数
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,262件の閲覧回数
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,256件の閲覧回数
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 件の賞賛
返信