Skip to main content
Gpeti
Senior
December 5, 2019
Solved

How to read STM32H7 SRAM ECC status?

  • December 5, 2019
  • 3 replies
  • 1887 views

I want to periodically check the state of the RAM ECC detection in my firmware on a STM32H753.

The ECC mechanism is well described in the Reference Manual for the Flash but not very well (in my opinion) for the RAM.

I've seen that there are dedicated interrupts for RAM ECC but it is not clear if they are triggered for single error or double error ?

Also, why a dedicated interrupt and not a BusFault (like it is done on the Flash if I understood correctly ?)

Also , I don't want to get interrupted for a single error (that is properly corrected). Instead I want to get the status periodically and log the error somewhere. What is the register to read to check whether a single error happened ?

This topic has been closed for replies.
Best answer by Imen.D

Hello,

RAMECC registers section will be available (in few weeks) in the next release of RM0433, with same RAM ECC chapter that it's already in RM0399 (STM32H745/755 and STM32H747/757).

Best Regards,

Imen

3 replies

berendi
Principal
December 5, 2019

RAMECC status and interrupt flags are defined in the stm32h7??xx.h headers, and there are some code examples in stm32h7xx_hal_ramecc.h/.c

Apparently it's possible to independently mask single/double ecc fault interrupts.

There is application note AN5342 as well, but it's not very helpful.

Gpeti
GpetiAuthor
Senior
December 5, 2019

Thank you, I didn't notice there was a HAL. What is incredible is that these registers RAMECC_*** are not defined in the Ref Manual or Prog Manual !!

Are we supposed to understand how a peripheral works by reading the HAL code ?

waclawek.jan
Super User
December 5, 2019

> What is incredible is that these registers RAMECC_*** are not defined in the Ref Manual or Prog Manual !!

@Imen DAHMEN​  can you please have a look at this? Cube/HAL is not supposed to be the primary source of information.

Thanks,

JW

Imen.DBest answer
Technical Moderator
December 5, 2019

Hello,

RAMECC registers section will be available (in few weeks) in the next release of RM0433, with same RAM ECC chapter that it's already in RM0399 (STM32H745/755 and STM32H747/757).

Best Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Gpeti
GpetiAuthor
Senior
December 5, 2019

Thank you. I didn't think to have a look to other STM32H7 ref manuals.