2025-05-25 10:34 PM
hi ,
i enable tamper4 and RTC in stm32mx and only enable bit RTC_CR_TAMPTS, TSE=0
no other code add into rtc.c or tamper.c
Using debug mode to clear TSF and CTAMP4F.
when push button will happen hard fault.
Only two code in main while loop "led" and "hal_delay", if i remove HAL_Delay , will not happen .
someone can help me?
HAL_Delay(1000);
HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_11);
2025-05-26 1:03 AM
Hello @russell_hsiao
Please check the article below to debug hardfault:
How to debug a HardFault on an Arm® Cortex®-M STM3... - STMicroelectronics Community
Could you share your .ioc file please then we can assiste you more effectively.
2025-05-26 8:42 AM
2025-05-27 6:05 AM
Hello @russell_hsiao
Could you check without WWDG init please?