CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Program will not run without ICD=TRUE

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cbarberis



Joined: 01 Oct 2003
Posts: 172
Location: Punta Gorda, Florida USA

View user's profile Send private message Send e-mail

Program will not run without ICD=TRUE
PostPosted: Tue Aug 29, 2006 5:21 pm     Reply with quote

Hi all,

It seems something has changed or perhaps I am very confused. I normally use my ICD-U40 for debug with PCWH ide by placing the following preprocessor statements in my file: #device CD=TRUE and in the fuses I select; #FUSES DEBUG

The above has always worked for me for both the PIC16 and PIC18 family. Once I am done debugging, I just comment out these lines and recompile and then use the ICDU program to just program the part. Now I am finding that if I do what I always did in the past, when I go to program the part, the program does not seem to run, the only way I was able to make the program run, was to put back in the line:
#device ICD=TRUE
It seems I can no longer run the part by itself without this line?????

I have not tried this with other parts, but it seems to be happening with a PIC18F2420 I am using PCHW 3.249 and the latest ICDU firmware

Any hints will be appreciated, Below is the header for the program I am trying to run

**********************************************************


#include <18F2420.h>

#device ICD=TRUE // for debugger only

#device adc=8

#FUSES WDT8 //Watch Dog Timer uses 1:8 Postscale
#FUSES HS //High speed Osc (> 4mhz)
#FUSES NOPROTECT //Code not protected from reading
#FUSES BROWNOUT //Reset when brownout detected
#FUSES BORV27 //Brownout reset at 2.7V
#FUSES PUT //Power Up Timer
#FUSES STVREN //Stack full/underflow will cause reset
//#FUSES DEBUG //Debug mode for use with ICD
#FUSES NODEBUG //NO use with ICD
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOWRT //Program memory not write protected


#use delay(clock=10000000,restart_wdt)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=9,errors)
#use i2c(Master,sda=PIN_C4,scl=PIN_C3)


#bit t1_overflow=0xF9E.0 //PIC18, Reminder

#USE DYNAMIC_MEMORY

#use fast_io(B)
#use fast_io(C)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group