CanOpenSTM32
CanOpenSTM32 copied to clipboard
CUBEMX for STM32H7 initialise issue
When setting up the FDCAN peripheral for STM32H7 through CUBE MX, the user must add a value to Tx Fifo Queue Elmts Nbr to allow transmission of data packets. Otherwise the check for free fifo level will fail constantly .
CO_driver_STM32.c .Line 259,
if (HAL_FDCAN_GetTxFifoFreeLevel(((CANopenNodeSTM32*)CANmodule->CANptr)->CANHandle) > 0)
will always evaluate to false otherwise