Received FDCAN 64bytes data but FDCAN_RxHeader.datalength is 15, is it a bug?
Split from this thread.
thanks to
this afternoon I have tried to extend can2.0 to canfd with my project of stm32g474vet6. I found some strange things, I think there may be a bug of stm32g474vet6 fdcan module.
I modifed the FDCAN_TxHeader to FD_Frame and datelength to 64byte. for FDCAN_RxHeader, almost nothing to modify. then i used an app on PC to send a 64bytes CAN message, then my code received the 64bytes message and copied to rxbuffer, the rxbuffer had 64bytes data, but FDCAN_RxHeader.datalength is 15. it is not 64.
i think this is a bug of stm32g474vet6, it received 64bytes data but FDCAN_RxHeader.datalength is 15. I have no can tool now (with used by other people), when i have the can tool, i will take screenshot to show the strange thing.
hello
Thanks a lot!

