AnsweredAssumed Answered

CW10.2 Structure Packing issues

Question asked by Joe Kissell on Apr 25, 2012
Latest reply on Apr 27, 2012 by stanish

Can someone please help me explain why sizeof( EVENT_LOG_t ) returns 8? It should be 6, right?


Does this have something to do with the way this structure is packed? How can I fix this?


My target MCU is Kinetis K10.


typedef struct  {  u32 time;  u8 type;  u8 code;}EVENT_LOG_t;