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.

[参考译文] TMS320F28P650DK:开发套件和 TwinCat3之间的字节传输问题

Guru**** 2465890 points
Other Parts Discussed in Thread: LAUNCHXL-F28P65X

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1490697/tms320f28p650dk-byte-transfer-issues-between-the-development-kit-and-twincat3

器件型号:TMS320F28P650DK
Thread 中讨论的其他器件:LAUNCHXL-F28P65X

工具与软件:

我根据手册使用 SSCV5.12创建了 cia402堆栈、使用 LAUNCHXL-F28P65X 进行调试时发现以下问题:我通过 CCS 调试窗口写入了一个32位数据、但通过 TwinCAT 观察到数据按字节移动。 如下面的图1和图2所示。


这是什么原因呢? 非常感谢!

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

    尊敬的 Hui Chen:

    我以前没有见过这个问题、也不知道原因。 "ObjPositionActualValue"对象作为 Beckhoff 栈代码的一部分(不是 TI)进行处理。 似乎数据在 TwinCAT 侧左移16位。 我想知道是否存在与软件中使用的 SWAPDWORD()函数相关的映射问题。

    如果我想出了一些东西或有一些其他想法,我会让你知道。

    此致!

    Kevin