can we write data into Pflash even if the address is written with 0X00?

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,

Can we successful write data into Pflash even if this address was already written with data 0x00 ? What will be happen ?

Best regards,
Lucas.

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

Yes, you can successful write data into Pflash even if this address already written with data 0x00, but it will generate an ECC error because the new ECC value can't be programmed properly. This will cause a correctable or uncorrectable ecc error on the page of the address.
Always erase the sector before you write any value to avoid wrong ECC values and errors.

Best regards,
Mr. AURIX™
0 Likes