Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUBEMX for STM32H7 initialise issue #38

Open
nickirani opened this issue Jul 19, 2023 · 1 comment
Open

CUBEMX for STM32H7 initialise issue #38

nickirani opened this issue Jul 19, 2023 · 1 comment
Labels
pending-fix Bug confirmed, in process to fix it.

Comments

@nickirani
Copy link

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

@HamedJafarzadeh
Copy link
Collaborator

HamedJafarzadeh commented Jul 20, 2023

@nickirani Thanks for reporting out. I can confirm this issue. It needs to be addressed either in the CANOpenNode config code or Readme doc.

One solution could be checking for FiFo level in Init phase and return relevant error if it wasn't right.

@HamedJafarzadeh HamedJafarzadeh added the pending-fix Bug confirmed, in process to fix it. label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-fix Bug confirmed, in process to fix it.
Projects
None yet
Development

No branches or pull requests

2 participants