Go Down

Topic: Merging bootloader and program into one file (Read 1 time) previous topic - next topic

Udo Klein

"Moral equivalent" is highly subjective. However concatenating is definitely after linking, thus it is legally completely different from compiling both into a combined executable. So I would say it is closer to linking than to compiling --> should solve my problem.
Check out my experiments http://blog.blinkenlight.net

westfw

Quote
it seems to me that combining the hex is the moral equivalent of linking.

nah, because there is no "knowledge transfer."  It's the moral equivalent of program loading two executables into the same memory space, and therefore allows them to have entirely different licenses...

Surely there's some utility out there that will merge hex files, report errors (like overlaps) and "weird" spots, and such?  (I can't find one immediately, either...)

retrolefty

Quote
I try to merge a bootloader (optiboot) and sketch hex file into one hex file such that it can be uploaded in one step with my isp.


I guess I'm just missing the 'big picture'. What would be the point of loading both the sketch and bootloader via ISP? What function would the bootloader be performing in that situation after being loaded? If you have the ability to load sketches via ISP why waste the flash space a bootloader would take up? If you have ISP programming capabilities then you can burn the bootloader by itself if that is what you need to do.

Again I must be missing something?

Lefty



magagna

Quote
What would be the point of loading both the sketch and bootloader via ISP?


I can't speak for Udo Klein's application, but I'm interested in doing this to program blank chips in embedded circuits in one step. I need the bootloader because future firmware updates will be done by the user via USB.

Chris
http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.

retrolefty


Quote
What would be the point of loading both the sketch and bootloader via ISP?


I can't speak for Udo Klein's application, but I'm interested in doing this to program blank chips in embedded circuits in one step. I need the bootloader because future firmware updates will be done by the user via USB.

Chris



Fair enough I guess. But seems a lot of trouble for something that can be done in two already well established processes, burn bootloader, upload sketch via serial link. Don't forget your fuse bytes manipulations.

Lefty

Udo Klein

The big picture is an Arduino style circuit with a preloaded demo that is manufactured somewhere by a subcontractor. Thus I need to keep steps low and I must stick to licensing rules. Flashing will NOT happen with AVRDude but with a commercial program that is incompatible with AVRDude.
Check out my experiments http://blog.blinkenlight.net

t0bias

Hello everybody,

I started writing a simple tool a couple of days ago for just this task: merging two Arduino Hex-files into one.
If you are brave enough to try some beta-software, please go ahead here: https://github.com/tobiasvogel/hexMerger  ;)

The latest released version can always be found under "Release" at the top of the page.

Please be aware that I just started this project, so there may be bugs, or it even may not work at all under certain circumstances.
Leave a comment or feedback and I will be happy to review it and improve the tool as far as I can!

Thanks!

Go Up