Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

reprog-16f84a - failed

Status
Not open for further replies.

lemonyx

New Member
I followed Bill's "hello world" instructions and was able to program the 16F84A the first time. Found out that I used the wrong file "duh" :eek: Tried to program again with the correct file and got this:

Connecting to MPLAB ICD 2
ICD0019: Communications: Failed to open port: (Windows::GetLastError() = 0x2, 'The system cannot find the file specified.
')
ICD0021: Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready
ICDWarn0034: Please ensure that your system's serial FIFO buffers are disabled.
Connecting to MPLAB ICD 2
ICDWarn0054: MPLAB IDE has lost communications with the MPLAB ICD 2. Would you like to attempt to reconnect?
Connecting to MPLAB ICD 2
ICD0021: Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready
ICDWarn0034: Please ensure that your system's serial FIFO buffers are disabled.
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
ICD0152: Failed to read all of requested bytes (0x0 of 0x8)
ICD0275: Programming failed.
MPLAB ICD 2 Ready



Now what do I do? TIA
 

Attachments

  • progmr.gif
    progmr.gif
    151.8 KB · Views: 622
Hmm, it all looks about right. Do you have a second 16F84A to try? What is the VPP voltage (programmer / settings / power)

Also might help to install Fireflys C2 33uf & C3 0.1uf if they're not already installed.

Are you using a USB to RS232 adapter?
 
Last edited:
Are you sure the problem is not on the PC end?
Connecting to MPLAB ICD 2
ICD0019: Communications: Failed to open port:

Maybe he has two copies of MPLAB running (do not know if that is possible) or has some how messed up the serial port. Perhaps a reboot will fix it.
 
Bill

1. the target Vdd: 4.96, Vpp:12.62, 2Vpp: 12.30

2. just have c3 installed, don't have a 33uf in the part's box, but do have a 47uf, will that work??

3. using serial, com 1 and fifo is off.

4. 2nd chip reprogrammed got this:

Connecting to MPLAB ICD 2
ICD0019: Communications: Failed to open port: (Windows::GetLastError() = 0x2, 'The system cannot find the file specified.
')
ICD0021: Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready
ICDWarn0034: Please ensure that your system's serial FIFO buffers are disabled.
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
ICD0082: Failed MPLAB ICD 2 operation
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
Verifying...
...Verify Succeeded
...Programming succeeded
24-Aug-2007, 19:06:45

MPLAB ICD 2 Ready


it did not "build" but it "programed" fine, I think??

I installed the power led and that does help to let me know that there is power on the Firefly. Just waiting for the word back if the 47uf will work or not. The next closes is 10uf.

TIA


3v0


that is what happens before step 4 ICD0019: Communications: Failed to open port: on the hello world instructions. after you set the comm then you "connect" and then step 5.
 
Last edited:
47uf is fine, it's a power filter cap. It was chosen to be small as possible. Any value over 6.3v is fine.

Also you should reboot after you disabled the COM buffer for the first time. Also only COM1 or COM2 are supported by MPLAB.

PS how did you fit that 3M socket! The 1.2mm pins are too large that's why I recommend the Aries version (0.8mm pins)
 
On the socket, it was a "snug" fit, but just pushed it on.

On that 1st PIC, will I be able to reprogram it again or is it history?

Is there another way to erase the chip and start over?

thanks, Bill
 
Status
Not open for further replies.

Latest threads

Back
Top