When some messages (MBOX) are sent to the TSM320F28335 some data are not received correctly.
Example:
MBOX 10, ID = 0x110, byte0 (control mode), byte1 (start), byte2 and byte3 (Pot_target), byte4 and byte5 (vSC_target)
the values sent by bytes 0, 1, 2 e 3 are correct, but the value sent by bytes 4-5 are not.
MBOX 12, ID = 0x112, byte0 (control mode), byte1 (start), byte2 and byte3 (vBat1_target), byte4 and byte5 (vBat2_target),byte6 and byte7 (vSC_target)
the values sent by bytes 0-1 are correct, the value sent by bytes 2-3 is incorrect and the values sent by bytes 4-5 and 6-7 are correct, although with its variables inverted. Example: value sent - bytes 4-5 (vBat2_target) = 150 and bytes 6-7 = 200 (vSC_target); values received - vSC_target = 150 and vBat2_target = 200.
The software used for communication was Busmaster and the frequency is 250 kHz
The images bellow are from de code on CCS, the configuration on Busmaster and a test that was made
CAN mailboxes code
eCAN registers
MBOX ID configuration
Busmaster configuration
Start byte order: Intel (little endian)
Modo_con, Pot_target and vSC_target byte order: Motorola (big endian)
Start byte order: Intel (little endian)
Modo_con, vBat1_target, vBat2_target and vSC_target byte order: Motorola (big endian)
Test made
What could be causing these errors? Are there any other configurations required?