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.

[参考译文] CCS/TMS320F28388D:打包结构

Guru**** 2244410 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/939089/ccs-tms320f28388d-packed-struct

器件型号:TMS320F28388D

工具/软件:Code Composer Studio

您好!

我尝试使用 gcc 属性 "__attribute__((packed))"打包结构,但遇到错误:

错误1167:“struct”的属性无效。

那么、我如何对结构执行数据包呢? 我使用的是 Code Composer 版本10.0.0.00010和编译器版本 v20.2.1.LTS

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    遗憾的是、C28x 编译器不支持打包结构。  文章 《使用 C28x CPU 进行字节访问 》可能很有用。

    谢谢、此致、

    乔治