SMU resets on Unlock - TC234

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

cross mob
User20083
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted
Hi,

as soon as CFGLCK is written and IfxScuWdt_setSafetyEndinit() is called, the processor goes to PC: 0x80000380 00 A0 DEBUG 4319.attach

see image below for registers at time of DEBUG

What is the cause for the DEBUG event?

CODE Below:
IfxDts_Dts_Config DTS_configuration;
static float32 DTS_stored_temp_celsius_g;

IfxScuWdt_clearSafetyEndinitInline(IfxScuWdt_getSafetyWatchdogPasswordInline());
SCU_RSTCON.B.SMU = 0x1; /* Enable the SMU system reset request */
IfxScuWdt_setSafetyEndinitInline(IfxScuWdt_getSafetyWatchdogPasswordInline());


IfxSmu_unlock(&MODULE_SMU)
IfxSmu_setAlarmConfig(&MODULE_SMU, IfxSmu_Alarm_ScuDtsTemperatureOverflow, IfxSmu_AlarmConfig_scuReset);
IfxSmu_setAlarmConfig(&MODULE_SMU, IfxSmu_Alarm_ScuDtsTemperatureUnderflow, IfxSmu_AlarmConfig_scuReset);
IfxSmu_lock(&MODULE_SMU);

// Set SSM to RUN mode
IfxSmu_start(&MODULE_SMU);

IfxDts_Dts_initModuleConfig(&DTS_configuration);

DTS_configuration.lowerTemperatureLimit = (float32)20.0;
DTS_configuration.upperTemperatureLimit = (float32)40.0;

// No DTS interrupts enabled
DTS_configuration.isrPriority = 0;

IfxDts_Dts_initModule(&DTS_configuration);

DTS_stored_temp_celsius_g = IfxDts_Dts_getTemperatureCelsius();

IfxDts_Dts_startSensor();
0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
User20083
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted
attached is a copy of the project

0 Likes