Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Compile c to hex
  2.  
  3. avr-gcc -Os -std=c11 -mmcu=atmega324pa *.c -o out.elf
  4. avr-objcopy -j .text -j .data -O ihex out.elf out.hex
  5.  
  6. Flash to atmega324a with pololu programmer
  7.  
  8. sudo avrdude -v -c stk500v2 -p m324pa -F -U flash:w:out.hex -P /dev/ttyACM0
  9.  
  10. Serial connection with putty
  11. sudo putty /dev/ttyUSB0 -serial -sercfg 19200,8,n,1,N
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement