Debug restart button don't work correctly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug restart button don't work correctly

Jump to solution
153 Views
fabrizioefm
Contributor II

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

0 Kudos
Reply
1 Solution
61 Views
fabrizioefm
Contributor II

 

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

View solution in original post

0 Kudos
Reply
2 Replies
84 Views
EdwinHz
NXP TechSupport
NXP TechSupport

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.

 

0 Kudos
Reply
62 Views
fabrizioefm
Contributor II

 

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

0 Kudos
Reply