When I'm trying to enable Flash ECC, using "_coreEnableFlashEcc_()" function from "Demo_Software_Ver1_1", my application crashes and "ERROR" pin drives low.
The function looks like:
.global _coreEnableFlashEcc_
.asmfunc
_coreEnableFlashEcc_:
mrc p15, #0x00, r0, c1, c0, #0x01
orr r0, r0, #0x02000000
mcr p15, #0x00, r0, c1, c0, #0x01
bx lr
.endasmfunc
I have already generated ECC data for the binary file (.out) using "nowECC" tool, and have programmed it to the appropriate location (0x00400000).
What's the problem can it be?
Thanks, Evgenyy.