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.

[参考译文] TMS320F280025C:在 EABI 中通过.cmd 在固定位置对某些代码进行编程

Guru**** 2439560 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1046855/tms320f280025c-program-some-codes-at-a-fixed-location-by-cmd-in-eabi

器件型号:TMS320F280025C

尊敬的香榭丽舍

我向我们的客户提出这一问题。

用户尝试在固定位置对代码进行编程。

       asm flie

  .sect "FlashSecor"

  .int   0xAAAA

  .int   0xAAAA

 

 

       cmd flie

       …μ A

   FlashBoot      :origin = 0x08FF00,length = 0x000000F0

…μ A

  FlashSector   :> FlashBoot

它在 COFF 中工作、但在 EABI 中失败。

如果我们错过了什么、请您帮助澄清一下吗?

黄维恩

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

    您好、Wayne、

    对于 EABI、在链接阶段会删除未引用的段。 您可以使用.retain 关键字保留此类段。  

    例如:

       .sect  "FlashSecor"

      保留

      .int   0xAAAA

      .int   0xAAAA

    此致、

    Veena