2025-08-19 10:37 PM
I have the following issue: When the clock security system detects a clock fault on the HSE (running at 16 MHz), the controller sometimes resets with an illegal opcode as the reset cause, even though the deglitch filter is enabled.
I couldn’t find any information about this in the reference manual or the errata sheet.
The controller is an STM8L151G6U6. The external clock runs at 16 MHz, and the clock prescaler is set to 1 (CLK_CKDIVR = 0).