Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
elehab
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hello everyone,


We are using the TC367 processor in our project. When we read with WinIdea after mass erase, "?? characters" appears. When we try to read the data from the address 0xa04fff80 in the code, our code goes to the trap. What could be the reason for this?

 

elehab_0-1640087770267.png

 

Thanks.

0 Likes
1 Solution
µC_Wrangler
Employee
Employee
50 solutions authored 100 sign-ins 25 likes received

Because the AURIX PFLASH ECC algorithm includes the lower address bits, reading from erased memory always generates an uncorrectable ECC error.  If your application needs to check whether a range of memory is erased, use the Verify Erased Page command.

Setting ECCORDIS and changing TRAPDIS means that your application is no longer protected from ECC errors elsewhere in memory (such as the application code itself).

View solution in original post

0 Likes
4 Replies
FD_aurix
Level 5
Level 5
100 sign-ins 100 replies posted 5 solutions authored

I don't use isystem as debugger but probably this could be due to:

1- Bus error

2- if erased the ECC are all set to 0 and 0 is not the correct value of ECC for all the data set to 0. this probably create the ?? that you see 

 

 

Thanks for reply. 

The status of the ECCCORDIS bits where the trap is triggered is as in the picture below.  The status of the ECCCORDIS bits where the trap is triggered is as in the picture below. Neither enabling nor disabling the ECCCORDIS bits did not change anything. Do we need to change any other bit besides the ECCCORDIS bits?

elehab_1-1640096653397.png

 

 

0 Likes
FD_aurix
Level 5
Level 5
100 sign-ins 100 replies posted 5 solutions authored

I think you have to change also the TRAPDIS

https://community.infineon.com/t5/AURIX/disable-ECC-TC39XX/m-p/325024

 

0 Likes
µC_Wrangler
Employee
Employee
50 solutions authored 100 sign-ins 25 likes received

Because the AURIX PFLASH ECC algorithm includes the lower address bits, reading from erased memory always generates an uncorrectable ECC error.  If your application needs to check whether a range of memory is erased, use the Verify Erased Page command.

Setting ECCORDIS and changing TRAPDIS means that your application is no longer protected from ECC errors elsewhere in memory (such as the application code itself).

0 Likes