Associate
September 10, 2019
Question
Help solve the initialization problem bxCAN
- September 10, 2019
- 1 reply
- 837 views
Hello.
I am testing a CAN bus using stm32 discovery (STM32F407).
I use the HAL library. In the CUBE IDE program, it automatically generates the MX_CAN2_Init function. It calls another function HAL_CAN_Init. At run time, HAL_CAN_Init is reset SLEEP bit
in MCR register but not reset SLAK bit MSR register . As a result, CAN not OK.
Appears mistake. What am I doing wrong??? Thank.
P.S. main.c file