Hello,
I was having an abort exception on 32bit accesses as described and solved in the following thread:
https://e2e.ti.com/support/microcontrollers/hercules/f/312/p/811890/3004735
As stated, that issue is solved but it ended up showing me another related issue.
If I try any non 4-byte-aligned access of 64bit data in the EMIF SDRAM, the RM48 throws an abort exception. I tried all MPU modes and also disabling the MPU but it did not solve.
The code for spotting the problem is pasted below
uint64_t *sdram_ptr; uint64_t var_test; sdram_ptr = (uint64_t *)0x80000000; var_test = *sdram_ptr; /* Read OK */
sdram_ptr = (uint64_t *)0x80000001; var_test = *sdram_ptr; /* Triggers an abort exception*/
sdram_ptr = (uint64_t *)0x80000002; var_test = *sdram_ptr; /* Triggers an abort exception*/
sdram_ptr = (uint64_t *)0x80000003; var_test = *sdram_ptr; /* Triggers an abort exception*/
sdram_ptr = (uint64_t *)0x80000004; var_test = *sdram_ptr; /* Read OK */
Thanks in advance for any help