stm32U073 tamper 4 push button will hardfault
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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);
Solved! Go to Solution.
- Labels:
-
STM32U0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-02 1:00 AM
hi Saket_Om,
Try disable WWDG, but still happened.
I follow how to debug to trace hard fault cause by "HAL_Delay".
Now use TIM to replace HAL_Delay. It seems work good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
Saket_Om
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-26 8:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-27 6:05 AM
Hello @russell_hsiao
Could you check without WWDG init please?
Saket_Om
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-02 1:00 AM
hi Saket_Om,
Try disable WWDG, but still happened.
I follow how to debug to trace hard fault cause by "HAL_Delay".
Now use TIM to replace HAL_Delay. It seems work good.
