ATMEGA2560 fuse

Nahrani bootloaderu + nastaveni pojistek

dan@hp8540w:~$ avrdude -P /dev/ttyUSB0 -b 19200 -c arduino -p m2560 -U flash:w:/home/dan/inst/arduino-1.6.11/hardware/arduino/avr/bootloaders/stk500v2/stk500boot_v2_mega2560.hex -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U lfuse:w:0xFF:m


  1. nejprve nastavit hfuse pojistky (avrdue nebo konfig IDE)
  2. potom nahrat bootloader pres ICSP

pri nahravani bootloaderu do noveho cipu, je treba zmenit pojistku BOOTRST zmenou v souboru

/home/dan/inst/arduino-1.6.7/hardware/arduino/avr/boards.txt na radku

# mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8
mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD9

vice zde https://soc.ninja/documentation/programming-atmega2560-with-arduino-uno-or-mega/

READ/WRITE FUSES(Edit)

https://heliosoph.mit-links.info/arduinoisp-reading-writing-fuses-atmega328p/

dan@hp8540w:~$ avrdude -P /dev/ttyUSB0 -b 19200 -c arduino -p m2560 -v

dan@hp8540w:~$ avrdude -P /dev/ttyUSB0 -b 19200 -c arduino -p m2560 -U hfuse:w:0xD8:m