LPCXpresso54S018 - Debugger Cannot Halt Processor

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

LPCXpresso54S018 - Debugger Cannot Halt Processor

跳至解决方案
1,113 次查看
brian_ungar
Contributor III

I am using either the JLINK SEGGER Debugger or the Link Server debugger to upload some test code on to my LPCXpresso54S018 card. If the previously loaded code had a severe error that caused the CPU to not stop in a graceful way, then I get a message from the debugger saying that it cannot halt the processor when I try to upload new code.

The bad code is in flash and runs each time that the board is reset.

How do I force the CPU to halt or how do I clear out the code in flash so that it will not run on the next board reset? Is there a way to force the debugger to stop the CPU no matter what is going on?

Sometimes I can reflash the Link Server debugger and get it to upload a benign  Hello World program to overwrite the bad code in flash. However, this doesn't always work.

0 项奖励
回复
1 解答
1,107 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

You can mass erase flash using either J-Link SW or MCUxpresso included mass erase tool. This is explained briefly in MCUxpresso User Guide Chapter 11.3.1 Debug Quickstart Shortcuts (rev 11.6.0, 13/JUL/2022). You can found this user guide in the installation directory for MCUxpresso.

Let us know if there is something else we can help you with.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,108 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

You can mass erase flash using either J-Link SW or MCUxpresso included mass erase tool. This is explained briefly in MCUxpresso User Guide Chapter 11.3.1 Debug Quickstart Shortcuts (rev 11.6.0, 13/JUL/2022). You can found this user guide in the installation directory for MCUxpresso.

Let us know if there is something else we can help you with.

0 项奖励
回复