Go Down

Topic: Bootloader upgrade (Read 1 time) previous topic - next topic

cricchetto06

Hi guys, i would upgrade bootloader in my arduino uno because i've the problem with sketch larger than 29K. What's the true bootloader for atmega328p-pu? There are many hex files in hardware/arduino/bootloaders/atmega directory and one of theme is ATmegaBOOT_168_atmega328.hex. Is it the bootloader for atmega328p-pu?

florinc

Quote
i've the problem with sketch larger than 29K

You won't get rid of the problem by "upgrading". You would need to downgrade, to a bootloader that takes less flash memory than the one you have currently burnt in.
The smallest bootloader takes about 2K, which will allow you only 1K more (from 29K to 30K) for your sketch.

winner10920

Or get an isp programmer, then there is no bootloader and you save all that space

cricchetto06

uhm........28924 bytes (of a 30720 byte maximum). I think that the bootloader use max 2k of memory. With the sketch size of 28924 bytes  i can't upload sketch. does anyone know the size of optiboot bootloader? It is in a subdir of arduino ide.I've a old bootloader version and i try to upgrade it. Read posts in this link: http://www.forums.adafruit.com/viewtopic.php?f=31&t=19243

liuzengqiang

optiboot is only 512 bytes so you will get  32K-0.5K free space.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

doughboy

use optiloader sketch to load optiboot bootloader. all you need is another uno or mega to load the optiloader sketch, hook up your atmega328 based board whose bootloader you want to update, and run the sketch.

Go Up