This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Application for bootloader

Hello

I've write a application which I will bootload with my software bootloader (on 0x80000). The code of the application starts at 0x90000 so the Keil compiler generate a hex file with this offset. How I can remove this offset in my hex file to load it directly with my bootloader?

Thank and regards

Reto

Parents
  • Hi

    I've solved my prob with a other hex2bin converter...

    The Keil linker know the offset because I have defined it in the linker options.

    What on earth makes you think.... : My bootloader is on address 0x80000. So my bootloader write the given application data (bin) to the address 0x90000. It make not realy sense to give first 0x90000 zeros to the bootloader.

    Thank you anyway

Reply
  • Hi

    I've solved my prob with a other hex2bin converter...

    The Keil linker know the offset because I have defined it in the linker options.

    What on earth makes you think.... : My bootloader is on address 0x80000. So my bootloader write the given application data (bin) to the address 0x90000. It make not realy sense to give first 0x90000 zeros to the bootloader.

    Thank you anyway

Children
  • The hex file doesn't contain any 0x90000 zeros. The hex file starts with a special record saying that the following data starts at 0x90000.

    It is only tools that converts from hex to bin that may - or may not - add empty data. The HEX file can contain any number of holes, but a bin file must always be continuous.