I'm using the TMS compiler as a standard part of the CCSV5.1 distribution, build a CCStudio project, originally based on HelloWorld template. I define a structure in this way...
"
typedef struct configuration{
union {
uint32_t field1;
struct {
uint32_t field2:16;
uint32_t field3:12;
uint32_t field4:4;
};
};
uint32_t x;
uint32_t y;
uint32_t z;
"
This is structure is perfectly fine under gcc. Yet under the CCStudio when I access field2, field3, or field4 it yells at me..." INTERNAL ERROR: Decomposition error. Get help soon! Cannot continue compilation - ABORTING! "
Is there something non-standard about my union declaration within a structure? My target is OMAP3530 ARM core.