Skip to main content
Lwang1
Associate
February 22, 2023
Question

Hex or bin with multi-firmware

  • February 22, 2023
  • 2 replies
  • 770 views

My solution have more than one project, each project program in different address. exp: bootloader(0x08000000, 64K) application(0x08010000. 448K).

How can create an hex or bin with these two ?

    This topic has been closed for replies.

    2 replies

    KnarfB
    Super User
    February 22, 2023

    Most hex files can be easily combined using a text editor or simple scripts. If you're looking for tools: Python intelhex package https://python-intelhex.readthedocs.io/en/stable/

    hth

    KnarfB

    Peter BENSCH
    ST Technical Moderator
    February 22, 2023

    ...or by using a simple text editor in which

    • you load the first hex,
    • delete the last line (usually containing :00000001FF) and then
    • append the second hex at the end

    Regards

    /Peter

    In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.