Skip to content

Instantly share code, notes, and snippets.

@colesnicov
Last active December 23, 2020 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colesnicov/e1a49409d92ae013a6b2bcf6580ccaea to your computer and use it in GitHub Desktop.
Save colesnicov/e1a49409d92ae013a6b2bcf6580ccaea to your computer and use it in GitHub Desktop.
How to program AVR devices. Terminal commands...
Priklad: avrdude -v -p<MCU> -c<PROGRAMMER> -P<PORT> -b<BITRATE> -Uflash:w:<FILE>:i
Priklad pro programovani ATMEGA328P s pomoci arduino jako ISP programator.
MCU=atmega328p
PROGRAMMER=STK500v1 (aka arduino as ISP)
PORT=/dev/ttyUSB0
BITRATE=19200
avrdude -v -patmega328p -cstk500v1 -P/dev/ttyUSB0 -b19200 -Uflash:w:<file.hex>:i
Pouziti USBISP programatoru:
Priklad: avrdude -v -p<MCU> -c<PROGRAMMER> -P<PORT> -Uflash:w:<FILE>:i
MCU-atmega328p
PROGRAMMER=usbasp
POSR=/dev/usbasp
avrdude -v -patmega328p -cusbasp -P/dev/usbasp -Uflash:w:/tmp/arduino_build_508229/Blink.ino.hex:i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment