cancel
Showing results for 
Search instead for 
Did you mean: 

Help solve the initialization problem bxCAN

SVolo
Associate II

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

1 REPLY 1
SVolo
Associate II