Searching \ for '[PIC]: ICD Debug Module / No Target (1 of 1),' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devprogs.htm?key=icd
Search entire site for: 'ICD Debug Module / No Target (1 of 1),'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: ICD Debug Module / No Target (1 of 1),'
2001\03\27@011014 by Ellen Spertus

flavicon
face
I am working through the tutorial for MPLAB ICD on a 16F877. I have been
able to build the project and download the code, but I have never been able
to successfully run the code. When I try, one of the following happens:

1. I get an error that the operation could not be performed.
2. When I halt the program and get a snapshot of program memory, it's
executing garbage code (the instruction that is all 1s, i.e., 0x3fff).
Scanning through memory shows the same bad instruction at 0x1f00-0x1fff,
where the debug code is supposed to be. The program I downloaded
tut8f77.hex is in low memory, as it should be.

From the junk in high memory, I inferred that the debug code wasn't on the
chip, so I selected "Download ICD Operating System" and downloaded
ICD23000.OBJ. Since then, I have not been able to reprogram the chip. When
I try, I get the message "No Target". I am still able to do "Self Test".
The result is:
DLL Version: Version 1.4100
Firmware Version: Version 2.30.00
Debug Module: Not Exist
Self test: ok

I would be very grateful for any advice.

Ellen Spertus
spam_OUTspertusTakeThisOuTspammills.edu

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu


2001\03\27@021325 by Peter Betts

picon face
Silly question but have you ERASED the chip, then checked it's blank and
finally re-programmed?

I'm sure non blank device gives a different error to yours but just a
thought.

"No Target" might suggest a lack of power to the target board. Have you
allowed the ICD to power your circuit or are you doing this separately?

Pete

> -----Original Message-----
> From: ext Ellen Spertus [spertusspamKILLspamMILLS.EDU]>

> I have not been able to reprogram
> the chip. When
> I try, I get the message "No Target".

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam.....mitvma.mit.edu


2001\03\27@082156 by Bob Ammerman

picon face
> "No Target" might suggest a lack of power to the target board. Have you
> allowed the ICD to power your circuit or are you doing this separately?

Actually, the ICD is powered by the target circuit. If the ICD isn't
connected to the target at all you will not be able to connect to the ICD
from MPLAB.


By the way, regarding the original post on this thread:

1: You won't normally see the ICD code in MPLAB. MPLAB only knows about what
it downloaded to the chip, via the ICD. The ICD itself inserts the debugging
code to high memory.

2: Downloading the "ICD operating system" installs a new version of code
into the ICD itself (ie: the PIC that is on the ICD module). It has nothing
to do with the code on the target system.

3: Chances are the program was off running in high memory because of an
error in the code itself.

4: Perhaps there is something wrong with version 2.30 of the ICD operating
system? (I am running version 2.21.02 myself).

Perhaps the target chip is toasted?

Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu


2001\03\27@082953 by Peter Betts

picon face
> Actually, the ICD is powered by the target circuit. If the ICD isn't
> connected to the target at all you will not be able to
> connect to the ICD
> from MPLAB.

I'm sure my simple $100 ICD is powered by an external power supply and then
supplies the target board with 5V,0V, Vpp, RB6 and RB7 when programming.
Maybe this is different to the dearer full blown ICD?



> 2: Downloading the "ICD operating system" installs a new
> version of code
> into the ICD itself (ie: the PIC that is on the ICD module).
> It has nothing
> to do with the code on the target system.

There is another flag to set in the ICD to download the monitor code into
the top of the PIC memory space before debugging can begin. (Something I
forgot to turn off and didn't realise why my boards weren't running stand
alone!)

Pete

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamspam_OUTmitvma.mit.edu


2001\03\27@084221 by Bob Ammerman

picon face
> > Actually, the ICD is powered by the target circuit. If the ICD isn't
> > connected to the target at all you will not be able to
> > connect to the ICD
> > from MPLAB.
>
> I'm sure my simple $100 ICD is powered by an external power supply and
then
> supplies the target board with 5V,0V, Vpp, RB6 and RB7 when programming.
> Maybe this is different to the dearer full blown ICD?

If you have the MChip ICD it _is_ powered by the target board. Go look at it
again. :-)

Now if you are using the prototyping board that came with the ICD, that can
also provide the power, but in this case it _is_ the target.

I am not sure about the original Transdata version.

Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)

--
http://www.piclist.com hint: To leave the PICList
@spam@piclist-unsubscribe-requestKILLspamspammitvma.mit.edu


2001\03\27@084426 by Michael Rigby-Jones

flavicon
face
> -----Original Message-----
> From: Peter Betts [SMTP:KILLspamext-peter.bettsKILLspamspamNOKIA.COM]
> Sent: Tuesday, March 27, 2001 2:29 PM
> To:   RemoveMEPICLISTTakeThisOuTspamMITVMA.MIT.EDU
> Subject:      Re: [PIC]: ICD Debug Module / No Target (1 of 1),
>
> > Actually, the ICD is powered by the target circuit. If the ICD isn't
> > connected to the target at all you will not be able to
> > connect to the ICD
> > from MPLAB.
>
> I'm sure my simple $100 ICD is powered by an external power supply and
> then
> supplies the target board with 5V,0V, Vpp, RB6 and RB7 when programming.
> Maybe this is different to the dearer full blown ICD?
>
The standard Microchip ICD definately takes it's power from the target
rather than the other way around.  I've modified a cable so that the ICD is
continuously powered, and supplies power to the target when plugged in.
Stops MPLAB having a fit when I compile some code and the ICD has been
powered down.

