Hi,
I can see it's caused by missing ECC initialization of RAM memory:
#ifdef START_FROM_FLASH
/* Init ECC RAM */
ldr r1, =__RAM_START
ldr r2, =__RAM_END
subs r2, r1
subs r2, #1
ble .LC5
movs r0, 0
movs r3, #4
.LC4:
str r0, [r1]
add r1, r1, r3
subs r2, 4
bge .LC4
.LC5:
#endif
This code in startup file is not executed because START_FROM_FLASH is not defined in the project. You can add the definition here:
And then it will work.
Regards,
Lukas