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.

Compiler/TMS320F28375D: C2000 Delfino support structure packed attribute

Part Number: TMS320F28375D

Tool/software: TI C/C++ Compiler

Hi Champs,

Could you please tell us still C2000 no support for "Packed attribute" at latest c2000 compiler?

Regards,

Kz777

Compiler/CCSTUDIO-C2000: CCS v7 does not support structure packed attribute - Code Composer Studio forum...

e2e.ti.com
Part Number: CCSTUDIO-C2000 Tool/software: TI C/C++ Compiler I am using CCS v7.0.0.00043. But it is throwing error for "struct __attribute__((packed)) {" this syntax

  • Unfortunately, the C2000 compiler continues to not support the packed attribute for structs.

    Thanks and regards,

    -George

  • Hi George,
    Thanks. Do you have any equivalent idea on customer application side ?
  • If you are trying to match the data layout imposed by some other part of your system ... Consider writing a set of routines that transfer structures between the two systems.  Only within these routines are both data layouts known and explicitly dealt with.  Elsewhere, the data layout used is the one imposed by the compiler (or other constraints) for that part of the system.  If the other part of your system deals with 8-bit bytes, then you probably have to use __byte intrinsic.  Please read more about it in the article Byte Accesses with the C28x CPU.  

    Thanks and regards,

    -George