Mike

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu


2001\03\27@084852 by Peter Betts
picon face
> If you have the MChip ICD it _is_ powered by the target
> board. Go look at it
> again. :-)

Ahh yes! Mixed it up with my P16PRO programmer. Sorry. Shouldn't trust my
memory :-(

--
http://www.piclist.com hint: To leave the PICList
TakeThisOuTpiclist-unsubscribe-requestEraseMEspamspam_OUTmitvma.mit.edu


2001\03\27@111049 by Ellen Spertus

flavicon
face
Pete,

Thanks for your very helpful comments.

> There is another flag to set in the ICD to download the monitor code
> into the top of the PIC memory space before debugging can begin.
> (Something I forgot to turn off and didn't realise why my boards weren't
> running stand alone!)

Are you referring to the "Enable Debug Mode" checkbox on the ICD Options
dialog?  I have checked that.  Or is there another flag I should set?

Ellen

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestspamTakeThisOuTmitvma.mit.edu


2001\03\27@111252 by Ellen Spertus

flavicon
face
> "No Target" might suggest a lack of power to the target board.
> Have you allowed the ICD to power your circuit or are you doing
> this separately?

I am using the Microchip ICD evaluation kit.  There is a power plug on the
Demo Board (in which I've connected a 9V regulated power supply).  The Demo
Board is connected to the ICD Module through a telephone wire.  Shouldn't
that take care of power to the ICD Module?  The ICD Module is also
connected through a serial cable to the PC, of course, although I assume
that's just for data.

Thanks for your help.

Ellen

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestEraseMEspam.....mitvma.mit.edu


2001\03\27@111757 by Peter Betts

picon face
> I am using the Microchip ICD evaluation kit.  There is a
> power plug on the
> Demo Board (in which I've connected a 9V regulated power
> supply).  The Demo
> Board is connected to the ICD Module through a telephone
> wire.  Shouldn't
> that take care of power to the ICD Module?  The ICD Module is also
> connected through a serial cable to the PC, of course,
> although I assume
> that's just for data.

Yes you are 100% correct. Ignore my previuous posting, I took a guess and I
was wrong! :-(

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspammitvma.mit.edu


2001\03\27@115550 by Peter Betts

picon face
> Are you referring to the "Enable Debug Mode" checkbox on the
> ICD Options
> dialog?  I have checked that.  Or is there another flag I should set?

Yes. The "Enable Debug Mode"

I wouldn't just load the code and hit RUN. I would load the code and then
reset the PIC and STEP through the code until it falls over or behaves oddly

It sounds like it's your code that's trashing and taking you to undefined
memory areas and then the debugger crashes or has problems because of that.

If STEPing is going to take you a long time try iteratively jumping over
small chunks of code setting a breakpoint each time. If it falls over you at
least have narrowed down where to look for the problem, somewhere between
the previous breakpoint and the new one.

Is there a pre-assembled version of the code or a finished assembler file
within the tutorial? Have you tried using this instead in case your typing
in of the example tutorial is flawed somewhere? This would at least test you
hardware was O.K.

Also are you happy with using the Simulator functions? Make sure you
understand how the code is meant to work under simulation before you delve
into the hardware.

Pete
ps. Apologies if you know this already.

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestEraseMEspamEraseMEmitvma.mit.edu


2001\03\27@125139 by Ellen Spertus

flavicon
face
Pete,

No need to apologize for your wrong guesses.  You've made a number of
helpful suggestions and comments that have increased my
understanding.  While I have a lot of experience with computers, I'm brand
new to PICs so am pretty ignorant about them.

As for the code, it came with MPLAB, so it's probably not buggy.  I didn't
type it in myself.

I'll try swapping boards, chips, and cables and see if things work better
today, as well as trying your other suggestions.

Thanks again for your help.

Ellen

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestspam_OUTspamKILLspammitvma.mit.edu


2001\03\28@110658 by Alan B. Pearce

face picon face
>As for the code, it came with MPLAB, so it's probably not buggy.  I didn't
>type it in myself.

Do they not supply an example with deliberate bugs in it so that they can teach
using the ICD to find them? I also seem to recall that when the ICD was first
released there was an error in either documentation or code that came with it,
and there was an update on the M site. I may be wrong here, but there is
something lurking in the back of my mind that this happened ...

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\03\28@110830 by Ellen Spertus

flavicon
face
I finally got it to work.  I had connected the telephone wire between the
ICD module and the demo module.  It worked after I connected the ICD module
to the ICD header.  (If you want to see what I'm talking about, look at p.
17 of
http://www.microchip.com/Download/tools/picmicro/icds/mplabicd/51184d.pdf.)
I had thought the two were equivalent, but I must have been wrong.

I greatly appreciate the help and support I got on the list.  I had been at
wit's end (without a magazine).

Ellen

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...