Hi Dear Colleagues,
My customer got a requirement from their end customer,

Such a lib(.a file should be integrated into a specific RAM address and be protected by MPU.)
I create an MPC5775E example project, and modify the linker file like this:


Then I build the project and check the .map file, it shows that the .a file has been compiled into the expected address:


Then, I modify the region address in S32DS:


After that, I build the project again, with no errors or warnings.
Then I try to debug the project in the EVB, and the code will stack here:

It seems that the issue occurs when copying the data from rom to ram.
Then I remove all the changes that I made in the linker file, and change the test address in the mpu memory protection demo:

Set a breakpoint in the IVOR handle:

Retry to debug the demo, once I press the sw1 button on EVB, the code will stop in the IVOR handler, which shows that the mpu memory protection feature works at the region that I defined in S32DS.
Do you have any suggestions?
Best Regards
Weiyou