SafeTLib CPU MPU test failing on Soft Reset from the Application

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User21222
Level 1
Level 1
Hello all,,
Currently I am working on Aurix 27x microcontroller and have integrated SafeTLib package.
I am facing below issue for the CPU MPU test:
1) On normal Power-ON, all the SafeTLib tests passes and SW jumps to Application Software (Note: MPU feature is enabled in Application software)
2) When in Application SW, issuing the Soft Reset.
3) After Soft reset, all the tests in the SafeTLib passes except CPU MPU test (Failure Reason: 0x0001 2014)

Observed that Code Range Check for the Range 0 is failing. I have checked below SFRs setting and all are as per the test requirements.
But, the MPx trap is not generated on accessing the Protected Code region resulting in the failure.

SYSCON, PSW, CPXE_n, CPR, DPR, DPRE, DPWE

What could be the reason for the failure and are there any settings which would inhibit trap generation.
As the issue is faced only on Soft resets, is there any specific SFRs/settings which would supersede the current seetings.

Regards,
Suma.
0 Likes
0 Replies