ych wrote:I encountered a limitation caused by the chThdSleepS(OSAL_MS2I(1)) delay in the FDCANv2 driver for STM32. A similar delay also exists in FDCANv1.
Due to this delay, I’m unable to send CAN FD frames faster than 1 kHz from a single thread, whereas my application requires a 2 kHz transmission rate.
Could someone explain the reason for this delay? Which STM32 chips are actually affected by the issue that this delay is intended to address?
I have checked errata and can't find any related issue.
In my case (STM32H723xx), I reduced the delay to chThdSleepS(OSAL_US2I(100)), and everything works flawlessly. From my perspective, it would be better to either completely remove the delay or keep it only for the specific chips that truly require it.
Hi, that delay was left over from a previous workaround.
I believe there's no issue in removing it.
Could you give me some feedback on how FDCAN works without that sleep?
Thanks
Edoardo