This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to check if Flash ECC is enabled...

Other Parts Discussed in Thread: RM46L852, HALCOGEN

Hi,

With reagrds to RM46L852, I would like to know how do we confirm if the
Flash ECC is enabled or not.

I am trying with a sample code LaunchProj0_RM46 on the RM46 LaunchPad,
the Flash ECC is enabled in the halcogen and I can see " _coreEnableFlashEcc_();"
in the sys_startup.c code.

After loading the program, with a break point after the code "mrc p15,#0x00,r0,c1,c0,#0x01"
I am checking the "ro" register(25th bit) to check if the ECC is enabled, but the "r0" resister value is
0x000000027, does it mean the Flash ECC is not enabled?

code from sys_core.asm...
----------------------------------------
.def _coreEnableFlashEcc_
.asmfunc

_coreEnableFlashEcc_

stmfd sp!, {r0}
mrc p15, #0x00, r0, c1, c0, #0x01
orr r0, r0, #0x02000000
dmb
mcr p15, #0x00, r0, c1, c0, #0x01
ldmfd sp!, {r0}
bx lr
--------------------------------------


Please let me know how to check if the Flash ECC is enabled in the program.

Best Regards
Kummi