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.

[参考译文] TMS320F28P650SK:全局变量偏移错误

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1495875/tms320f28p650sk-global-variable-offset-wrong

器件型号:TMS320F28P650SK
Thread 中讨论的其他器件:C2000WARE

工具与软件:

嗨、专家

客户使用 SCI 引导将固件编程到闪存中、有时当他们使用 Fapi 将 RAM 数据写入闪存时会发生该问题:

他声称有2个变量 U16_CodeBuffer (全局变量地址0xEACD) tempBuf (局部变量)。

当他使用 Flash_programUsingAutoECC (uxWriteFlashAddr、U16_CodeBuffer、usBlockLen)时、他发现  U16_CodeBuffer 地址为0xEACD、但第一个闪存地址0x80000是使用 0xEACC 地址数据编程的。

当他使用 Flash_programUsingAutoECC (uxWriteFlashAddr、tempBuf 、usBlockLen)时、不会发生该问题。

我无法在 C2000ware 演示中重现问题。 有什么需要检查的东西可以解决此问题吗?

谢谢

Joe

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

    Joe、

    你的缓冲区变量看起来不是64位对齐的。 您是否可以尝试正确对齐它并查看问题是否仍然存在?

    此致!

    Alex