#avr Logs

Mar 01 2020

#avr Calendar

12:09 AM day__ is now known as day
01:00 PM mouseghost is now known as desperek
01:16 PM mouseghost is now known as desperek
08:29 PM ferdna: how do you flash an atmega328 using avrdude
08:29 PM ferdna: using the device usb...
08:29 PM ferdna: so i guess uart?
08:29 PM ferdna: what do i need to put in avrdude -c "programmer"
08:30 PM Thrashbarg: usbasp probably
08:32 PM ferdna: Thrashbarg, nope that didnt work...
08:32 PM ferdna: another clue is that
08:32 PM Thrashbarg: what OS?
08:32 PM ferdna: this device has CP2102 USB to UART
08:32 PM ferdna: linux
08:32 PM Thrashbarg: ah right you'll need to specify the serial port. One moment
08:33 PM Thrashbarg: do you have the Arduino bootloader installed on the ATMega?
08:33 PM ferdna: yes
08:34 PM Thrashbarg: -c stk500v1 but you need to manually reset the ATmega
08:35 PM Thrashbarg: otherwise you'll need to put a 100n capacitor from DTR to /RESET
08:35 PM Thrashbarg: in which case you use -c arduino
08:36 PM ferdna: avrdude: stk500_recv(): programmer is not responding
08:36 PM ferdna: avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
08:36 PM ferdna: that is what i get from: -c arduino and -c: stk500v1
08:37 PM Thrashbarg: oh right and you need to specify the UART device node
08:37 PM Thrashbarg: with -P /dev/ttyUSB1 or whatever the device name is
08:37 PM ferdna: i am
08:37 PM ferdna: i do have that
08:37 PM Thrashbarg: good
08:38 PM ferdna: what else?
08:39 PM Thrashbarg: do you have a button you can press connected to /RESET?
08:42 PM ferdna: no there is none
08:42 PM Thrashbarg: you'll need to find some way to hold reset low while you start the programming sequence, then release it
08:43 PM Thrashbarg: another method is to put a 100nF capacitor between the DTR pin of the serial module and /RESET
08:43 PM Thrashbarg: which will do it automatically
08:44 PM ferdna: ohhh
08:45 PM Thrashbarg: you'll want a 10k resistor across /RESET and +5V too
08:50 PM ferdna: its done... i needed the baudrate as well
08:51 PM Thrashbarg: probably either 115200 or 57600
08:52 PM Thrashbarg: but yea, good lol
08:53 PM ferdna: thank you so much for the help
08:53 PM Thrashbarg: no worries
09:24 PM root is now known as Guest73955