Go Down

Topic: Option to include sketch in flash? (Read 2 times) previous topic - next topic

westfw

I didn't mean to make you dig deeply into advanced magics (though perhaps it was a good thing!)
It's also possible to get the linker to treat any file as "binary" to be explicitly included (maybe) in a final .elf/.hex file.
It would look something like
Code: [Select]
avr-objcopy -v -I binary -O elf32-avr -B avr  mysketch.pde sourcecode.o

(objcopy is one of those utilities that is a lot more complex than you would think it would be.  It handles OODLES of different formats!)

Go Up