Skip to main content
Marco Perciavalle
Associate III
Jul 31, 2017 7:13 AM UTC
Question

CUBEMX CAN controller initialization doesn't work for STM32F446

Posted on July 31, 2017 at 09:13

Hi,

I simply generate the code using CUBEMX and I switch on CAN1 controller. I try to start the program but it halts on 'MX_CAN_Init()' function. In detail, it doesn't pass the 'while' at line 310, in 'stm32f4xx_hal_can.c'.

Is this a bug? Should I follow some preliminary instructions to make it work?

Thanks a lot!

#can #cube-mx #stm32f446re
This topic has been closed for replies.

1 reply

Elkin Granados
Associate II
Jul 31, 2017 3:32 PM UTC
Posted on July 31, 2017 at 17:32

Hi Marco,

In this post you could find information that could help to you:

https://community.st.com/0D50X00009XkYECSA3

Are you wiring a CAN tranceiver chip to Tx and Rxmicrocontrollers pins? I'm not quite sure, but Ihad same problem and I think that I solved it with the chip because its generate the acknowlegde signal that is waiting in the loop that it stands.