|
|
View previous topic :: View next topic |
Author |
Message |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
Running PIC w/o ICD |
Posted: Wed Dec 29, 2004 12:04 pm |
|
|
Colleagues,
I can't download the program into the PIC for standalone operation w/o ICD. Here are my fuses:
Code: |
#include <18F452.h>
// #device ICD=TRUE release version
#device adc=10
#use delay(clock=40000000)
#fuses NOWDT,WDT128,H4, NOPROTECT, NOOSCSEN, BROWNOUT, BORV20, NOPUT, STVREN, NODEBUG, LVP, NOWRT, NOWRTD, NOWRTB, NOWRTC, NOCPD, NOCPB, NOEBTR, NOEBTRB // release version
#use rs232(baud=57600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,stream=HOSTPC) // communication w/ host PC
#use rs232(baud=19200,parity=N,xmit=PIN_D4,bits=8,stream=LCD_XMIT) // by default LCD is listening at 19.kbaud
// #use rs232(DEBUGGER,stream=DEBUG) release version // debug output through ICD
#use i2c(Master,Slow,sda=PIN_C4,scl=PIN_C3,force_hw)
|
What am I doing incorrectly? (Similar fuse settings used to fork for my previous projects.)
Thanks,
Nick |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Dec 29, 2004 1:51 pm |
|
|
1. First, change LVP in your #fuses statement to NOLVP.
2. In MPLAB, go to the Project/Build Options menu and "un-check"
the box that says "Compile for use with ICD Debugger".
Then compile the file.
Then go to the Programmer menu in MPLAB (not the Debugger menu)
and select "Erase Part". Then select "Program".
See if the program runs OK.
Hopefully, that will work. |
|
|
daveroll Guest
|
old icd |
Posted: Wed Dec 29, 2004 11:40 pm |
|
|
the old icd is no longer supported by mplab 6.00+ you must use ccs debug enviroment if you want to debug. to program using the icd you can use ccs icd-s software. |
|
|
Matt Carvey
Joined: 29 Dec 2004 Posts: 1 Location: Boston, MA
|
|
Posted: Thu Dec 30, 2004 1:58 pm |
|
|
I actually had this problem and found something that seems to work. In the CCS IDE I closed the debug window, removed #device ICD=TRUE, compiled the program, and then went to Tools>ICD. It then gave me a message about erasing the chip, and programs seem to work w/o the ICD. This was with the 18f452 development board. On an older version of CCS IDE with the 16f877a and my own board I could reprogram the chip by compiling with the debug window open but I couldn't get this to work. |
|
|
|
|
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
|