Zurück (C) Christof Ermer, Regensburg
Gästebuch 
(public. sonst besser Email)  ChristofErmer@gmail.com





Gratis Counter 24.09.2017
   

https://www.arduino.cc/en/Hacking/Bootloader?from=Main.Bootloader


Versuch: Bootloader  via ISP Laden
Paramter:
µC = Atmega328p
Zu beachten
Fusebits.
Ladeadresse
Booloderspace etc..


Bootlader via Arduino UNO laden
FUSES BERECHNEN mit Online Fuse Calc: http://www.engbedded.com/fusecalc/

https://www.frag-duino.de/index.php/maker-faq/35-programmieren-eines-atmel-atmega-328p-mit-dem-arduino-uno-bootloader


SPI pins (MISO, MOSI, SCK), and power, ground, and reset.
Arduino as ISP: avrdude -P comport -b 19200 -c avrisp -p m328p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m

AVR Pocket Programmer: avrdude -b 19200 -c usbtiny -p m328p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m

The second step is actually uploading the program.

Arduino as ISP: avrdude -P comport -b 19200 -c avrisp -p m328p -v -e -U flash:w:hexfilename.hex -U lock:w:0x0F:m

AVR Pocket Programmer: avrdude -b19200 -c usbtiny -p m328p -v -e -U flash:w:hexfilename.hex -U lock:w:0x0F:m


hfuse:w:0xD6:m -U lfuse:w:0xFF
Bedeutung
Ext Osc 16MHz
SPI
BOOTZSZ0
BOOTZSZ1
No Bodlevel 2/1/0 Flags

Bootflash Sction = 2048 Words
Boot Start $3800
BOTZSZ=00
default value

Bootloader quellfile
https://github.com/arduino/ArduinoCore-samd/tree/master/bootloaders/zero

https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader

ISP AVR Pocket Programmer