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

AURIX™ Forum Discussions

User18634
Level 1
Level 1
Dear Sir

I am using AURIX 2G controller TC387.
we are entering into trap when we read the data from flash when it is in erased state.

Please let me know how to disable the Errors, while reading from flash memory, if the flash is in erased state.

thank you!!
Gopi
0 Likes
1 Reply
VincentWan
Employee
Employee
First like received 25 replies posted 10 replies posted
Hi

As side effect of the all-0 error detection, an erased Flash range can’t be read without ECC errors. Also overprogramming of Flash ranges with all-1 would create entries with ECC errors.
If you disable ECC error, the trap will not occur.

ie,
; Disable FLASH traps
set CPU0_FLASHCON1 0x10000
set CPU1_FLASHCON1 0x10000
set CPU2_FLASHCON1 0x10000
set CPU3_FLASHCON1 0x10000
set CPU4_FLASHCON1 0x10000
set CPU5_FLASHCON1 0x10000
0 Likes