cancel
Showing results for 
Search instead for 
Did you mean: 

It does not escape from LPM_ACK (low power mode ack) of CAN0 register.

SKim.61
Associate

--------------------------------------------------------------------------------------------------------------------

/* 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?

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

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