This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3519: MCAN0 never switches to NORMAL from SW_INIT after STOP

Part Number: MSPM0G3519


Tool/software:

SYSCFG generates SYSCFG_DL_MCAN0_init() for MCAN and it is successfully finishes after RESET but I'm failing to complete it after STOP.

this is my latest "wakeup" procedure

                    DL_SYSCTL_setPowerPolicyRUN0SLEEP0();
                    DL_MCAN_enableModuleClock(MCAN0_INST);
                    DL_MCAN_disableClockStopGateRequest(MCAN0_INST);
                    while (DL_MCAN_isClockStopGateRequestEnabled(MCAN0_INST) == true);
                    DL_MCAN_addClockStopRequest(MCAN0_INST, false);

                    while(DL_MCAN_getClockStopAcknowledgeStatus(MCAN0_INST) == true);
                    DL_MCAN_disablePower(MCAN0_INST);
                    delay(200);
                    DL_MCAN_reset(MCAN0_INST);
                    delay(1000);
                    DL_MCAN_enablePower(MCAN0_INST);
                    delay(500);
                    gCheckTimer = false;
                    SYSCFG_DL_MCAN0_init();
//never goes beyond this point.
the autogenerated code has this loop: while (DL_MCAN_OPERATION_MODE_NORMAL != DL_MCAN_getOpMode(MCAN0_INST));
it loops forever, meaning the mode stays SW_INIT and never goes to NORMAL
tried all configuration of reset/enablePower/disablePower -nothing helps.
please advise.