Skip to content

Firmware Mega 2560 #152

Answered by paradajz
ibanman555 asked this question in Q&A
Apr 28, 2022 · 1 comments · 12 replies
Discussion options

You must be logged in to vote

These are the commands I use when flashing via mkII (see: link)

avrdude -p $(MCU) -P usb -c avrispmkII -C /etc/avrdude.conf -e -V -u -U lock:w:$(FUSE_UNLOCK):m -U efuse:w:$(FUSE_EXT):m -U hfuse:w:$(FUSE_HIGH):m -U lfuse:w:$(FUSE_LOW):m
avrdude -p $(MCU) -P usb -c avrispmkII -C /etc/avrdude.conf -U flash:w:$(FLASH_BINARY_DIR)/$(TARGET).hex
avrdude -p $(MCU) -P usb -c avrispmkII -C /etc/avrdude.conf -V -u -U lock:w:$(FUSE_LOCK):m

For mega16u2, fuses are here:
https://github.com/shanteacontrols/OpenDeck/blob/master/config/mcu/atmega16u2.yml#L5

For mega2560:
https://github.com/shanteacontrols/OpenDeck/blob/master/config/mcu/atmega2560.yml#L5

To save you some time, use this as final command f…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@ibanman555
Comment options

@ibanman555
Comment options

@paradajz
Comment options

@paradajz
Comment options

@ibanman555
Comment options

Answer selected by ibanman555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants