This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C2000 Compiler and packed structures

Other Parts Discussed in Thread: CONTROLSUITE

Hello,

My application includes packed structures to make communication easier. I am using the C2000 launchpad and CCS 5.4.0.00091.

The compiler reference spru514e states that "The following type attributes are supported: aligned, deprecated, packed, transparent_union, and unused." on page 115, but the compiler itself complains:

invalid attribute for "struct <unnamed>"

with the struct defined as follows:

typedef struct
{
  uint8_t len;
  uint8_t data;
} __attribute__ ((packed)) comm_t;

Currently the compiler is TI v6.1.3. Are packed structures supported? I've seen several past posts that support would be added (two years ago or so).

Thanks.