Reading Erased PFLASH and DFLASH

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17612
Level 4
Level 4
First like received
Hi all,

How to read erased PFLASH and DFLASH?

Kind regards,
Lucas

#8042000 13258
0 Likes
1 Reply
User18237
Level 5
Level 5
First solution authored First like received
Hi Lucas,

In the case of the Aurix family, the PFLASH ECC mechanism implements a Safety ECC methodology by default. When PFLASH is erased, both the PFLASH address region and the associated ECC code are erased to a '0' value. An all '0' ECC code is not a validcode for an all '0' PFLASH memory, since the ECC code incorporates more information (as a safety mechanism). If the address is read while in the erased state, then this will generate an ECC error. The same behavior does not apply for erased DFLASH, since the ECC code only considers the data. An all '0' data has a valid ECC code of all '0'.

Best regards,
Mr. AURIX™
0 Likes