- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Infineon,
From power on reset SMU_AG0 defual value is 0x249, i'm trying to clean it , code shown as below:
Line 1. STS register can receive the command and ASCE bit is set which means AGcan be cleaned.
but line 3 write 0xFFFFFFFF to MODULE_SMU.AG[0] the SMU_AG0 always 0x249.
Clean up SMU_AG0 process is same as datasheet description, is there any additional process needed?
uint16 passwd = IfxScuWdt_getSafetyWatchdogPassword();
/* set 0x5 to cmd register */
1. MODULE_SMU.CMD.U = IfxSmu_Command_alarmStatusClear;
/* disable the write-protection for registers */
2. IfxScuWdt_clearSafetyEndinit(passwd);
/* Write 1 in AG bit to clear alarm */
3. MODULE_SMU.AG[0].U = 0xFFFFFFFFU;
/* Restore back the write-protection for registers */
IfxScuWdt_setSafetyEndinit(passwd);
Best regards!
Solved! Go to Solution.
- Labels:
-
Aurix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Derrick. For many alarms, you'll need to clear the flags in the peripherals that flow into the SMU alarms. As an example: for ALM0[6], you need to clear the leftover PCACHE error set by the internal firmware after a reset.
To do that, your application needs to clear the error flags in Memory Test Unit for SSH instances 3 and 4. That's done by setting MC3_ECCD and MC4_ECCD to 0x10.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Derrick. For many alarms, you'll need to clear the flags in the peripherals that flow into the SMU alarms. As an example: for ALM0[6], you need to clear the leftover PCACHE error set by the internal firmware after a reset.
To do that, your application needs to clear the error flags in Memory Test Unit for SSH instances 3 and 4. That's done by setting MC3_ECCD and MC4_ECCD to 0x10.