After TC397XA PF0 is erased, why the data is not all "0" ?

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

cross mob
Mac_Zhao
Level 4
Level 4
Distributor - Macnica (Japan)
5 solutions authored 10 replies posted 10 questions asked

After I transferred the PF0 program to SRAM to run, then executed [Erase Logical Sector Range] in sequence.

It work well,  HF_ERRSR did not report an error, and HF_OPERATION also passed, no busy.

But when I check memory dump by TASKING, it is true that almost all the data is displayed as "0", but there are a few bits that are "1".

I thought it was due to bad memory or unstable current and voltage. So I repeated the test several times and changed the Triboard, but the result remained the same, it could not be erased to "0" in several fixed address.

I took a screenshot of part of it.
[Erase Logical Sector Range] can be that all PF fields become 0, is my understanding wrong?
Thank you for watching.

WarmSpring_0-1671614751312.png

WarmSpring_1-1671614773291.png

WarmSpring_2-1671614776723.png

WarmSpring_3-1671614804552.png

 

 

0 Likes
1 Solution
cwunder
Employee
Employee
100 solutions authored 5 likes given 50 likes received

You cannot directly read PFlash after an "Erase" operation. As you stated you have checked HF_ERRSR
and HF_OPERATION for errors and there were none. If you want to check the erased state of PFlash then you need to use the one of the following commands:

cwunder_0-1671672451054.png

cwunder_1-1671672613481.png

 

View solution in original post

2 Replies
cwunder
Employee
Employee
100 solutions authored 5 likes given 50 likes received

You cannot directly read PFlash after an "Erase" operation. As you stated you have checked HF_ERRSR
and HF_OPERATION for errors and there were none. If you want to check the erased state of PFlash then you need to use the one of the following commands:

cwunder_0-1671672451054.png

cwunder_1-1671672613481.png

 

Mac_Zhao
Level 4
Level 4
Distributor - Macnica (Japan)
5 solutions authored 10 replies posted 10 questions asked

Thank you for your answer, I have learned more about AURIX's ECC and flash command.

0 Likes