Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ICD2 Clone Problems in MPLAB7

Status
Not open for further replies.

daniloadur

Newbie level 4
Joined
Feb 19, 2005
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,407
fifo buffer with icd2

Hello Everybody,

I built Lothar Stolz's ICD2 Clone and it is not working in MPLAB7.xx!!!

What is necessary to do for the ICD2-clone to work in MPLAB7.01 or 7.10???

I burn a PIC16F876A with the boolloader and put then in the ICD2 board.

I will use the ICD2 to burn another PIC16F876A with the same bootloader file.

I am using a PIC16F876A to program another PIC16F876A and I am using the bootloader contained in the paste \ microchip\MPLAB IDE\ICD2

The presented error message is the following:
-------------------------------------------------
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F876A found, revision = b4
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x1E0F)
Verifying...
...Program Memory
ICD0060: Failed to bulk read target memory (Program) (Address:0x0) (Size:0x1000)
ICD0275: Programming failed.
MPLAB ICD 2 Ready
-------------------------------------------------

**** Does anybody know how to tell me the one what is happening?

**** What bootloader should I use?

Obs1: That error doesn't happen when I use MPLAB6.xx

Obs2: The error doesn't happen in small firmwares.

Thank you very much for the attention of all.
 

failed to bulk read target memory

You should check your 13v!, im using it in mplab 7.xx and works great!. By the way, i have 13.5 no 13.
 

icd0275 programming failed

try to review your circuit
 

pic16f688 bootloader

Hello Moof and Jojokatada....... thank you for they answer so fast..!!

1. There are no problems with the circuit, because he perfectly works in MPLAB6.40.

2. With my ICD2 Clone equipped with a 16F876A in MPLAB6.40, I already programmed with success the following devices: 16F627A, 16F628A, 16F870, 16F871, 16F874A, 16F876A, 16F877A, 16F684, 16F688. Everything works very well!

3. Here it doesn't exist the 16F876 or 16F877 without the "A" version to buy, for that I use the version with "A".

4. The circuit was checked a lot of times and the voltages are all correct ones
(Vpp=13,5V and Vcc=5,05V).

5. I am using the following bootloader:
**broken link removed** (ICD2_BL.hex).
It Works very well with MPLAB6.40.

6. I tested the following bootloader without success in PIC16F876A with MPLAB7.10:

org_icd.hex
bootloader_m16.hex
Bootloader16A877A.hex
Bootloader.hex
ICD661.hex


Would some of you be possible to test that situation please?

a) Burn PIC16F876A with ICD2_BL.hex and put him in the ICD2 Clone board.
b) Uses another PIC16F876A for target.
c) Using MPLAB7.10 (new), load the own bootloader to do the program memmory to test in the target.
d) Tests the programming and the verification of memory.

In my case I always obtain the following mistake:

== == == == == == == == == == == == == == == == == == == == == == == ==
ICD0060: Failed to bulk read target memory (Program) (Address:0x0) (Size:0x1000)
ICD0275: Programming failed.
== == == == == == == == == == == == == == == == == == == == == == == ==

I don't know more than to do!!!!

What is necessary to alter in the bootloader so that it works in MPLAB7.10???

I thank any help.

Tks
 

bootloader 16f870

Hi,

First of all, to find out what the error means, just dubble click on the error message. i.e click in the ICD0060 and then the help window will open with that specific eeror message.

Second, Try to use the older version of MPLAB. You dont need to use the new version of MPLAB if its not working. MPLAB has few bugs, like every other new editor...

If you found my answer useful, click on the button that says Helped me. ( NO points will be taken from you! )


Good luck.
 

    daniloadur

    Points: 2
    Helpful Answer Positive Rating
Im using Zaphod bootloader with a 16f877A and mplab 7.01, For me works great!.

You can find zaphod bootloader here in edaboard under "this is a working rs232 idc2" or something like that.
 

    daniloadur

    Points: 2
    Helpful Answer Positive Rating
Hello Moof,

I try to use Zaphod Bootloader with MPLAB7.10 and PIC16F877A and found the same problem!!!

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F877A found, revision = b0
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x1E0F)
Verifying...
...Program Memory
ICD0060: Failed to bulk read target memory (Program) (Address:0x0) (Size:0x1000)
ICD0275: Programming failed.
MPLAB ICD 2 Ready


If possible, try test that situation for me please?

a) Burn PIC16F877A with Zaphod bootloader and put him in the ICD2 Clone board.
b) Uses another PIC16F877A for target.
c) Using MPLAB7.10 (new), load the Zaphod bootloader to do the program memmory to test in the target.
d) Tests the programming with ICD2.

In my case I always obtain the following mistake:

== == == == == == == == == == == == == ICD0060: Failed to bulk read target memory (Program) (Address:0x0) (Size:0x1000)
ICD0275: Programming failed.
== == == == == == == == == == == == ==

Tks!!! :)
 

I get this

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F877A found, revision = b3
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x1E0F)
Verifying...
...Program Memory
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
...Programming succeeded
MPLAB ICD 2 Ready


so, i have to ask you to do something, did you try to change the microcontroller, not the one who is in the ICD2, the other, the one that you are programming or debugging.
 

    daniloadur

    Points: 2
    Helpful Answer Positive Rating
Dear Moof,

I am surprised with with the result that you obtained! I only get this result when I use MPLAB 6.40. In MPLAB7.10 (new) that am using, the error is always the same:

1. I changed the main PIC16F877A for other two different.
2. I changed the target PIC16F877A for other three different.

* * The error is always the same:

Connecting to MPLAB ICD 2
... Connected
Setting Vdd source to target
Target Device PIC16F877A found, revision = b0
... Reading ICD Product ID
Running ICD Self Test
... Passed
MPLAB ICD 2 Ready
Programming Target...
... Validating configuration fields
... Erasing Part
... Programming Program Memory (0x0 - 0x1E0F)
Verifying...
... Program Memory
ICD0060: Failed to bulk read target memory (Program) (Address:0x0) (Size:0x1000)
ICD0275: Programming failed.
MPLAB ICD 2 Ready

Could you do me a favor?

Can you please export the firmware (hex file) of your main PIC16F877A (with conf. bits, eeprom, user id, etc) and to send for me for e-mail? I want a lot test it!! :)

daniloadur@yahoo.com.br


Thank you very much.
 

it can be from your Windows installation
try in another pc if you are sure that all is correct
and don't install MPLAB6.XX

i hope that will work
 

    daniloadur

    Points: 2
    Helpful Answer Positive Rating
FINALLY THE PROBLEM IS RESOLVED!!!

Before describing what was done, I want to thank the help of all those that made suggestions and they tried to help in some way! Thank you very much!

Everything is working very well with: MPLAB7.10 and PIC16F876A in WINXP-SP2.

I test the programmer with success in the following devices:

PIC16F627, PIC16F628, PIC16F627A, PIC16F628A, PIC16F684, PIC16F688, PIC16F870, PIC16F871, PIC16F874A, PIC16F876A, PIC16F877A, PIC12F675.

The solution:

1. Not to disable the serial FIFO buffer!!!!!! You just put it in the minimum level.
2. Everything perfectly works.

Observe the configuration below in the image:


* * * * THE PROBLEM ENDED COMPLETELY * * * *

Once again thank you for the attention of all.
 

Lothar has another ICD2 design out that uses USB with an ftdi chip. I built the original design and tracked all of the problems i was having to a bad zener diode and a miss placed jumper wire. Make sure and look hard I would have never guessed the zener was bad, until i checked it.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top