Merging bootloader & application binaries

Sysprogs forums Forums VisualGDB Merging bootloader & application binaries

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9542
    Salieri
    Participant

    I’ve followed the bootloader tutorial on VisualGDB site and everything is a doozy.

    But now I’m wondering how to combine the .hex (or even more importantly, the .bin files!) into a single file fit for production programming. Are there any VisualGDB supported ways to do that?

    #9563
    support
    Keymaster

    Hi,

    If you just want to combine 2 .bin files into one, it should be as easy as padding the first one with 0xFFs and appending the second one to it.

    If you want to get an ELF file that contains data from 2 binary files at given addresses, you would need to convert .bin files to .o files and link them with a special linker script that will place each file contents at a given address.

    Let us know if you need more details.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.