TC377 Alarm status can not be cleaned

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

cross mob
Derrick
Level 1
Level 1
5 sign-ins First reply posted First question asked

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!

0 Likes
1 Solution
µC_Wrangler
Employee
Employee
50 solutions authored 100 sign-ins 25 likes received

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.

View solution in original post

0 Likes
1 Reply
µC_Wrangler
Employee
Employee
50 solutions authored 100 sign-ins 25 likes received

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.

0 Likes