Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: TI C/C++ Compiler
Hello,
I am working on an EtherCat Slave. To implement the slave the EtherCat Technology Group provides the Slave Stack Code [1]. This Code uses structs in combination with pointer arithmetic. This makes it necessary to prohibit dummy bytes in structs, which are automatically inserted by the compiler. Usually the “__packed__” attribute can be used, to tell the compiler that for a particular struct no dummy bytes are allowed. In [2] I figured out that the “__packed__” attribute is not supported in the C2000 compiler.
Is there any other way to prohibit dummy bytes in structs with the C2000 compiler?
Regards, Stephan
[1] https://www.ethercat.org/en/products/54FA3235E29643BC805BDD807DF199DE.htm
[2] http://processors.wiki.ti.com/index.php/GCC_Extensions_in_TI_Compilers#Type_Attributes