Go Down

Topic: Help with Blinking LED- programming a ATTiny2313 with a MEGA 1260 or 2560 ADK (Read 950 times) previous topic - next topic

AdamOutler

Problem: I am trying to blink an LED on a ATTiny2313.  All I see is "Programmer not responding".
Conditions: I have an Arduino MEGA2560 ADK and an Arduino MEGA1260ADK for use as an ISP programmer.    I would prefer to use Arduino IDE if possible.
I've tried:
Troubleshooting my electrical setup and verified the pinouts.
Arduino-Tiny- http://code.google.com/p/arduino-tiny/  - This fails quietly in Arduino IDE.  It only tells me the programmer is not responding.
Roloxu Blog- http://www.roxlu.com/blog/entry/59/attiny2313avrdude-and-arduino-avrisp
With tweaking to the Makefile for AVRDude from Roloxu Blog, I was able to produce this output from AVRDude - http://pastebin.com/1DaG5g2p

Here is a picture of my setup

Here is my source, including avrdude, raw C, and Arduino PDE for blink: http://www.mediafire.com/file/d177g0nreql9lhr/2313Blink.zip



I would greatly appreciate any help. Preferably, help in getting it working with Arduino IDE.  My Arduino Megas just go dead and do not really tell me anything when they fail. The indicator lights stop pulsing, and eventually the Arduino will freeze or restart.  What do I have to do to make an LED blink on an ATTiny2313A?

AdamOutler

Damnit....  :0 

Code: [Select]
USB Host: MAX3421E. The MAX3421E comunicate with Arduino with the SPI bus. So it uses the following pins:
Digital: 7 (RST), 50 (MISO), 51 (MOSI), 52 (SCK).
[b]NB:Please do not use Digital pin 7 as input or output because is used in the comunication with MAX3421E [/b] Non broken out on headers: PJ3 (GP_MAX), PJ6 (INT_MAX), PH7 (SS).



So the Arduino ADK is incompatible with the ArduinoISP example.

As soon as the programming starts, pin 7 goes low and resets the communications?

Coding Badly


AdamOutler



Are you using Arduino 1.0 IDE?

is it available from the Ubuntu package repositories yet?   That quote in my last post was from this page: http://arduino.cc/en/Main/ArduinoBoardADK

Coding Badly

Quote
is it available from the Ubuntu package repositories yet?


Please don't play games.  I asked a simple yes / no question.  A straight yes / no answer is appreciated.

AdamOutler


Quote
is it available from the Ubuntu package repositories yet?


Please don't play games.  I asked a simple yes / no question.  A straight yes / no answer is appreciated.

I'm not playing games..  I asked because I'm not near my desktop and I update daily.  A search shows http://packages.ubuntu.com/source/natty/arduino  arduino (0022+dfsg-1)


Coding Badly


Towards the top of the ArduinoISP sketch is this line of code...

Code: [Select]
#define RESET SS

...which determines which pin is used for "slave select / reset".  Simply change it to an unused digital pin...

Code: [Select]
#define RESET 18

...adjust the wiring, and try again.

Go Up