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.

MSPM0G3507: SRAM region access occur hard fault interrupt

Part Number: MSPM0G3507


Hi:

When I review MSPM0G_TRM_V06, I find page 48 as below:

SRAM map 3 regions, what is the difference? I find the data in 0x2000 0000 region is the same as the data in 0x2020 0000 region through watching the memory browser.

If I define MEMORY SRAM as :

SRAM (WX)  : ORIGIN = 0x20200000, LENGTH = 0x00007800

In main function, I execute memcpy functions. If I copy data from 0x2020 7FF0 region, it can work normally, But if I copy data from 0x2000 7FF0, hard fault interrupt is occured.

memcpy(buffer1,0x20207FF0,4);
memcpy(buffer2,0x20007FF0,4);

if I write data in 0x0x20207FF0 first, and then execute memcpy functions(memcpy(buffer2,0x20007FF0,4)), it will not occur hard fault interrupt.

Can you help me check it out?