I have been experimenting with different ways to create "No_Init" RAM space, which would be RAM data persistent over reset cycles (but undefined at a power cycle).
My question is, can I use CPU memory writes to initialize RAM?
I've noted that writing 32 bit values to un-initialized RAM causes an ECC error, but writing 64 bit values
asm: strd r1, r2, [r4]
on 8 byte boundaries seems to work fine. This makes sense with the 64/8 ECC scheme in hardware, but is this an acceptable and reliable way to initialize RAM on the RM57?
My plan is this:
At start, read no-init RAM space.
If ECC error
HW init all RAM, clear error, and continue.
If no ECC error
CPU init RAM *except* no-init RAM space, and continue.
Thanks,
Dan