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 16th March 2008, 09:32 AM   (permalink)
Default ICD2 Clone and dsPIC

Hi!

Some time ago I built an ICD2 Clone from Lothar and it works fine with all pics from the 16F and 18F series.

But yesterday I connected to it a dsPIC30F2010 and it can't get connected. It just appear the message:

ICDWarn0020: Invalid target device id (expected=0x40, read=0x0)

just like if I didn't connected the PIC. I checked the connexions several times and they are OK, but it doesn't still work.

Thank you so much.

Last edited by javilon; 16th March 2008 at 12:00 PM.
javilon is offline  
Reply With Quote
Old 16th March 2008, 10:23 AM   (permalink)
Default

Quote:
Originally Posted by javilon
Hi!

Some time ago I built an ICD2 Clone from Lothar and it works fine with all pics from the 16F and 18F series.

But yesterday I connected to it a dsPIC30F2010 and it can't get connected. It just appear the message:

ICDWarn0020: Invalid target device id (expected=0x40, read=0x0)

just like if I didn't connected the PIC. I checked the connexions several times and they are OK, but it doesn't still work.

Tank you so much.
I have a Blueroom Inchworm+ ICD2 clone that does that exact thing on my dsPIC30F4013. Can't use it. I had to switch to PICkit2 (and a Blueroom Junebug clone too) and use MPLAB for programming/compiling and the PICkit2 software for programming it. Can't do debugging with that combo... bleh! Back to the old ways, beeps and blinks and simulation. Too bad MPLAB has fallen behind for a while. Time for an update.

Anyway, the C30 compiler is good. Quite nice to use.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 16th March 2008 at 10:33 AM.
futz is offline  
Reply With Quote
Old 16th March 2008, 11:35 AM   (permalink)
Post

Thank you very much!

I see that i'm not alone...

