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.

[参考译文] TMS320F28P550SJ:.cmd 文件中的 ALIGN (8)/ALIGN (4)

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1627508/tms320f28p550sj-align-8-align-4-in-cmd-files

器件型号: TMS320F28P550SJ

尊敬的 champs:

 

我向我们的客户询问这个问题。

用户使用 TI SCI 引导加载程序和闪存 API 作为对其代码进行编程的编程器。

最初、用户没有为.cmd 中分配给闪存的会话添加任何对齐 (4) 或对齐 (8)。

然后、用户发现会发生意外情况。

添加 align (8) 后、用户发现它是有效的。

现在、他们正在尝试澄清根本原因。

问题:

  1. 我们是否有任何文档来说明.cmd 文件中为什么需要 align (8) 或 align (4) 以及如何需要此 align (8)?

   2. align(8) 或 align(4) 如何工作?