how to use CAN with CubeMX and STM32F1 / F4, UM1850 and other HAL+LL drivers documentation not up to date with new CAN Library since fall 2017
Hi everyone,
I want to use CAN with my STM32F103CB and STM32F429ZIT, but the CAN TX and RX Pins do not do anything on both boards. I am using CubeMX 5.3 and F1 Lib 1.8.0 / F4 Lib 1.24.1
From the CubeMX CAN example project for the STM32446E_Eval board I learned how to use the new CAN library:
- CAN_Init() ( done by CubeMX )
- CAN_ConfigFilter()
- CAN_Start()
- gather CAN header and CAN data
- CAN_AddTXMessage() - send CAN message
- CAN_GetTXMailboxesFreeLevel() - poll for send complete
- CAN_GetRXFifoFillLevel() - poll for incoming message
- CAN_GetRxMessage() - get incoming message
No matter what board ( F1 or F4) the RX and TX Pins of the uC are inactive. TX is low and RX is high. Can you provide me a up to date HAL+LL drivers documentation to learn how to use CAN correctly or am I just missing a step during initialisation of the CAN bus with CubeMX ?
Best regards,
Markus.
