can_message_t sendMsg = {
.cs = 0U,
.id = TX_MSG_ID,
.length = 64U
};
can_message_t recvMsg;
Work mode is loopback
code as above,the problem is :recvMsg I found is as follow:
01 02 03 04 05 06 07 08 0F 5A 38 02 94 00 00 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F.I dont know why ?CAN anybody help me ?Thanks.
It should be
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
Where is the driver Init function ?! And what is the configuration of it ?!
If you configured the Driver in non FD mode will send only first 8 bytes of message.
Second please check you functions return status in case something is not configured ok, will return a different status than STATUS_SUCCESS.
What version of SDK do you use ?