Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 3rd April 2008, 03:32 AM   (permalink)
New Member
juanbbv is on a distinguished road
Default Help with ICD2 clone!!!!!!!!!!!!

Hi guys!!!
I need your help because I’ve been trying to make my icd2 form Lothar Soltz web work, but I’ve failed. It seems to be annoyed with me!!!!
I revised the circuit many times but I didn’t found any problems with it. I’m using PIC 16F877 and I loaded the file BL01010101.hex form the Mplab into it.
As a target pic I’ve been using the pic 16F88

When I try to connect the ic2 to mplab, it always gives me errors, for example:

Connecting to MPLAB ICD 2
...Connected
ICD0082: Failed MPLAB ICD 2 operation
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
ICDWarn0054: MPLAB IDE has lost communications with the MPLAB ICD 2. Would you like to attempt to reconnect?
Connecting to MPLAB ICD 2
...Connected
ICD0286: Unable to communicate with ICD
ICD0082: Failed MPLAB ICD 2 operation
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
ICDWarn0054: MPLAB IDE has lost communications with the MPLAB ICD 2. Would you like to attempt to reconnect?
Connecting to MPLAB ICD 2
...Connected
ICDWarn0054: MPLAB IDE has lost communications with the MPLAB ICD 2. Would you like to attempt to reconnect?
ICD0286: Unable to communicate with ICD
ICD0082: Failed MPLAB ICD 2 operation
MPLAB ICD 2 Ready


I’ve taken all the special cares, like disabling the FIFO buffers, using the correct com port with 19200 baud rate. I’ve even test the cable and the rs232 chip by making a loopback test but it always work fine.

Then I tried to rewrite the pic 16f877 but using Low voltage Programming and something strange happened. Icprog gave me and advice that there was a error in writing address 0000f. (Could be it the wrong thing that doesn’t let my icd2 work??) I didn’t pay attention to it and tried again but it didn’t work. (I made the correction to the circuit putting a 10k pulldown resistor in PGM after using lvp)

Many times I measured the Vpp voltage when I was trying to connect the icd2 to mplab and it always was in 0v, is this ok?

I Know my post is not short, but I’m trying to describe you all the things.
I really need the icd2.
I hope that someone of you help me, I will appreciate any kind of help thanks!!
juanbbv is offline   Reply With Quote
Old 3rd April 2008, 03:35 AM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

Are you using a USB to RS232 adapter?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 3rd April 2008, 04:23 AM   (permalink)
Experienced Member
 
Blog Entries: 1
Gayan Soyza is a glorious beacon of lightGayan Soyza is a glorious beacon of lightGayan Soyza is a glorious beacon of lightGayan Soyza is a glorious beacon of lightGayan Soyza is a glorious beacon of light
Default

Quote:
Originally Posted by juanbbv
Icprog gave me and advice that there was a error in writing address 0000f. (Could be it the wrong thing that doesn’t let my icd2 work??)
That will be one of your problem.You must program the PIC successfully without any verify failed errors.

For the time being try this programmer to load your hex into 877.

http://www.semis.demon.co.uk/uJDM/uJDMmain.htm
__________________
Gayan
Forum Supporter
Gayan Soyza is offline   Reply With Quote
Old 3rd April 2008, 11:41 AM   (permalink)
Experienced Member
 
Funny NYPD has a spectacular aura about
Default

If you still cannot solve the issue, you can try the junebug or a full PICkit2 on my site.
Best wish,
__________________
Funny N., Au Group Electronics, USA, www.AuElectronics.com
Funny NYPD is offline   Reply With Quote
Old 3rd April 2008, 11:01 PM   (permalink)
New Member
juanbbv is on a distinguished road
Default

Quote:
Originally Posted by blueroomelectronics
Are you using a USB to RS232 adapter?
I´m using RS232 adapter
juanbbv is offline   Reply With Quote
Old 4th April 2008, 12:28 AM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

Quote:
Originally Posted by juanbbv
I´m using RS232 adapter
Do you mean a USB to RS232 adapter?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 4th April 2008, 01:54 AM   (permalink)
New Member
juanbbv is on a distinguished road
Default

Guys,

I ve tried to download again the file bl010101.hex with the uJDM programmer and something uncommon happened, i couldn´t download the file into the pic, i dont know why... is something like the bootloader isn´t the correct to the PIC16f877, but i´ve taken it form the file Mplab/ICD2/Bl01010101.hex like all the explanations says.(i tried to write the pic with another program and it worked fine)

