| Author |
Message |
cherreram
Joined: 05 Mar 2008 Posts: 5
|
18 Apr 2008 17:42 Short version of help for the ICD2 |
|
|
|
for dgs117,
ICD2 version of Lothar Stolz uses a FT232BM to emulate an USB port, but it isn't one. FT232 firmware creates a COM port to comunicate with MPLAB. That's why velocity is limited to 57Kbps. Really it is a COM port and not an USB.
So, version of Lothar Stolz is really a serial ICD2.
|
|
| Back to top |
|
 |
dgs117
Joined: 12 Sep 2007 Posts: 8 Location: Lithuania
|
23 Apr 2008 10:58 Re: Short version of help for the ICD2 |
|
|
|
Yes, I know that, but it's a good starting point for building a more advanced ICD2 with full USB support. I use it only for programming, so it satisfies my needs for now.
| cherreram wrote: |
for dgs117,
ICD2 version of Lothar Stolz uses a FT232BM to emulate an USB port, but it isn't one. FT232 firmware creates a COM port to comunicate with MPLAB. That's why velocity is limited to 57Kbps. Really it is a COM port and not an USB.
So, version of Lothar Stolz is really a serial ICD2. |
|
|
| Back to top |
|
 |
alunaro
Joined: 15 Jan 2002 Posts: 87 Location: Another world
|
30 May 2008 16:55 Tested firmwares |
|
|
|
Because i'm bored and when i'm bored i do stupid things... i'm going to test in my PICS (b) ICD2 clone, the 3 firmwares that are supplied in this thread. No problem, it's not the first time i used it for experiments... and i still am alive
I will comment my results later...
Added after 2 hours 30 minutes:
I have tested the firmwares for PICS clone using 877A instead 877. They work well.
A question, the 2nd firmware for 4550... where is? i suppose that modifications are included in the 3rd.
|
|
| Back to top |
|
 |
sbampa12
Joined: 17 May 2008 Posts: 5
|
05 Jun 2008 17:46 Re: Short version of help for the ICD2 |
|
|
|
Hello, I am new in this forum, and this is my first post (and my english could not to be the best, so sorry).
2 weeks ago I started the ICD2 Clone (based on potyo2-rev1, zip).
I made the pcb, and soldered all the components, placed the jumper near the 4066.
So I conected this to the computer, installed the drivers, download the SO, and conected in MPLab (8.10). All works very well.
But some days ago I do one pcb to program pic 16F628A, for test of the icd2 clone.
But for my surprise it does not work (write). I can conect, but I can't write/read the 'device'. And whatever I do the MPLab always show:
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
ICDWarn0020: Invalid target device id (expected=0x83, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
The problem is:
ICDWarn0020: Invalid target device id (expected=0x83, read=0x0)
I don't know what to do. I revised the conector, the solder, the cable. I change the pic (anothers 16F628A, and some olds 16f84A) and always I have the same problem.
Anybody can help me? please
Thanks for all.
Mario Sbampato - São Paulo / Brazil
Added after 4 minutes:
OBS: The ics are not EXACTLY the same. I used:
CD4066
74126N
SN74LS125AN
SN74LS07N
I don't think that the problem is these ICs.
|
|
| Back to top |
|
 |
kal-el-8
Joined: 22 Mar 2008 Posts: 2
|
08 Jun 2008 14:23 Re: Short version of help for the ICD2 |
|
|
|
Hi sbampa12, did you select the correct pic in maplab? You go to the menu: Configure->select device-> (and then select the pic you are trying to connect)
regards
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1196 Helped: 59 Location: Toronto, Canada
|
08 Jun 2008 22:06 Re: Short version of help for the ICD2 |
|
|
|
Old poster but it may shed some light on your first MPLAB program
You can download the hires PDF version from my site in the downloads section.
|
|
| Back to top |
|
 |
dgs117
Joined: 12 Sep 2007 Posts: 8 Location: Lithuania
|
10 Jun 2008 12:06 Re: Short version of help for the ICD2 |
|
|
|
The one use of ICD2
I made my own dev board for PIC18F4520. It's more or less like EasyPIC4. There is an on-board MPLAB 7.60a compatible ICD2 (upper right corner). Yesterday I demonstrated this board as my final work for bachelor's degree. It works but still needs a lot of improvements. The board features a lot of perphereals, like I2C (for eeprom), SPI (for MAX7219), OneWire (for DS1820), RS232 (MAX232), analog input (two potentiometers), socket for resonator, piezo buzzer, two connectors for LCD 2x16 and GLCD 128x64, pull-up/down resistors, push buttons, LED's, each port has a connector for external devices. Each device can be connected/disconnected with a dip switch or a jumper (like in EasyPIC's).
I could publish the schematics and all but I wont, coz the design is not perfect yet. It will be (I hope) after summer
|
|
| Back to top |
|
 |
