AnsweredAssumed Answered

FlexCAN_Deinit function i.mx RT 1064

Question asked by Emanuele Corini on Mar 12, 2020
Latest reply on Mar 19, 2020 by Emanuele Corini

Hi, i'm trying to stop CAN putting MDIS=1 and then reinit on the 1064 board, to play with low power mode.

I'm using flexcan_interrupt_transfer example.

 

There is an hardfault when executing FLEXCAN_Init() function. Are there any particular operations that need to be executed before re-initialization of CAN peripheral?

     /*...*/
     
     /* stop FlexCAN peripheral */
     FLEXCAN_Deinit(EXAMPLE_CAN);
     /* re-init FlexCAN peripheral */
     FLEXCAN_Init(EXAMPLE_CAN, &flexcanConfig, EXAMPLE_CAN_CLK_FREQ);
     
     /*...*/

Thanks in advance

 

Emanuele

Outcomes