.hex to .bin conversion

Hello,

IS there anyboby knows how to automatically convert the .hex file outputted by keil to .bin file for flashing..

I tried to use the hex2bin software utility, but the output is too large around 128MB. and the ST-link would stuck up every time i load the bin file into it. I tried to use the options but none to avail. Please help.

Thank you,

j

Parents
  • A bin file doesn't have any holes in it.

    So if you configure your hex file to contain data at two separate memory regions with 12MB gap between, you will get a huge bin file.

    If having separate memory regions in the chip, then you must create multiple bin files to avoid the problem with the gap between the regions.

Reply
  • A bin file doesn't have any holes in it.

    So if you configure your hex file to contain data at two separate memory regions with 12MB gap between, you will get a huge bin file.

    If having separate memory regions in the chip, then you must create multiple bin files to avoid the problem with the gap between the regions.

Children
More questions in this forum