OurWay
Joined: 29 May 2008 Posts: 11
|
11 Jun 2008 4:39 Short version of help for the ICD2 |
|
|
|
| thank you
|
|
| Back to top |
|
 |
usmanstar2
Joined: 14 May 2008 Posts: 18
|
14 Jun 2008 16:24 Short version of help for the ICD2 |
|
|
|
Can any body send me the snapshot of MPLAB ICD2 Debugging.
you only need to just debug the Assembly code of LED On/OFF program.
And take a snapshot by pressing Printsys button and paste in paint and send me.
I want to see.
thanx
Added after 1 minutes:
Debugging shows every thing like Register, Assembly code , memory, disassembly etc.
|
|
| Back to top |
|
 |
Joemon
Joined: 14 Aug 2006 Posts: 10
|
23 Jun 2008 20:38 Short version of help for the ICD2 |
|
|
|
To Blueroom,
I tried making your Inchworm+, and the device passes the self-test and connects through MPLAB (7.60) however, when it says "Device ID error, expected =0x1C1, value read = 0xE1" when i try to download operating system for dsPIC 30F4011. I used MAX 232 (ST232 is not available anywhere) with 10uF caps, could this be the reason ?
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1196 Helped: 59 Location: Toronto, Canada
|
23 Jun 2008 22:03 Short version of help for the ICD2 |
|
|
|
| Test your Inchworm+ with a more basic PIC like the 16F628A as it only requires 5 connections, sounds like you have not connected all the GND & VDD pins on your dsPIC.
|
|
| Back to top |
|
 |
Mersonren
Joined: 18 Aug 2007 Posts: 3
|
01 Sep 2008 18:12 Re: Short version of help for the ICD2 |
|
|
|
| ScratchBuild wrote: |
Hi guys and newbies,
I started this thread because I cannot see any of you guys trying to build the ICD2 reading 55 pages and then try to figure out what and where to go with this.
I will post what I have but does not guarantee it is the latest. So if you have later stuff than me please feel free to post.
Regards
Nic
Added after 11 minutes:
Here is the latest firmwares I use:
There are tjree firmwares for the 4550
1) The first one is the original
2) The second is the fix for the firmware overwrite problem
3) the third disables MCLR
Regards
Nic |
Hi ScratchBuild,
You said that there are three firmwares for the 4550. But I only find two version of bootload for 4550. One is ICD2_18F4550_boot.hex. Another one is ICD2_18F4550_boot_Mclr_dis.hex. Could you kindly advise if both of them can fix the firmware overwrite promble? Thanks!
|
|
| Back to top |
|
 |
master_slave
Joined: 28 Feb 2005 Posts: 50 Helped: 5 Location: Manila, PH
|
26 Sep 2008 11:28 Re: Short version of help for the ICD2 |
|
|
|
| I'm wondering why in the PICS ICD2 schematics PIC18F4550 MCLR is hanging and has no RC network. Any thoughts on this?
|
|
| Back to top |
|
 |
SG61-addict
Joined: 08 Mar 2008 Posts: 4
|
01 Oct 2008 1:06 Re: Short version of help for the ICD2 |
|
|
|
Hi guys,
First, sorry for my english whitch could be a pain...
I've built potyo v2 PCB, I use 16F877A & 18F4550 with the firmwares posted at the top of the topic.
I've tried the 2 versions of firmwares for 18F4550 (with and without MCLR), but since I have a resistor between Vcc and MCMR, it should be (and it is) equivalent.
My Vpp is working (11.3V), LED 6 is ON but all others leds off.
MCLR=5V on each PIC.
20MHz cristal is working on 18F, and signal goes from 18F to 16F perfectly (verified with scope).
WinXP recognize the USB devices, driver installation is done
But, when I launch mplab (8.10) and try to connect to potyo2, I get :
| Quote: |
ICD0021: Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready |
note that debug\download OS is unavailable.
Please help me, I don't now what to do. I'm debuging since a couple of hours, my card seems to be ok, I can't locate where is the problem.
Could the problem be between 18F and 16F, or only in 18F ?
Thank you so much !
PS : I also added 100nF capacitors on 16F & 18F supplies pins.
|
|
| Back to top |
|
 |