Hi, first time poster here. I have been searching in vain and experimenting for several weeks, looking to the answer to this question...
Is it possible to load sketches on a bootloaded Atmega328P with just the TXD and RXD lines of a Raspberry Pi? I'm drawing the conclusion that this is possible from the fact that most tutorials (including this one http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard
) say that you can program the AVR via USB to serial adapter. Since the TXD and RXD pins on the Raspberry Pi are already serial, and I have successfully loaded sketches on the 328P and communicated with them via Pi over serial, shouldn't it be possible to load sketches via TXD and RXD?
I have several Atmega328P AVR's loaded with the Adafruit bootloader and a Raspberry Pi with Pi Cobbler.
I was able to successfully load a sketch onto one of the 328p's using homemade logic converters referenced here:https://wiki.wsartori.com/wiki/Logic_Level_Converter
and a the Gordon@Dragon GPIO bitbang scheme for SPI programming.http://blog.stevemarple.co.uk/2012/07/a ... using.html
However, using those same logic converters configured with the TXD of the RPi connected to pin D01 and RXD connected to D02 on a fresh 328p yields nothing.
When I short the reset pin to ground and then run this command on my RPi:
avrdude -p m328p -P /dev/ttyAMA0 -c arduino
I get this error after about 5 seconds:
avrdude: stk500_recv(): programmer is not responding
If I run the same command and then quickly short the pin to ground, I get this message:
avrdude: stk500_getsync(): not in sync: resp=0x00
I'm guessing that since AVRDude is using the stk500 in this circumstance, it is expecting to program the AVR over ISP.
If that's not right, what programmer should I be using? I tried all the ones available with my version of AVRDude but none of them appeared to work. Do you know how this can be done, or an article that can help me find my way to the finish line on this?