- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
good morning everyone,
I have a problem with debugging and the Restart button. When I press it the system doesn't restart but stays running, if I finally press the “pause” key the system hangs in the boot area (pc value= 0x1c0010bc boot ROM) with the sp well outside the imposed limit.
What I do is start with debug, wait for it to stop at the first main instruction and press “restart”.
The MCU is MKE18F512, I am debugging with MCUXpressoIDE v11.9 (SDK 2.6.0) and a Pemicro Universal Multilink.
I have already done everything, even downloaded and tried the latest rev of MCUXpressoIDE, without success.
A curious thing happens: I have two projects, very similar, with the same MCU, same MCUXpressoIDE, same SDK: with one project “Restart” works, with the other one it doesn't.
What could be the cause? Where could I compare the two projects to see where is the difference that causes the malfunction?
Debugging in this way, having to do a re-boot each time is very penalizing....
I have noticed that in the cummunity more than one person has had problems with the restart, but there is no trace of a solution.
Does anyone have any suggestions?
thanks!
Fabrizio
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here I found the solution to my problem:
https://community.nxp.com/t5/Kinetis-Microcontrollers/Boot-from-flash/m-p/804044
the logical state of the NMI pin at startup is fundamental to boot from ROM bootloader or Flash.
The function is similar to that of the BOOT pin on STM32 MCUs, except that the designation of “BOOT” gets your attention right away and you adjust accordingly, while NMI is a bit more ambiguous...
If I had not found this post I might still be here looking for why....
Edwin, thank you equally for your kind reply.
Fabrizio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @fabrizioefm,
Does this issue happen with other debuggers?
Please try deleting the "Debug.launch" file in your project, then cleaning the project by selecting "Project > Clean" on the top bar menu and try again.
BR,
Edwin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here I found the solution to my problem:
https://community.nxp.com/t5/Kinetis-Microcontrollers/Boot-from-flash/m-p/804044
the logical state of the NMI pin at startup is fundamental to boot from ROM bootloader or Flash.
The function is similar to that of the BOOT pin on STM32 MCUs, except that the designation of “BOOT” gets your attention right away and you adjust accordingly, while NMI is a bit more ambiguous...
If I had not found this post I might still be here looking for why....
Edwin, thank you equally for your kind reply.
Fabrizio
