2019-11-22 08:15 AM
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()
}