Arduino Optiboot ATMEGA328-PU

Hi,

I have boot-loaded ATMEGA328-PU with UNO Optiboot. Is there a specific setting for this in Arduino IDE in order to upload sketches or it works if i just select UNO ?

Also, does it works at lower baud rates like 9600 ?

Thanks,

Ujjwal Soni

Could just work if you select Uno.

Might have to copy the Uno section in boards.txt and change the processor to "m328" vs "m328P" or similar.

Bootloader on the chip is expecting to see serial data at a certain speed. boards.txt tells the IDE what speed to use.
So can't change bootloader speed on the PC side without reprogramming the chip with a different bootloader.

May have to make similar changes in pins_arduino.h where it checks for "m328P" or similar.

Hi,

There are 3 such files whose name matches pins_arduino.h, i checked all of them but none of them contains text m328p.

Below are the contents of boards.txt file (UNO Section) :

See: Google Code Archive - Long-term storage for Google Code Project Hosting.

##############################################################

uno.name=Arduino Uno
uno.upload.protocol=arduino
uno.upload.maximum_size=32256
uno.upload.speed=115200
uno.bootloader.low_fuses=0xff
uno.bootloader.high_fuses=0xde
uno.bootloader.extended_fuses=0x05
uno.bootloader.path=optiboot
uno.bootloader.file=optiboot_atmega328.hex
uno.bootloader.unlock_bits=0x3F
uno.bootloader.lock_bits=0x0F
uno.build.mcu=atmega328p
uno.build.f_cpu=16000000L
uno.build.core=arduino
uno.build.variant=standard

Please let me know which line should i change ?

Thanks,

Ujjwal Soni