#pragma pack() does not work in my Kinetis project. What do I do?

This pragma is not supported. You have to use __attribute__(align) as a workaround instead ( Listing: Using __atrribute__(align)). This attribute is documented in the CodeWarrior Development Studio for Microcontrollers v10.x Kinetis Freescale Build Tools Reference Manual (CWMCUKINCMPREF).

Listing: Using __atrribute__(align)

typedef struct
{

unsigned long x __attribute__((aligned (1)));

unsigned char y __attribute__((aligned (1)));

} new_struct;