Another thing is that my cable to connect the icd2 to the PC (rs232 cable) is 1.5 meter lenght, is it too long? i´ve read that in some cases the length could be a problem...

I am in a big big problem!!!
please help!!

Last edited by juanbbv; 4th April 2008 at 02:10 AM.
juanbbv is offline   Reply With Quote
Old 4th April 2008, 01:55 AM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default

Is it a usb to rs232 adapter? if so thats your problem.
__________________
Visit my website!
http://www.freewebs.com/electronic-hobbyist
Krumlink is online now   Reply With Quote
Old 4th April 2008, 02:00 AM   (permalink)
New Member
juanbbv is on a distinguished road
Default

Quote:
Originally Posted by blueroomelectronics
Do you mean a USB to RS232 adapter?
I´am conecting the pic to a max 232 chip. From it to the db9 cable to the PC in com1
Sorry, maybe i did not explain very well. English is my second language.
Thanks

Last edited by juanbbv; 4th April 2008 at 02:10 AM.
juanbbv is offline   Reply With Quote
Old 4th April 2008, 03:26 AM   (permalink)
New Member
BronzeG3 is on a distinguished road
Default

I've made an ICD clone from his page, but used a 876a, so I'm not sure this will help. To get it working on my computer, I had to enable the FIFO buffers, but set them both to low (1). With them completely disabled, I was having communication errors.

Last edited by BronzeG3; 4th April 2008 at 03:30 AM.
BronzeG3 is offline   Reply With Quote
Old 4th April 2008, 03:31 AM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default

hmmmm

Would you be able to purchase a inchwom+ from Canada?

Its definately worth it, at only 45$, get one. No substitution.
http://www.blueroomelectronics.com/inchwormplus.htm
__________________
Visit my website!
http://www.freewebs.com/electronic-hobbyist
Krumlink is online now   Reply With Quote
Old 4th April 2008, 03:36 AM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

That's a fix I've heard before, setting the fifo to 1 might work. Make sure you've got a 16F877 as the 16F877A uses different firmware.
The length of the RS232 cable can be long, 2m is common.
If the MAX232 isn't hot it's fine.
Also it should be COM1 or COM2.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 4th April 2008, 08:04 PM   (permalink)
Experienced Member
 
Kryten is on a distinguished road
Default

So the clones wont work with a USB to RS232 ?? I was kind of hoping for that (but i guess i can make it to work with USB direct see www.stolz.de.be)
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 5th April 2008, 12:56 AM   (permalink)
New Member
juanbbv is on a distinguished road
Default

Quote:
Originally Posted by BronzeG3
I've made an ICD clone from his page, but used a 876a, so I'm not sure this will help. To get it working on my computer, I had to enable the FIFO buffers, but set them both to low (1). With them completely disabled, I was having communication errors.

Thanks i´m going to try your solution, maybe it works!

But before this I have to solve the problem of writing the pic 16f877 with the file Bl010101.hex becouse i always have errors independentely of the programmer I use...
I don´t now why... All the sites I´ve readed says that this is the correct file for this pic16f877 and PIC16F876 (there isn´t disponibility for the last here in my country)

The error is always related o address 0000f, is like the file is not compatible with the pic...
help!!!!

Last edited by juanbbv; 5th April 2008 at 01:46 AM.
juanbbv is offline   Reply With Quote
Old 5th April 2008, 01:02 AM   (permalink)
New Member
juanbbv is on a distinguished road
Default

Quote:
Originally Posted by Krumlink
hmmmm

Would you be able to purchase a inchwom+ from Canada?

Its definately worth it, at only 45$, get one. No substitution.
http://www.blueroomelectronics.com/inchwormplus.htm
I would like, but i don´t have much money.In my country uss dollars are expensive, and the shipment is too. (maybe it will cost to me 100 dollars or more...)
Thanks

Last edited by juanbbv; 5th April 2008 at 02:14 AM.
juanbbv is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
ICD2 Clone and dsPIC javilon Micro Controllers 46 11th June 2008 02:48 AM
PCMCIA to RS232 for ICD2 clone clockdoctor Micro Controllers 6 7th April 2008 10:09 PM
ICD2 vs PICKit 2 noptical Micro Controllers 26 22nd March 2008 08:45 PM
Olimex ICD2 Broken! HerbertMunch Micro Controllers 43 5th February 2008 02:39 AM
A great ICD2 problem airtonsena Micro Controllers 1 3rd February 2008 02:19 PM



All times are GMT. The time now is 03:09 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.