Dec 26, 2019
07:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 26, 2019
07:21 PM
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
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
- Tags:
- IFX
1 Reply
Dec 26, 2019
10:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 26, 2019
10:55 PM
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
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