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/TMS570LS0432:链接器命令文件配置

Guru**** 2457760 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/642943/ccs-tms570ls0432-linker-command-file-configuration

器件型号:TMS570LS0432

工具/软件:Code Composer Studio

大家好,我已经将 UART 引导加载程序加载到 TMS570ls0432 较低的闪存中。 我还附加了内存配置。  

但我对要加载的其他新映像的链接器命令文件感到困惑。  

下面是 bootloader 的 linker.cmd  

存储器

向量(X):origin=0x00000000 length=0x00000200
BOOT_LOAD (RX):origin=0x00000200 length=0x00001000
Flash_API (RX):origin=0x00001200 length=0x00001000
FLASH0 (RX):origin=0x00002200 length=0x00050000
SRAM (RW):origin=0x08002000 length=0x0005c000
栈(RW):origin=0x08000000 length=0x00001FF0

这里是新的应用 项目链接器 cmd 文件  

存储器

向量(X):origin=0x00002000 length=0x00000200
FLASH0 (RX):origin=0x00002200 length=0x0005FFE0
堆栈(RW):origin=0x08000000 length=0x00001500
RAM (RW):origin=0x08001500 length=0x00006B00

但它不起作用。  

我不清楚如何配置新的链接器命令文件。

我是否需要在 新项目中再次添加引导程序(X)? (两个复位矢量必须相同)

当我使用 CCS 加载具有上述配置的新项目以进行测试时,它将擦除引导加载程序。

谢谢。  

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

    请在另一篇文章中查看我的答案:
    e2e.ti.com/.../642511

    使用引导加载程序的目的是更新位于闪存中不同位置的应用程序。 应使用引导加载程序而不是 CCS 对应用程序进行编程。

    引导加载程序的闪存操作函数位于 BL_FLASH.c 中