Skip to main content
Lwang1
Associate
Feb 22, 2023 7:48 AM UTC
Question

Hex or bin with multi-firmware

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
    Feb 22, 2023 8:12 AM UTC

    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
    Feb 22, 2023 8:21 AM UTC

    ...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.