From: kunil on 25 Jul 2005 20:46 I think the vendor is not giving all the schematic. Just for you to know, you are using STK200 dongle. To program AVR, you must at least connect these pin to your dongle : MISO, MOSI, SCK, VCC, GND, RESET. They are on PORTB, execpt VCC, GND, and RESET (refer to your AVR datasheet). On your board, means the port on upper right. In your schematic, MISO, MOSI, SCK is connected to KEY6, KEY5, KEY7. KEY5, KEY6 and KEY7 is connected somewhere, but not directly to PORTB. I suspect there are some switches that are on the board but not in the schematic. Anyway, looking pictures in the user manual, there is pull-up for PORTB (slika31). To program AVR, PORTB should be pulled to HIGH (5V). And, since you cant write to AVR, the first thing you should do is reading device's signature. It should match with 90S8515 signature (refer to datasheet). 'Cos the reading result (either EEPROM/Flash/Fuse) is unreliable when you cant write to the AVR (try to unplug your dongle, and read the EEPROM or fuse, you probably get some numbers too. But it's not the number that's reflect the 90S8515's state).
From: eden on 26 Jul 2005 02:33 Thanks for the effort, kunil. I will check this evening what you suggest, PORTB voltage. But, yes I forgot to mention, the signature couldn't be read for the 90s8515. With Ignore (or switching off this check) I could do on. Now, the difference from when the dongle is switched off is that then I get all FF in the contents. When I have the dongle switched on, I get something like this: 00 00 01 01 02 02 03 03 .. FF FF I get this same both with AvrProg and PonyProg (these are very old versions of the programs, if I download newer, I couldn't connect at all). Goran
From: eden on 26 Jul 2005 13:40 PORTB was high all the time, so this is not the problem. Goran
From: kunil on 27 Jul 2005 00:21 You know, when I'm in univ, I burned out 9 serial ports & 2 parallel ports from 8 PCs =p But accident do happen in lab =D I feel so familiar with your problem. When you are using PonyProg, does it said "Error -24:Couldnt read device .. Abort Retry Ignore.." ? The only thing you could do is choosing ignore, since abort & retry doesnt give you anything. Am I right ? Hmm..I feel that symptoms when the parallel port burned (cos I plugged the wrong positive/negative in the board). No program or any OS that could read my microcontroller board. Just the way you are now. But the funny thing is that the parallel port still can print some papers (through printer in the port of course). So I get some variable power supply. I adjust the power supply's voltage and plug it in my microcontroller's board. After some experiments, the program finally can read my uC board. I took out voltmeter to check out the VCC in the uC's board. It was read 4.2VDC. If it below 4.2VDC, uC's read/write will result 00 (0x00). If above, it will result 0xFF in every reading (EEPROM/flash/fuse/signature) plus error message "couldn't read device ....". Since this is just my experience, I dont know whether it works on you or not. If I may suggest, try your board in other PC. You can use the latest PonyProg (compatible with winXP, easy to install, easy to uninstall). If you dont have other PC, it's about time to visit some friends :p Tell'em you got new toys, and would have them to look it. In a short time, you'll have a new microcontroller's hobby group..=D Hehehe..Sorry if it's not solving your problem.. -kunil
From: eden on 27 Jul 2005 02:50
Hi kunil Yes, I am at that stage now :-), just I hope I didn't burned something yet. I have tryed 3 different PCs, I have 2 at home, althought one is very old (486 Win95, but this is not a problem, I guess), my regular PC at home and my laptop at work. I always get the same. PonyProg is saying it can't probe the device (something like that) with Abort-Retry-Ignore. AvrProg is saying it can't read the signature for the chip, also with Abort-Retry-Ignore (but it recognizes the dongle). Both programs, on Ignore are reading (maybe this is fake?!). You know, my problem is that I was hoping on easy start in embedded (the name of the board at least was saying that :-) ), but now it looks like my short trip in embedded has finished. I will not go for another one board, who can guaranty it will work? And it was not cheap. I guess I will wait until I have some more equipment and knowledge to check whats going on with this one. Thank you very much (to all espessialy to kunil). I guess there is nothing more that can be done over the forum Goran |