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 deb...
Hello,On STM8S103F3 MCU I, might have found a bug in the WWDT.Found nothing related in errata. My environment: IAR, HSI 16MhzProblem: kicking WWDG too early doesn't trigger instant reset.void main(void)
{
WWDG->CR = WWDG_CR_WDGA | 0x7F;
WWDG->W...
MISRA C: avoid malloc at all cost.USB configuration is known in advance so everything can be allocated during compilation.Again, poor/bloated SW from ST.