Received FDCAN 64bytes data but FDCAN_RxHeader.datalength is 15, is it a bug?
Split from this thread.
thanks to @Ozone @Karl Yamashita,
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 @mƎALLEm @Saket_Om did you meet FDCAN received 64bytes but FDCAN_RxHeader.datalength is 15? is there some configuration I miss?
Thanks a lot!

