Searching \ for '[PIC]: Running code without an ICD?!' 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: 'Running code without an ICD?!'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Running code without an ICD?!'
2003\11\07@192605 by Angus Thomson

flavicon
face
Hello

I am a new list member, so bear with me! I am trying to run code written
in CCS's C compiler on a 16F876, using an ICD 1 and MPLAB. The code
works fine when running in debug mode with the ICD connected (i.e. with
the 'icd = true' and 'debug' options set) but when I try and run the
code 'standalone' it does not work at all. As I know the code works, is
there a reason why the PIC would not be running my code without the ICD
connected? The MCLR line is not held in reset and the oscillator is
running! I would really appreciate any advice!

Thanks,
Angus Thomson


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003

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

2003\11\07@193848 by Alessandro Queri

flavicon
face
* is /MCLR really at high logic level?
* how is your BOD setting? And what's about supply voltage? (hint: under 4v AND BOD the device is kept in reset)
* how do you know that osc is running? tested the output?

Hope this helps.

Ale

On Sat, 8 Nov 2003, Angus Thomson wrote:

{Quote hidden}

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

2003\11\08@121849 by Angus Thomson

flavicon
face
Hello again,

I have been debugging my circuit for over a day now, and still with no
luck! Thanks to Ale for the suggestions, but unfortunately the PIC will
still not run without the ICD attached and in debug mode. The strange
thing is that it will run when debug mode is turned off, but only when
the cable between the PIC and the ICD is only partially connected; when
either taken out or plugged in fully, no code will run (the crystal is
oscillating, MCLR is definitely high and BOD is switched off). I have
tried a different PIC with the same result, and also have checked my
circuit thoroughly. The ICD works fine with other circuits too, so this
doesn’t seem to be the cause.
Any ideas?!

Thanks again!
Angus Thomson


{Original Message removed}

2003\11\08@142544 by Olin Lathrop

face picon face
Angus Thomson wrote:
> I have been debugging my circuit for over a day now, and still with no
> luck! Thanks to Ale for the suggestions, but unfortunately the PIC will
> still not run without the ICD attached and in debug mode. The strange
> thing is that it will run when debug mode is turned off, but only when
> the cable between the PIC and the ICD is only partially connected; when
> either taken out or plugged in fully, no code will run (the crystal is
> oscillating, MCLR is definitely high and BOD is switched off). I have
> tried a different PIC with the same result, and also have checked my
> circuit thoroughly. The ICD works fine with other circuits too, so this
> doesn t seem to be the cause.

This sounds like the low voltage programming pins are enabled but not tied
low.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

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

2003\11\08@182302 by Igor Pokorny

flavicon
face
I consider your problem is you probably still have a debug option set. It's
not allowed if you want to run your program alone.

Regards

Igor

{Original Message removed}

2003\11\09@175841 by Igor Pokorny

flavicon
face
Hello Ale.

I do know PIC doesn't run when ICD is connected and the debug option is off.
It's probably because  RB6 is kept low by ICD  during reseting.

Regards

Igor

{Original Message removed}

2003\11\10@045000 by Alan B. Pearce

face picon face
>I do know PIC doesn't run when ICD is connected and the
>debug option is off. It's probably because  RB6 is kept
>low by ICD  during reseting.

You do not need LVP mode when using the ICD1 as it generates the high
voltage for you. I suspect it will control RB3 in case the PIC is set to LVP
mode.

However the original problem is that you must turn off the debug mode to
have the PIC run without the ICD1 connected. If debug mode is on the
internal code jumps to the debug code inside the PIC, and waits for a
command from the ICD. As there is no ICD connected then you cannot get your
code to run. I believe you should only need to change the configuration word
to achieve this, without needing to re-program the whole chip, although this
was what I was doing when using the ICD1.

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\11\10@091958 by Micro Eng
picon face
I know that when running in MPLAB, and programming the parts.....you have to
disable the debugger if you want the code to run stand alone.  Not being
familiar with the CCS setup, its probably the same thing.

_________________________________________________________________
Is your computer infected with a virus?  Find out with a FREE computer virus
scan from McAfee.  Take the FreeScan now!
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

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