Skip to main content
AToth
Associate
November 22, 2019
Question

How to detect if debugging session is active on STM8S103?

  • November 22, 2019
  • 0 replies
  • 771 views

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()

}

    This topic has been closed for replies.