AnsweredAssumed Answered

MPC5645S CAN communication and endianess

Question asked by i no on Jun 11, 2018
Latest reply on Jun 11, 2018 by Petr Stancik

Hello,

I am a little confused about endianess when I use CAN communication in MPC5645S.

My question is, when I receive a CAN frame with 8 bytes(frameData), I try to receive it by  'unsigned char data[8]'.

 

Do I need consider endianess here,

Data[0] = frameData[0];

Data[1] = frameData[1];

...

or I should do it like this:

Data[7] = frameData[0];

Data[6] = frameData[1];

...

Outcomes