DuPAL: Difference between revisions

From Proghq
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
Optiboot
Optiboot


  # https://github.com/Optiboot/optiboot
 
  # 328P uses 115200?
  # a few use 57600 but not the one we need :(
   # wget https://github.com/Optiboot/optiboot/releases/download/v8.0/Optiboot-8.0.zip
   # wget https://github.com/Optiboot/optiboot/releases/download/v8.0/Optiboot-8.0.zip
   # https://github.com/Optiboot/optiboot
    
   git clone https://github.com/Optiboot/optiboot.git
   git clone https://github.com/Optiboot/optiboot.git
   cd optiboot
   cd optiboot/optiboot/bootloaders/optiboot
   make atmega328 AVR_FREQ=20000000L LED_START_FLASHES=8 BAUD_RATE=57600
   make atmega328 AVR_FREQ=20000000L LED_START_FLASHES=8 BAUD_RATE=57600
  avrdude  -c dragon_isp -P usb \
  avrdude  -c dragon_isp -P usb \
     -p atmega328p -e -u -U efuse:w:0xFD:m -U hfuse:w:0xDE:m \
     -p atmega328p -e -u -U efuse:w:0xFD:m -U hfuse:w:0xDE:m \
     -U lfuse:w:0xFF:m -U flash:w:optiboot_atmega328.hex
     -U lfuse:w:0xFF:m -U flash:w:optiboot_atmega328.hex

Revision as of 05:46, 21 May 2022

WIP

Pre-compiled: https://proghq.org/media/dupal/


Building

Optiboot

 # https://github.com/Optiboot/optiboot
 
 # 328P uses 115200?
 # a few use 57600 but not the one we need :(
 # wget https://github.com/Optiboot/optiboot/releases/download/v8.0/Optiboot-8.0.zip
 
 git clone https://github.com/Optiboot/optiboot.git
 cd optiboot/optiboot/bootloaders/optiboot
 make atmega328 AVR_FREQ=20000000L LED_START_FLASHES=8 BAUD_RATE=57600
avrdude  -c dragon_isp -P usb \
   -p atmega328p -e -u -U efuse:w:0xFD:m -U hfuse:w:0xDE:m \
   -U lfuse:w:0xFF:m -U flash:w:optiboot_atmega328.hex