Skip to main content
Visitor II
June 26, 2025
Question

ECC hardFault on SRAM3 starting from empty project (stm32u585vit6)

  • June 26, 2025
  • 1 reply
  • 319 views

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

    Technical Moderator
    July 4, 2025

    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