Question
STM32G4 Timer Break On Exceptions
Hello,
I would like to test the behaviour of STM32G4 MCU timers on exceptions. The SYSCFG register has several options for timer break. The HAL library provides the following macros to activate these options:
__HAL_SYSCFG_BREAK_ECC_LOCK();
__HAL_SYSCFG_BREAK_PVD_LOCK();
__HAL_SYSCFG_BREAK_SRAMPARITY_LOCK();
__HAL_SYSCFG_BREAK_LOCKUP_LOCK();
How can I generate exceptions for each case: FLASH ECC error, PVD error, SRAM Parity error, Core Lockup? Are there any example software test routines to generate them?
