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.

[参考译文] MSPM0L2228:如何将两个.elf 文件合并为单个.bin 或.hex 文件?

Guru**** 2390755 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1455898/mspm0l2228-how-to-merge-two-elf-files-into-a-single-bin-or-hex-file

器件型号:MSPM0L2228

工具与软件:

尊敬的团队:

我遇到问题:我有两个文件、 boot.elf app.elf 在闪存期间都是必需的。

现在、我需要将这两个文件合并为单个 bin 或 hex 文件以提供给工厂用于大规模生产的闪存。

请问是否有任何方法可以做到这一点? 谢谢。

此致、

蔡奕迅

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

    尊敬的 EASON:

    在我这边、我不知道如何组合两个.elf 文件。

    同时、我认为您可以直接将两个十六进制文件组合在一起。 我用于打开一个十六进制文件并将另一个十六进制内容复制到其中并下载到器件。

    同时、另一种方法是:

    1.将 boot.elf 下载到器件

    2.将 app.elf 下载到设备(在此操作中让 Flash easre 范围不是 inlude boot.elf )

    3.然后 boot.elf 和 app.elf 都下载到器件中。 现在、从具有所有闪存存储器(其中包括 boot.hex 和 app.hex)的器件中读取固件

    至于自动合并这两者的任何工具或方法、我不确定。 我可以请求工具团队提供帮助。 因为他们在度假时、反馈会延迟。

    B.R.

    SAL