I'm mostly a newbie getting back into microcontrollers. I've done a good deal of low-level hobbying on the BASIC Stamp BS2p-40, and I even once got this PIC-16F84A working more than a year ago (and only that once), but I've forgotten quite a bit about PICs specifically, and now that I'm back into it, I can't get certain things to work, and they're difficult things to search for online - I've tried to no avail.
I'm using the Olimex PG2C
, the LED of which I have seen in the past light up when programming/verifying/erasing/etc. It wasn't doing it this time around, and I recall that it wasn't about 6 months ago when I made a half-hearted effort to get back into it. Another problem is that IC-Prog always finds that there's a programmer, even when it's unplugged, and it always writes/verifies/erases with no errors, even if I remove the PIC from the ZIF socket. After much tweaking of settings the other night, I got the LED to blink when I was verifying, and then taking the PIC out, it errored, as it should. I figured it was solved, and moved onto reacquainting myself with the programming and wiring knowledge. I got through enough of that, made a HEX sample, and then it all fell apart again. When I try to load the HEX into IC-Prog, the title bar changes to the path and file, but the hex data doesn't update. The entire program code area remains filled with 3FFF blocks. I've read everything I can find - the entire help file end-to-end, lots of online things and old forum posts. I'm pretty sure I have things set up right - COM 2, PIC 16F84A, all the configuration bits, the HEX file matches the tutorials, JDM programmer with Windows API as recommended by Olimex, etc. It all seems right. Anyone know why the hex data doesn't reflect the file contents, or should it? Maybe that area is only supposed to show the chip's data? I seem to recall this has always been a problem, even when I got the PIC programmed that one time - I just let it program despite the 3FFFs, and the chip worked. BTW, I did try that, and nothing - the PIC seems dead. I've also tried a new, and unused 16F84A - nothin'.
When I attempt to program any '84A, it does the same thing - the Olimex LED does nothing while IC-Prog runs through its progress bars with no problems, and sings the songs of a succesful programming at the end. I have the verify programming boxes, and none of the communication inversion boxes checked, but they aren't noticing that I'm successfully programming an empty programmer. Without IC-Prog's help, I'm kinda stuck right now for getting anything accomplished. I've even updated to the latest version and tried that - no dice. I'm hoping someone's been here and knows a way out, because I don't want to lose faith and give up on microcontrollers again
Looks like it was my hex file after all. It matched number for number with the sample from "Easy Microcontrol'n" by David Benson, but it's quite a few years old now, and may be too out-of-date. IC-Prog was the real stopping point in the pipeline, but dropping in some randomly-found hex code from a midi sequencer project I found via Google worked beautifully, clearing up all errors. Maybe with some more debugging I'll be able to find exactly what it was that had IC-Prog doing nothing at all with my hex. Thanks all, for the help!