Skip to main content
SKim.61
Visitor II
May 2, 2019
Solved

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

  • May 2, 2019
  • 1 reply
  • 808 views

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

/* 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 topic has been closed for replies.
    Best answer by Erwan YVIN

    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

    1 reply

    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    July 17, 2019

    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.