Can optiLoader be used to burn custom hex?
For example, there's hex representation stored in optiLoader.ino in image_328
, if that value is replaced with content of my pre-compiled hex, should that work right out of the box or some additional tweaking is needed?
EDIT
Discussion about the same topic on arduino forum as well.
1 Answer 1
Yes, it should work provided that your desired target image is stored in the same form, with correct metadata, and that it is small enough to fit in the programmer device.
The storage format of the payload-to-program could be made more optimal by a factor of almost two; however, for the original purpose of injecting compact Arduino-style bootloaders that is scarcely needed, and would have made preparing payloads more complicated.
Explore related questions
See similar questions with these tags.
getch
andavrisp
in that ArduinoISP sketch.