Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

C2000 Compiler and packed structures

$
0
0

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.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>