Trouble programming the PIC for the LED strobe

rkhanso

New elf
Joined
Jun 25, 2010
Messages
28
Building the LED strobes in this very recent group buy....

I'm trying to flash the PIC with PicKit2 v.2.61, but get an error message: Invalid OSCCAL Value detected: To abort, click 'Cancel' To Continue, click 'OK'

I click OK and get an error:
Program failed at programming memory address 0x00000000

I'm using a clone Pickit 2 and choosing the 10F200 pic processor. The LED on the strobe flashes pretty faintly a couple times when it's trying to program, but after I program the PIC, I verify and get a fail. After attempting to write the firmware and I do a blank check right away, the PIC is still blank.

If I try MPLAB instead of PICKit2 software, MPLAB does auto-detect the PIC as a 10F200, but I can't get MPLAB to flash the PIC either.

In no way am I knowledgeable about microprocessors or how to write programs or debug. I'm a direction follower.
Any suggestions?
 
Try closing/restarting the PICkit programmer. My scenario was I programmed the first one OK yesterday, I had hibernated my PC, then reopened today and tried programming another today (without cloding the program). I got the same error as you show. Also make sure the "VDD PICkit 2" is "On" so that it supplies power to the board. After doing the restart I was able to program 10 in a row with no issues. The neat thing is that since it supplies power, right after programming, the LED should start strobing so you know everything is working.
 
Brian,
Tried as you suggested - no help. Get the same error message. I actually just rebooted the computer and immediately ran the PICkit software to program the PIC.

I am posting screenshots of what I get when programming.
First is the error message.
The second is after opening the .hex in PICkit 2 software (pay attention to the code in the window)
The third is after trying to program the PIC, then reading the code off the PIC. Notice how above the red arrows I added, the columns are zeroes? While some of the columns are the correct code. I thought this may help someone smarter than me figure this out.
Any ideas?

error.jpg


strobe hex firmware.jpg


after reading the PIC.jpg


Should I just build another one and see if I get the same problem?
 
I'm sure it's probably some silly setting somewhere - but - yeah - I would build a second or third one and confirm it either does or doesn't work the same. From memory, I think the OSCCAL value was 0036 but I'll double check mine to confirm. Once it was working, I just pulled out the header, popped it into another and hit Write and it worked every time. I've been building more non-PIC versions but I'll give one of the PIC versions a look-see and hopefully determine why it does this...
 
I tried it on a different computer and get the same results. Something must be messed up with the PIC.
I'll build another strobe on Monday and give it a shot.
 
I'm with you rkhanso. I managed to get a few of these built today (thanks budude) and i am having much the same joy with the OSCCAL value error on the strobes I built.
 
I also built another strobe, and am still getting the OSCCAL error.
Any other suggestions?
 
Are you guys using clones for your pickits, are you all using pickit 2 clones. wondering if there is something common here.
 
I'm using a Sure Electronics PicKit2 clone. It's worked just fine for me on the 16F88s
This is the first time programming any other type of PIC
 
I'm using a microchip PICKIT 2 Sttarter pack .its comes with a test board with a PIC16F690 on it which I can get to work with there test HEX files.
 
anyone else having issues programming these with a picit 2?

Who else has had success programming the strobes and what picit are you using 2 or 3
 
I just tried some half done boards they have the PICs, Nud's and the 3 resisters on them.it didn't come up with the OSCCAL error and competed the write after that i did a read of the PIC and it's only wrote upto line 040 out of 080. does this mean anything to anyone? when is the earliest we can program the pics on the boards?
 
Are you programming the chip on the strobe board itself or on the PICKIT dummy sockets? Or have you tried both?

(oops - see below, this isn't a socketed chip)
 
I have programmed 10 boards now with my genuine PICkit2. You can only program these on the board itself since they are SMD. As I mentioned above, I did see this error for a bit but a restart of the PICkit programmer and it came up OK after that. This did not help rkhanso though. I'll see if I can sneak a look tonight but might be iffy since I have a $%@) conference call at 10:30pm... I am using the latest PICkit SW from the Microchip website - don't recall off-hand the version number.
 
I'll try like Steve did.....
According to the schematic, it looks like the only component needed on the board to program the PIC is the PIC itself. I'll rattle off 10 of them and give it a go in the morning.
 
Back
Top