MCU Xpresso blocks the MCU from free running

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

MCU Xpresso blocks the MCU from free running

Jump to solution
893 Views
Catosh
Contributor IV

Long story short: 
when I debug, the MCU is able to run.
Then I terminate the debug session, remove the debugger probe, perform a power cycle and the MCU is not able to run. 
Is there some command to remove the debugging probe and terminate the debug session leaving the MCU in free running mode from MCU Xpresso?

B.R.

L.T.

1 Solution
743 Views
BlackNight
NXP Employee
NXP Employee

Which version of the IDE are you using?

Are you using semihosting calls (printf(), etc)? If so, then they can block the microcontroller if no debug probe is attached.

Erich

View solution in original post

3 Replies
743 Views
lpcxpresso_supp
NXP Employee
NXP Employee

The easiest way to "disable" semihosting printf's is to reconfigure your project to link against a "nohost" variant of the C library. For SDK based projects, you can also reconfigure output in many cases so it is sent over a UART rather than the debug probe.

But alternatively, MCUXpresso IDE v10.1 allows projects which contain a hard fault handler that can trap and "recover" from a semihosted operation taking place when the debugger is not connected.

For more information please see chapter 13, "C/C++ Library Support" of the MCUXpresso IDE v10.1 User Guide.

Regards,

MCUXpresso IDE Support

0 Kudos
744 Views
BlackNight
NXP Employee
NXP Employee

Which version of the IDE are you using?

Are you using semihosting calls (printf(), etc)? If so, then they can block the microcontroller if no debug probe is attached.

Erich

743 Views
Catosh
Contributor IV

Hello Erich, 

Actually, yes. I 'll remove then and come back to the post!

#edit:

BTW is there some smart way to remove the semihosting calls, like undef from the preprocessor windows in settings menu?

0 Kudos