../../../os/hal/ports/STM32/LLD/FDCANv1/hal_can_lld.c: In function 'can_lld_start': ../../../os/hal/ports/STM32/LLD/FDCANv1/hal_can_lld.c:309:16: error: 'FDCAN_GlobalTypeDef' has no member named 'RXGFC'; did you mean 'GFC'? 309 | canp->fdcan->RXGFC = canp->config->RXGFC; | ^~~~~ | GFC make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:193: build/obj/hal_can_lld.o] Error 1 make: *** Waiting for unfinished jobs....
Is this planned already or would this be a new implementation? Since this is pretty critical for us I don't mind paying for it. Also, the H735 has 3x CAN. Thank you
Saw that the compile problem is just for one line that copy user provided value in a register, for the H7, the register name and fields are different, will try a a stupid fix with some conditionnal compilation directive to see if the actual driver work on H7 and will report here my finding.
Saw that the compile problem is just for one line that copy user provided value in a register, for the H7, the register name and fields are different, will try a a stupid fix with some conditionnal compilation directive to see if the actual driver work on H7 and will report here my finding.
Alexandre
I am testing the fix for H7 CAN. I will release it in the coming days.
I am testing the fix for H7 CAN. I will release it in the coming days.
Nice ! If you have some example code for FDCAN, that would also be handy since there is no testhal example right now
Alexandre
I committed the FDCANv2 driver for STM32H7 to both trunk and branch 21.11.x. Additionally, I added a sample demo using events. It's also possible to receive directly using the canReceive function with TIME_INFINITE.