AV 2313 help

Here is my Setup:

http://www.sparkfun.com/commerce/produc … cts_id=360

20 Pin Dev Board

http://www.sparkfun.com/commerce/produc … ucts_id=14

AVR STK Serial Port Dongle

http://www.sparkfun.com/commerce/produc … cts_id=212

ATtiny2313

http://www.sparkfun.com/commerce/produc … cts_id=298

Wall Adapter Power Supply - 9VDC 650mA

I have a snippit of c code that should blink an LED…

Here’s my process:

Use WinAVR MFile to make the Make file… (it communicates through COM1), programmer’s notepad to compile the c code into hex

Then PonyProg to dump the hex on the chip. I get the error "Device missing or unknown device (-24) Can anyone help me here? I’ve spent a good 5 hours or so trying to get this to work, and I’m at the end of my rope. If someone can direct me to a concise AVR tutorial (not avrfreaks) I’d appreciate it. Thanks

What arguments are you passing to ponyprog?

I’m new to programming… What do you mean?

well … I usually use the programmer from the command-line, are you doing that, or using the ponyprog GUI? Anyway, I’m wondering if ponyprog has the right settings: the right serial port, the right programmer type, and the right (AVR) device type. Just a suggestion of some things to check (I haven’t done AVR development on MSWindows myself).

I really appreciate your help. At this point, I think it may be a jumper setting on the development board. J1 is in the 12 position, and the LED_J is out (I’ve tried everything!)

What does the 3.3 V jumper do?

I’m using the PonyProg GUI. It’s supposed to work with my programmer, and I have it set to the correct chip. Same errors…

I’m going to try fiddling around with my make file for a bit see if anything works.

Still no progress.

I get the same error above when I try Command>Erase in the PonyProg GUI. Correct me if I’m wrong, but I should at least be able to connect to the AVR chip?

Can anyone inform me of the correct jumper settings on the development board?

I have the same setup and get the same results. Not worth much, but at least you not alone! Have you made any progress?

I’ve worked with several AVRs - the 90S2313, mega32, mega128, mega644. I have an Atmel brand serial port programmer. It costs more (like $40) and has a microprocessor inside whereas the PonyProg/Olimex is an el-cheap-o version - it depends on correct timing of the PC’s serial port control lines (rather than serial data per se). So some PCs with feeble serial ports or USB to serial won’t work. Be sure to use the COM1 port on the motherboard.

I’ve not used the tiny2313 - it’s not listed that I see among the officially supported devices for that programmer, though I’d think any MOSI/MOSO based device should work. Getting it to read device ID is step one, and has nothing to do with the C compiler or make files, assuming you use the programmer software independently.

The jumpers on the Olimex board - I think J1 should be open - no jumper, but it probably doesn’t matter. J2 - I’d leave it open. On older Olimex boards I’ve used, you must wire up jumpers on the serial TXD and RXD lines - but these come later - after you are able to program the flash memory.

With a volt meter, be sure your board’s regulator is 5V output with the programmer plugged in. Be sure the cable isn’t backwards in the ISCP connector.

That’s all I can think of. That kind of programmer can be qwirky.

Have you done a search on or post a question on the forum avrfreaks.net?

Hey great news, I got it working! OK the main thing I did was that while trying to fall asleep last night I realized that my Palm Desktop might have installed it’s self to watch com1 even though I use USB. I looked this morning and yes Palm was tying up the com1. I disabled that, but couldn’t get Ponyprog to find the device. So I tried using avrdude as referenced in a another post on here and avrdude came through for me!

Here’s the code I used to program the board with the test app.:

C:\WinAVR\bin>"avrdude" -pattiny2313 -c ponyser -P com1 -U flash:w:"C:\avr-code\
mtDemo\MTDemo.hex":a -U flash:v:"C:\avr-code\mtDemo\MTDemo.hex":a

This did the trick and it started flashing and beeping. Hope this will help others, can’t ever forget that you have to debug the computer as wella s the device huh? :smiley:

RainerJ,

Had the same problem

http://www.sparkfun.com/cgi-bin/phpbb/v … php?t=5598

Basically, remove the jumber next to the led otherwise the board won’t respond.

Use bascom avr to compile my blinky

$crystal = 10000000

$regfile = “ATtiny2313.DAT”

$baud = 9600

Const Debug = 1

Config Portb = Output

Config Portd = Input

Do

If Pind.2 > 0 Then

Set Portb.7

Wait 1

Reset Portb.7

End If

Loop

End

then use

C:\WinAVR\bin>avrdude -p attiny2313 -c ponyser -P com6 -U flash:w:"C:\avr\blinky

\blinky.hex":a -U flash:v:“C:\avr\blinky\blinky.hex”:a

Do not use the avrdude win interface.

Oh and read the previous posts on the forum :wink:

Regards

Diarmuid