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
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.
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’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.:
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?