cbarberis
Joined: 01 Oct 2003 Posts: 172 Location: Punta Gorda, Florida USA
|
Program will not run without ICD=TRUE |
Posted: Tue Aug 29, 2006 5:21 pm |
|
|
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) |
|