[font=Courier New]# The following DO work (pick one)...# attiny2313at8.upload.using=arduino:arduinoisp# attiny2313at8.upload.protocol=avrispv2# attiny2313at8.upload.using=pololu[/font]
avrdude -b 57600 -p attiny2313 -c arduino -P COM4 -U flash:w:clock.hex
avrdude: stk500_getsync(): not in sync: resp=0x1c
Hello, all! First timer here!I found this thread looking for a way to upload a program in C (or hex) to the ATTiny2313 via Arduino. I noticed it was mentioned on the first page, but I didn't see an answer (or didn't understand it).My situation:* Want to upload a clock program to the ATTiny2313, "clock.hex"* Using an Arduino Uno R3* Running on a Windows 8 PC* Arduino-tiny library installed* I have the setup working, successfully uploaded a blink sketch to the 2313 running at both 1MHz and 8MHz.* Upload using avrdude (I'm using Windows 8 ) with the arguments:Quoteavrdude -b 57600 -p attiny2313 -c arduino -P COM4 -U flash:w:clock.hexwhich I copied from another thread http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1258854659/7I'm getting:Quoteavrdude: stk500_getsync(): not in sync: resp=0x1cAm I doing something wrong or something impossible? Thanks,Sam
avrdude -c stk500v1 -P com4 -p t2313 -b 19200 -U flash:w:clock.hex -v -v
Your assumptions were right (and yes, no cristal).Your solution was also right. It burned the file right away.Thank you very much, sir! Have a nice evening! XD
Exactly.Nope.I have no idea if a bootloader is available for the ATtiny2313. I suggest not bothering with a bootloader for the ATtiny processors.The next step is to prepare your Duemilanove to act as an In System Programmer (ISP)... Disconnect your Duemilanove from the computer Ensure nothing is connected to your Duemilanove Connect an LED and series resistor to pin 9 Connect the Duemilanove to your computer Start the Arduino IDE Load the ArduinoISP sketch from the Files / Examples menu Ensure the correct board and serial port are selected Upload the ArduinoISP sketch to your Duemilanove The LED on pin 9 should fade on then off Disconnect your Duemilanove from the computer Connect a 120 ohm resistor between 5V and RESET Reconnect your Duemilanove to the computer Ensure the LED on pin 9 still fades on then off[/list]Your Duemilanove is now a programmer. This is the wiring for programming an ATmega328 board or processor...http://arduino.cc/en/Tutorial/ArduinoISPWiring is fairly easy to remember...MISO to MISOMOSI to MOSISCK to SCKSS (on the programmer / Duemilanove) to RESETGND to GNDWhen I get up tomorrow I'll post some pictures for wiring the ATtiny2313.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16