cancel
Showing results for 
Search instead for 
Did you mean: 

Error Correcting Code (ECC) in STM32L4

Alexandre Chirouze
Associate II
Posted on September 22, 2017 at 10:32

Hi,

I have a question which i'm not able to find an understandable answer in the datasheet. The STM32L4 seems to have an Error Correction Code function embedded inside its Flash memory.

According to an ST powerpoint, the embedded ECC is 8 bits long for a 64-bits word and can detect up to 2 errors on the same 64-bits word but just correct one of these. 

If an error is detected and/or corrected, the ECCC bit is set in FLASH_ECCR register.

My questions are : Do I have to initialize and start this feature by software? Can I catch an interrupt when an error is detected or do I have to check the FLASH_ECCR register by myself? When the ECC check is made ? I mean, the memory address will be checked when I want to access it or anything else?

Thanks a lot if you can answer me.

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on September 22, 2017 at 11:19

0690X00000608K8QAI.png

View solution in original post

4 REPLIES 4
Posted on September 22, 2017 at 10:49

0690X00000608JkQAI.png
Alexandre Chirouze
Associate II
Posted on September 22, 2017 at 11:27

Thanks a lot !

Posted on September 22, 2017 at 10:55

Thanks for the screenshot, so I have to configure the ECCCIE bit, but I still have the same question : they said : 'if ECCCIE is set, an interrupt is generated' -> Which interrupt, how can I catch it ?

Posted on September 22, 2017 at 11:19

0690X00000608K8QAI.png