cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect if debugging session is active on STM8S103?

AToth
Associate

Hello,

Is there a way to detect if debugging session is active (eg. IAR debugger is attached)?

Datasheet says DM and SWIM registers are only accessible from SWIM interface, not from STM8 bus.

Unfortunately IAR doesn't like the WFI instruction during debugging so I want to disable it for the session:

if(debugging_is_not_active)

{

WFI()

}

0 REPLIES 0