![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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" 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 | |
| |
| | #2 |
|
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 by blueroomelectronics; 25th August 2007 at 02:17 AM. | |
| |
| | #3 |
|
Are you sure the problem is not on the PC end? Connecting to MPLAB ICD 2 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.
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | #4 |
|
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 by lemonyx; 25th August 2007 at 03:20 AM. | |
| |
| | #5 |
|
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) | |
| |
| | #6 |
|
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 | |
| |
| | #7 |
|
You can erase/reprogram the 16F84A at least 1000 times. Newer PICs are sometimes 100,000 or more. | |
| |
|
| Tags |
| failed, reprog16f84a |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Pic 16f84a Rotating Led Display Circuit | Gayan Soyza | Micro Controllers | 8 | 30th September 2009 07:13 PM |
| How can I save data into RAM (16F84A) | Charlie123 | Micro Controllers | 2 | 27th April 2007 03:03 PM |
| interupt problem with a 16f84a | gibbon_82 | Micro Controllers | 2 | 1st April 2004 11:58 AM |
| Trouble loading .hex onto 16f84a any thoughts? | andthisiswhatremains | Micro Controllers | 0 | 10th October 2003 03:23 PM |
| Newbie with "Verify Failed at address 0000h" error | Beefer3 | Micro Controllers | 14 | 15th September 2003 09:22 AM |