cancel
Showing results for 
Search instead for 
Did you mean: 

Hi I am using STM32H747 controller. I want to test the ECC functionality (for ROM) of the same. How can i inject an error to check if it really raises the flag or not?

Sagar Choudhary
Associate

STM32H747, STM32H750

2 REPLIES 2
alister
Lead

Flash words are 32 bytes, 32-byte aligned.

Method is

  1. Select a flash word that's not been programmed since erasing the sector.
  2. Program the flash word with data that's neither all 1s or all 0s.
  3. Program the flash word again with data that differs in at least one of the 1 positions.
SLand
Associate II

I have tried this advice on the NUCLEO-H743ZI2 board (STM32H743ZI micro) and have been unable to get it to do an ECC FLASH interrupt. Has anyone got this working and if so, could you share your code?

Does the flash word written have to be any certain pattern?