I already have a programmer that works with the dspic, but I wanted to debug it :'( :'( :'( . I'll have to return to the old methods.
javilon is offline  
Reply With Quote
Old 16th March 2008, 03:27 PM   (permalink)
Default

The only real hardware difference is the Junebug has 100ohm driving resistors and the Inchworm (and Stolz) versions have 330ohm.
Perhaps I'll put one together with 100ohm. If it works I'll start using 100ohm instead of 330 on the PGC/PGD pins.

I've successfully ran a dsPIC30F3013 with very short cables on a stock Inchworm+. Breadboards have a fair amount of stray capacitance and this may be a factor.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 16th March 2008, 03:34 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
The only real hardware difference is the Junebug has 100ohm driving resistors and the Inchworm (and Stolz) versions have 330ohm.
Perhaps I'll put one together with 100ohm. If it works I'll start using 100ohm instead of 330 on the PGC/PGD pins.
Please let us know what happens with that.

Quote:
I've successfully ran a dsPIC30F3013 with very short cables on a stock Inchworm+. Breadboards have a fair amount of stray capacitance and this may be a factor.
But remember I tried that and a bunch of other suggested things too with my 4013 and Inchworm+/Unicorn. Nothing helped. But the Junebug/PICkit2 programs it fine, and with a 9"-10" cable.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 21st March 2008 at 05:09 PM.
futz is offline  
Reply With Quote
Old 16th March 2008, 03:39 PM   (permalink)
Default

The breadboard is not the problem unless you are really sloppy.

Mike.
Pommie is online now  
Reply With Quote
Old 16th March 2008, 03:40 PM   (permalink)
Default

I'll try it this afternoon.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 17th March 2008, 05:19 PM   (permalink)
Default

Hi!

I've just tried to put a 100 Ohms resistor instead 330Ohms (I actually didn't desoldered it, i've put another in parallel to achieve the 100Ohms).

And it doesn't work... It works with the 16F and 18F series PICs that i've tried, but with de dsPIC appears the same error. "Read=0x0".

Last edited by javilon; 17th March 2008 at 05:26 PM.
javilon is offline  
Reply With Quote
Old 17th March 2008, 11:36 PM   (permalink)
Default

Quote:
Originally Posted by javilon
Hi!

I've just tried to put a 100 Ohms resistor instead 330Ohms (I actually didn't desoldered it, i've put another in parallel to achieve the 100Ohms).

And it doesn't work... It works with the 16F and 18F series PICs that i've tried, but with de dsPIC appears the same error. "Read=0x0".
Ya, I kinda think MPLAB is at fault. Though I routinely use my PICkit2 to program the 30F4013, MPLAB has PICkit2 greyed out if I try to select it as a programmer for the same projects. Probably the next MPLAB update will fix a bunch of these problems? We can hope.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Reply With Quote
Old 18th March 2008, 02:17 AM   (permalink)
Default

I'll order a dsPIC4013 to try, the dsPIC3013 works with my stock Inchworm+ it's just really fussy about the cable.
That said the 4013 has 4 GND & 4 VDD pins that all must be connected for it to be seen by the ICD2.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 10th April 2008, 06:17 AM   (permalink)
Default

I've tried the Inchworm & Junebug with the dsPIC30F4013, they both work fine.
You do need to connect all the VSS pins and VDD pins (8 total)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 10th April 2008, 06:39 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
I've tried the Inchworm & Junebug with the dsPIC30F4013, they both work fine.
You do need to connect all the VSS pins and VDD pins (8 total)
How come your Inchworm+ works and mine doesn't? I definitely had all vdd/vss pins connected. Guess I should try it again.

Does your Junebug work in MPLAB with 4013? When I have 30F4013 selected, PICkit2 programmer is greyed out in MPLAB.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Reply With Quote
Old 10th April 2008, 01:38 PM   (permalink)
Default

Only PICkit2 software sees the 4013, but Microchip seems to include more PICs with every MPLAB release.

Did you also connect the AVDD & AVSS pins?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 5th May 2008, 08:18 AM   (permalink)
Default

Hi!!

A couple of weeks ago I ordered some PIC of 30f and 33F series and this weekend I tried them.

As a result, I say that none of the PIC30F worked with the debugger (either 4013), but to my surprise, the series 33F work perfectly!

So I forget the 30f and I'll work directly with the 33F series, which are better and they work with the debugger and since I do not have to pay them, no matter the price

Last edited by javilon; 5th May 2008 at 08:21 AM.
javilon is offline  
Reply With Quote
Old 12th May 2008, 11:58 PM   (permalink)
Default dsPIC30F2010 won't work

Hi all,

I am planning on purchasing the very nice Inchworm+ kit from blueroom electronics, but because it's a bit risky and expensive for me to get one where I live, and considering that I have all the components required to build one lying around on my workbench, I decided I'd first build a working prototype on breadboard. And so I did.

It works perfectly with all the PIC's I have right now, including these: 12F675, 16F628, 16F818, 16F819, 16F876A, 18F1320, 18F258, 18F2550. However, it fails with the dsPIC3020, just as javilon describes. Changing the coupling resistors to 100 ohms didn't seem make any difference, and the cable connecting both breadboards is only 3" long. I'm keeping all the wires very short and it doesn't seem the stray capacitances are to blame. All VDD and VSS pins are connected.

The same 3020, mounted on that same breadboard, works just fine with my home-built parallel-port programmer and it does that at an amazing speed! Too bad that programmer can't do debugging.

I was wondering if stronger buffering would be required, and perhaps I'll try that, but I'd rather not add another chip to the breadboard at this time. If this prototype can prove to work well for me, then I'll probably place an order for the much nicer Inchworm+ kit.
Could someone please help?

Thanks,
Ramcheck

Edit: I just realized that it can blank-check the PIC18F2431, but it will fail to program it. It keeps coming out blank all the time. The chip is good since I can program it with my parallel port programmer.

Last edited by ramcheck; 13th May 2008 at 10:50 AM.
ramcheck is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 10:19 PM.


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