ECC hardFault on SRAM3 starting from empty project (stm32u585vit6)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-26 5:40 AM
I'm getting an hard fault when trying to start ECC on SRAM3 with a very simple project doing just ECC enabling. I tried clearing the SRAM before calling HAL_RAMCFG_StartECC or by using HAL_RAMCFG_Erase, but the result is exactly the same. Here attached the sample project I use. Any suggestion or code examples on how to solve this issue?
- Labels:
-
Hardware components
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-07-04 6:40 AM
Hello @Sped and welcome to the community;
I recommend you to look at the Injecting and handling ECC errors in STM32H7 RAM - STMicroelectronics Community may help you.
Also, I think this article How to debug a HardFault on an Arm® Cortex®-M STM32 can help you to debug the HardFault.
I hope this help you.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
