This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952: Abort Exception on 64bit SDRAM misaligned accesses

Part Number: RM48L952

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