Hello,
I'm encountering a HardFault when attempting to read a byte from the DRAM memory-mapped regions on the i.MX93's Cortex-M33 core. I'm using MCUXpresso and have written the following code:
#define ADDRESS_READ 0xC0000000//(I tried 0xC0000000 0xA0000000 0x80000000)
volatile uint32_t *secureMemPtr = (volatile uint32_t *) ADDRESS_READ;
secureValue = *secureMemPtr;
When debugging in MCUXpresso, the code consistently jumps to the HardFault_Handler at the line:
ldr r0,=HardFault_Handler
bx r0
This loop repeats continuously.
Could you please advise on how to correctly read words from the DRAM?
Thank you for your assistance!
