Is there a way for an STM8 MCU to determine programmatically if the SWIM interface is currently running?
Hi. Is there a way for an STM8 MCU to determine programmatically if the SWIM interface / ICP / STVD debugger are being used? I've tried checking the SWD bit in CFG->GCR and SWIM->CSR. But neither byte seems to change from SWIM debugging to a power on restart. The reason I ask is because an area of data EEPROM memory is always being overwritten while debugging and evidently isn't while running without STVD.
