Skip to main content
Visitor II
Jun 26, 2025 12:40 PM UTC
Question

ECC hardFault on SRAM3 starting from empty project (stm32u585vit6)

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?

 

 

This topic has been closed for replies.

1 reply

KDJEM.1
ST Technical Moderator
Jul 4, 2025 1:40 PM UTC

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 "Best answer" on the reply which solved your issue or answered your question.