cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate Flash ECC error ??

burhanuddin.shabbar21
Associate II

I wanted to test Error Correction code (ECC) for the flash memory (for both data flash and code flash) and was looking out for a way to generate these error. In the Reference manual (SPC560P40L3 micro), ECC Error Generation Register (EEGR) is given, but its mentioned for RAM error generation, is there any way we could also generate error for flash memory also??

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello Burhanuddin ,

there is an example on SPC5Studio 5.8.1

SPC560Bxx_RLA ECC Test Application for Discovery

Best regards

Erwan

View solution in original post

4 REPLIES 4
Uwe Bonnes
Principal III

I don't know about the SPC, but for the ECC protected STM32, a second write with a schanged pattern with more programmed bit to already programmed flash will provoke an ECC error.

burhanuddin.shabbar21
Associate II

Do you mean I should perform a second write operation without performing an erase operation to that location with some different value??

burhanuddin.shabbar21
Associate II

Hello All,

Is there some manual / Document where i can get more information about ECC handling and some test code through which i can verify ECC Error Scenario any help on the same is appreciated.

Thanks and Regards

Erwan YVIN
ST Employee

Hello Burhanuddin ,

there is an example on SPC5Studio 5.8.1

SPC560Bxx_RLA ECC Test Application for Discovery

Best regards

Erwan