2019-05-02 08:14 AM
--------------------------------------------------------------------------------------------------------------------
/* initialize CAN controller, setup timing, pin description, CAN mode ...*/
/* Select clock source for CAN first */
FLEXCAN_CTRL1 |= FLEXCAN_CLKSRC; /* Source --> quartz/bus clock */
/* Enable CAN module */
FLEXCAN_MCR |= FLEXCAN_MCR_FRZ;
FLEXCAN_MCR &= ~FLEXCAN_MCR_MDIS;
while((FLEXCAN_MCR_LPM_ACK & FLEXCAN_MCR)) {}
--------------------------------------------------------------------------------------------------------------------
The SPC570S MCU fails to escape from CAN's lowpower mode (while(~) in the above code).
This rarely happens,
but it can not cleared by watchdog reset
and is only released when power is completely shut off.
mode is DRUN, CAN clock is 40mhz, crystal is 8Mhz, and clock source is IRC.
What settings can I escape from CAN low powermode?
Solved! Go to Solution.
2019-07-17 08:41 AM
Hello ,
Have you set correctly the GPIO matching your CAN0 register
could you check the chapter "FlexCAN initialization sequence" ?
38.5.1
Best Regards
Erwan
2019-07-17 08:41 AM
Hello ,
Have you set correctly the GPIO matching your CAN0 register
could you check the chapter "FlexCAN initialization sequence" ?
38.5.1
Best Regards
Erwan