Hi, Martin
Sorry to interrupt you.
I add a breakpoint in IVOR1_Exception_Handler, the project would stop into it when running the code.
But if I add a breakpoint in IVOR2_Exception_Handler, the project would not stop when running the code.
So it seems the IVOR1_Exception (machine check) would happen while IVOR2_Exception (data storage) did not happen?
You said that "IVOR1 is not caused by SMPU, but by reading uninitialized SRAM."
I got a little puzzled.
I use the SMPU module to set last 4kB read only for M0(Z4a). And then I write the one the last 4kB.
And then the IVOR1 happened while the IVOR2 not.
I also run the code " i = *(unsigned int *)0x400bf000; *(unsigned int *)0x400bf000 = 0xAABBCCDD; " without setting any SMPU. It would run normally.
Then I thought IVOR1 was caused by SMPU.
Can you help me to understand those codes?
Thanks!
Regards,
Qiang