Part Number: AM2634
Tool/software:
Hello,
During my development I faced a weird issue, The FSM reset was working fine without any problem but lately, I was updating some configuration files in the application. After that the FSM reset is not working.
The MCAL code did not change (I am using MCAL version 9.1.0.0) and I have made many debugging without finding the root cause.
In the older binary, once I step over _wfi() the ECU resets, but no reset in the newer binary happens.
Could you please guide me on that?
/******************************************************************************
* Function name: Target_R5SS0TriggerSubsystemReset
* Description : Function to trigger Subsystem reset.
* Parameter : None
* Return value : None
* Remarks : None
* REQ : None
******************************************************************************/
static void Target_R5SS0TriggerSubsystemReset (void)
{
volatile uint32 regVal;
ctrlBASE_t* ptrCTRLRegs;
regVal = 0U;
/* Get the base address of the MSS RCM configuration registers */
ptrCTRLRegs = (ctrlBASE_t*)MCAL_CSL_MSS_CTRL_U_BASE;
regVal = ptrCTRLRegs->R5SS0_CONTROL;
CSL_FINS(regVal, MSS_CTRL_R5SS0_CONTROL_RESET_FSM_TRIGGER, 0x7);
ptrCTRLRegs->R5SS0_CONTROL = regVal;
/* execute wfi, and reset core0 */
__wfi();
}Yours,
Abdelrhman Afifi