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.

This is a working RS232.... ICD2 !!!!

Status
Not open for further replies.
master_slave said:
What other PIC devices in which this RS-232 ICD2 can be used with aside from PIC16F87X? Can it be used for the PIC18F devices?
All 18 family devices are supported

master_slave said:
Can it be used also to debug PIC programs written in C through compilers like PICC?
Yes
 

I also have a RS232 ICD2, under MPLAB 6.6,it works fine, when I updata to MPLAB 7.10, it could not work,often report lost communication error, any suggesttion? thanks!
 

I just built an "ugly" Serial ICD2 clone a couple weeks ago and it's working fine with MPLAB 7.11 on a Win98se system... You must select the Serial Port under <Programmer> and <settings> menu each time...

Good luck... Regards, Mike
 

hi to everybody, i want to make an icd, so what i need?
 

To Mike, K8LH,

Do you have a schematic of your serial ICD2 clone? It uses much fewer components, as well as the smaller PIC16F876 (I think it's 876 there). Thanks.
 

hai crazyduck

the firmware is not working properly
which ic to use is it 16f877 or 16f877a
pls confirm
and mail me the proper firmware
pvinbox@yahoo.com

Added after 1 minutes:

hai everybody

is anybody have fully working icd2 serial or usb version
with all shematic, pcb, and firmware
 

Hi,
sorry for the late,

This the bootloader for 16F877A (thanks to Zaphod42)
My ICD2 works very well! It was more complex as other on the forum, but it works !!!
I've realized two ICD2 without problem. Just respect the lengh of the cable between the ICD2 module and the debug card (10 to 15 cm).

Sometimes you can have some problems, MPLAB after programming the target chip, said " ICD0083: Target not in debug mode, unable to perform operation ", look at your target card only. I've this problem with high oscillator (above 10MHz), you must add two capacitors and one resistor on target ICD connector.

For the problem

I also have a RS232 ICD2, under MPLAB 6.6,it works fine, when I updata to MPLAB 7.10, it could not work,often report lost communication error, any suggesttion? thanks!

My solution is: Don't configure the COM port with the wizard of MPLAB, edit the ICD2.INI and choose directly your COM port. It works for me.

[MPLAB-ICD2]
DBLClickMsg=1
BaudRate=1
ComPort=4
UsingNewComNums=1...


Choose the number of your COM port on the line 4

CD
 

hai all

Thanks to crazyduck
my icd2 is working based on your circuit.
but it is working with firmware loaded in 16f877
it is working properly when firware loaded in 16f877a
probably your last post's bootloader may solve this problem
 

I made the ICD2 version from h**p://www.stolz.de.be/.

But it shows this error message. My target is PIC16F876
What could be the problem. Kindly help.
Thanks and regards
Itp

--------------------------------------------------
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F876 found, revision = b8
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x1E63)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
Verifying...
...Program Memory
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
ICD0083: Target not in debug mode, unable to perform operation
MPLAB ICD 2 Ready
---------------------------------------------------------------------------
 

ITP said:
I made the ICD2 version from h**p://www.stolz.de.be/.

But it shows this error message. My target is PIC16F876
What could be the problem. Kindly help.
Thanks and regards
Itp
...
Connecting to debug executive
ICD0083: Target not in debug mode, unable to perform operation
MPLAB ICD 2 Ready
---------------------------------------------------------------------------
Do you have the ICD2 selected as a Debugger?, and not as a Programmer. In newer MPLAB versions, you don’t set the Debug flag manually. It’s automatically done when you program the PIC from the Debugger menu, but not from the Programmer menu.
 

Hi Make_Pic, Thanks for the reply.

I am programming from the Debugger menu. Any other possible resons.

Regards
Itp
 

has anyone tested this ICD2 with latest MPLab ??

it work or not??

now i'm going to choose an ICD2 to built...
 

What happend with this topic It's because everybody has it´s own ICD2, so wich ICD2 was the best choice or the less problematic? or every body it´s working now in the USB ICD2?
because I still working on it..
 

Well, can someone give me a reasonable explanation what's wrong with my ICD2.

Here is my test program in PICC
Code:
#include <18f1320.h>
#device ICD=TRUE
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4098000)

#define  TOGGLE_PIN  PIN_B0

// This function turns the LEDs on and off
void flash_led()
{
   output_low(TOGGLE_PIN);
   delay_ms(1000);
   output_high(TOGGLE_PIN);
   delay_ms(1000);
}

void main()   
{
     while(TRUE)      
      flash_led();
}

When I use ICD2 as a programmer everything is OK, but when I switch to a debugger MPLAB 6.61 says :

Code:
MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
...Programming EEPROM Memory
...Programming Program Memory (0x0 - 0x6F)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
...Programming RSBUG
...Programming User IDs
Verifying...
...Program Memory
...EEPROM
...User ID Memory
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
ICD0083: Target not in debug mode, unable to perform operation
MPLAB ICD 2 Ready

I don't change anything in Configuration bits.

Code:
Oscillator                            HS
Fail-Safe Clock Monitor         Enabled
Internal External  Switch Over Mode     Enabled
Power Up Timet                  Disabled
Brown On Detect                 Enabled
Watchdog Timer                  Disabled
Master Clear Enable             MCLR enabled, RA5 input disabled
Stack Overflow Reset            Enabled
..................
the rest bits are Disabled

As it seems the debug executive is written successfully but ICD2 can't run it.
Give me the clue.
 

My ICD2 is finally working.

Everything in my previous post is correct - the Configuration Bits and the source code. The problem was in the hardware. The MOSFET providing 5 V when the target is in debug mode was broken and when MPLAB is trying to set the target in debug mode it is not powered thereby an error emerge.
 

narccizzo said:
my ICD2 works too slow is this normal?

Yes. If you used RS232 it very slow on debug mode.
 

Hi,

I am newby here.
I am looking for ICD2 16F876 hex file.
But must of value file need "POINT" to download.. I have ZERO points.

Anybody can tell me where can find this HEX??
TQ
 

Hi,
You can download some files on this topic because they are on "free mirror" server.
You can find a bootloader and schematic for ICD2. The bootloader is the same between 16F876A and 16F877A.

CD:D
 

Hi CD,

did you ever try to program 18F8620 or 6620 with your ICD2 clone?
I've built it, and works fine with 18F452 I can debug with it too, but with 8620/6620 i got Verify errors at 0x0000.
Seems there's no writing occours at all. All voltages are OK, Passes the test in MPLAB 6.x and 7.x.

any idea?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top