Suggestions for the Arduino Project
Option to include sketch in flash?
Topic: Option to include sketch in flash?
(Read 2 times)
Location: SF Bay Area (USA)
Strongly opinionated, but not official!
Re: Option to include sketch in flash?
Jun 20, 2011, 10:44 am
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
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!)