Is there any way of reducing the size of the preloaded Arduino bootloader, to save some bytes for the program?
2 Answers
There is an actively developed free and open-source Arduino bootloader / firmware called OptiBoot, that might be of interest. From their site:
Optiboot is a quarter of the size of the default bootloader, freeing 1.5k of extra space.
Many Arduino / clone boards now ship with OptiBoot instead of the classic Arduino firmware, though not necessarily with the latest and greatest version of OptiBoot. Existing boards can also be upgraded with OptiBoot if desired, procedures are documented at the linked site.
Also worth a look are the various bootloader enhancements on the AdaFruit web site. Not having personal experience with these, I can't really say much about AdaBoot, though.
-
\$\begingroup\$ I've been using the AdaFruit bootloader. Pretty happy with it, and the fact that it is in C lets me modify it more easily to suit my needs. \$\endgroup\$ Commented Apr 30, 2013 at 8:18
It is possible to bypass the Arduino firmware (bootloader) by flashing your programs with another programmer (e.g. the USBtinyISP programmer)
As far as I know you can still use the Arduino IDE to write your program. But you have to install a "plugin" so you can directly flash your code to the board which makes smaller programs.
But:
You will not be able to flash using USB. You have to re-flash the Arduino bootloader using the USBtinyISP. (for me it worked all well and I had no problems at all)
Hope that helps
-
\$\begingroup\$ The "You will not be able to flash using USB" comment is a bit misleading: USBtinyISP works over USB, so technically it is flashing over USB \$\endgroup\$ Commented Apr 30, 2013 at 16:23
[ask]
,[answer]
,[about]
and[faq]
comment link markup options are so useful. They allow you to very quickly and easily point people in the right direction, i.e. How to Ask, How to Answer, tour & faq. \$\endgroup\$