Hey all,
I've compiled the bootloader and was able to install it with Arduino as ISP to a Nano. I couldn't find the lines necessary for the Nano in boards.txt so I created this:
##############################################################
nanomysbootloader.name=Arduino Nano MYSBootloader
nanomysbootloader.upload.tool=avrdude
nanomysbootloader.upload.protocol=arduino
nanomysbootloader.bootloader.tool=avrdude
nanomysbootloader.bootloader.unlock_bits=0x3F
nanomysbootloader.bootloader.lock_bits=0x0F
nanomysbootloader.build.f_cpu=16000000L
nanomysbootloader.build.board=AVR_NANO
nanomysbootloader.build.core=arduino
nanomysbootloader.build.variant=eightanaloginputs
## Arduino Nano w/ ATmega328
## -------------------------
nanomysbootloader.menu.cpu.atmega328=ATmega328
nanomysbootloader.menu.cpu.atmega328.upload.maximum_size=30720
nanomysbootloader.menu.cpu.atmega328.upload.maximum_data_size=2048
nanomysbootloader.menu.cpu.atmega328.upload.speed=115200
nanomysbootloader.menu.cpu.atmega328.bootloader.low_fuses=0xFF
nanomysbootloader.menu.cpu.atmega328.bootloader.high_fuses=0xDA
nanomysbootloader.menu.cpu.atmega328.bootloader.extended_fuses=0xFD
nanomysbootloader.menu.cpu.atmega328.bootloader.file=MySensors/MYSBootloader.hex
nanomysbootloader.menu.cpu.atmega328.build.mcu=atmega328p
Is this correct? Besides, on some devices I cannot program over serial anymore now, only through another ISP. Could that be caused by incorrect settings? Is it possible to recover from that?
The error I'm getting is this one:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x32
Thanks and happy easter!
Rene