Advertisement
filipecoelho

upload.sh

Jul 31st, 2016
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #Exemplo de Shell script para automatização da compilação e upload de programas para avr
  2. #Por: Filipe Coelho
  3.  
  4. avr-gcc -Os -mmcu=atmega328p blink.c -o blink.out
  5. avr-objcopy -j .text -j .data -O ihex blink.out blink.hex
  6. avrdude -p m328p -c arduino -P /dev/ttyACM0 -b 115200 -U flash:w:blink.hex
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement