Can one combine program code and bootloader code into a single hex binary?

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using an Arduino MCU. I would like to program a hex binary that combines both the bootloader the application code. Can this be done? Or is it necessary to program the bootloader separately, then download the application binary through UART like how it is being done in Arduino?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

srec_cat is the easy/professional way

 

The "kludgey" way is to paste the boot .hex contents onto the end of the app.hex contents in a simple text editor then remove the first termination record:

:00000001FF

in the middle (but leave the one at the end of the file).