Yup, trouble programming Pov3

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dataman
 
Posts: 98
Joined: Wed May 20, 2009 7:03 pm

Yup, trouble programming Pov3

Post by dataman »

FIRST: Are you using a Minipov3 from a kit or from DIY? Make sure you mention that in your post:
Adafruit KIT

SECOND: What OS and computer are you using?
Windows 7 and/or Ubunut 9.10

THIRD: Are you using a USB adapter or a serial port?
USB Adapter from Adafruit

FOURTH: Did the minipov light up at all when you turned it on?
Yes, sequencing.

FIFTH: What -specifically- isn't working?
Can't get the stupid serial port to work under Windows, so I tried Linux.
Under ubuntu 9.10, the build instructions appear to be slightly out of date.
So, I punted for now, I tried programming from breadboard with my ISP header on wires.
Still not working, what am I doing wrong?

SIXTH: Post screenshots (NOT copy&paste) of what is happening
Tiny2313ISP.jpg
Tiny2313ISP.jpg (62.26 KiB) Viewed 3312 times
SEVENTH: Post clear, in-focus, not-blurry, easy to see photos of the top and bottom of the kit. If the photos are blurry, unfocused, and difficult to see they will only make it harder to debug what is going on

Take a look above and tell me what I did that was stupid?

ISP 2313
1 MISO 18
2 VCC 20
3 SCK 19
4 MOSI 17
5 RESET 1
6 GRND 10

I read that perhaps the Reset was backwards on the 2313,
So in the version pictured, RESET is non-connect,
and I tied a 10k resistor from Vcc to Reset.

Programmer is a usbtiny from Adafruit,
has worked well in programming Tiny13's with this header,
So shouldn't this be the same?

avrdude -p t2313 -c usbtiny
I get the dreaded -1 error.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Yup, trouble programming Pov3

Post by adafruit »

ok thats confusing :)

http://www.ladyada.net/learn/avr/ for pinouts?

User avatar
dataman
 
Posts: 98
Joined: Wed May 20, 2009 7:03 pm

Re: Yup, trouble programming Pov3

Post by dataman »

Ok, let's try that again.

I seem to be having problem with the Adafruit USB Serial Port adapter under Windows 7.
While I'm working out that problem, I decided to directly program the ATTiny2313-10pu from the MiniPOV3 directly on breadboard.
This is the hookup I used:
2313Hookup.jpg
2313Hookup.jpg (43.18 KiB) Viewed 3308 times
Hooking up an adafruit usbtiny to the ISP connector,
I then attempt:

avrdude -c usbtiny -p t2313

And receive the error message:

avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

I even disconnected the Reset line,
And tied Reset to high using a 10k resistor tied to VCC.

Otherwise, the chip sequences lights when plugged into the minipov3.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Yup, trouble programming Pov3

Post by adafruit »

maybe check your wiring in case its flipped? make sure you're powering the chip, etc?

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: Yup, trouble programming Pov3

Post by mtbf0 »

dataman wrote:I even disconnected the Reset line,
And tied Reset to high using a 10k resistor tied to VCC.
that's a good way to keep it from programming. don't you have to bring that line low to put the chip in reset for programming.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Yup, trouble programming Pov3

Post by adafruit »

ya but in theory the programmer pulls it down :)

User avatar
dataman
 
Posts: 98
Joined: Wed May 20, 2009 7:03 pm

Re: Yup, trouble programming Pov3

Post by dataman »

Well, I tried flipping MISO and MOSI,
That didn't work.

I tried reset connected, reset low, reset high, reset high low.
Still nada.

The 10k should act as a pull up with reset connected.

This is the 2313-10pu that comes with the Pov3 Kit.
Is it possible my frequency is wrong? -G I think?

Well, office puter has a com port built in,
Going to load avr studio at work and see what happens.

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”