Solved
This topic has been closed for replies.
Hello @SSoor.1 ,
You can use the CAN extended frame format which supports up to 8 bytes of data per frame.
To use the extended frame format, you will need to modify the CAN message structure in your code to include the extended frame format bit (EFF) and a 29-bit identifier instead of the standard 11-bit identifier.
TxHeader.DLC = 8; // 8 bytes of data
TxHeader.ExtId = 0x12345678; // 29-bit identifier
TxHeader.RTR = CAN_RTR_DATA; // Data frame
TxHeader.IDE = CAN_ID_EXT; // Extended frame format
Hope I helped you!
If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be helpful for Community users to find this solution faster.
Foued
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.