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
解決済! 解決策の投稿を見る。
Hello Emanuele,
I have modified flexcan_loopback example and tested your situation. Unfortunately, I did not see the hardfault you mentioned when executing FLEXCAN_Init.
Could you please test the example attached. When loopback is running, if you press SW8 on the board, the example executes FLEXCAN_Deinit and FLEXCAN_Init. After that the example worked correctly on my side.
Please let me know your findings.
Best regards,
Felipe
Hello Emanuele,
I have modified flexcan_loopback example and tested your situation. Unfortunately, I did not see the hardfault you mentioned when executing FLEXCAN_Init.
Could you please test the example attached. When loopback is running, if you press SW8 on the board, the example executes FLEXCAN_Deinit and FLEXCAN_Init. After that the example worked correctly on my side.
Please let me know your findings.
Best regards,
Felipe
You example it's working also on my side. Probably there is something wrong on my project
Thank you very much.