- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Thanks.
Solved! Go to Solution.
- Labels:
-
Aurix
- Tags:
- memory read
- tc367
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you have to change also the TRAPDIS
https://community.infineon.com/t5/AURIX/disable-ECC-TC39XX/m-p/325024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).