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.
解決済! 解決策の投稿を見る。
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.
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.