AnsweredAssumed Answered

Check if debugger is connected | S32K14x

Question asked by Prasann Rawke on Oct 17, 2019
Latest reply on Nov 9, 2019 by Prasann Rawke

Hello guys,

 

I am using semihosting on S32K144 for debugging (using printf statements) in my project. I observed that when the debugger is detached, code gets stuck at 'printf'.

 

I want to know how to check if the debugger is connected in-code, so that i can bypass/redirect the printf to some empty function when debugger is not connected.

 

Regards,

Prasanna

Outcomes