![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
problems with non-debug executable |
Posted: Mon Jul 18, 2005 10:37 pm |
|
|
Colleagues,
I have problems building the firmware, which runs without debugger. The hex file does download, but it doesn't run, when I remove the debugger and cycle the power on the box. Here's my h-file. What am I doing wrong?
Code: |
// version 0.3
#include <18F6720.h>
//#device ICD=TRUE
#device adc=10
#use delay(clock=11000000)
// debug fuses
// #fuses NOWDT,WDT128,HS, NOPROTECT, NOOSCSEN, BROWNOUT, BORV25, NOPUT, NOCPD, STVREN, DEBUG, NOLVP, NOWRT, NOCPB, NOEBTRB, NOEBTR, NOWRTD, NOWRTC, NOWRTB
// release fuses
#fuses NOWDT,WDT128,HS, NOPROTECT, NOOSCSEN, BROWNOUT, BORV25, NOPUT, NOCPD, STVREN, NODEBUG, NOLVP, NOWRT, NOCPB, NOEBTRB, NOEBTR, NOWRTD, NOWRTC, NOWRTB
//#use rs232(baud=19200,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8, errors)
// CCS supports multiple RS232 streams, and it comes handy during debugging.
// e.g. fprintf(debug_stream, "0x%2X\n\r", read_iso_buttons());
#use rs232(baud=19200,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,errors,stream=rs232_stream)
#use rs232(DEBUGGER, stream=debug_stream)
#use i2c(Master,Slow,sda=PIN_C4,scl=PIN_C3)
|
Thanks,
Nick |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 18, 2005 11:01 pm |
|
|
What programmer and what programming software are you using ? |
|
![](templates/subSilver/images/spacer.gif) |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Mon Jul 18, 2005 11:27 pm |
|
|
I'm using:
ICD-U40 w/ firmware v01.30
ICD control program v2.12
CCS compiler v3.209 |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 18, 2005 11:42 pm |
|
|
But what are you using as an IDE to run the compiler ?
PCW or PCWH ?
or MPLAB 7.20 ?
or the PICC icon ? |
|
![](templates/subSilver/images/spacer.gif) |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Tue Jul 19, 2005 12:01 am |
|
|
I'm using PCWH for IDE. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jul 19, 2005 12:34 am |
|
|
I don't have that IDE so I can only be of limited help, but the line
below is intended for use with the CCS debugger. It creates a
software UART to transmit serial data on pin B3. If you're not
using the debugger, it should probably be commented out.
Code: | #use rs232(DEBUGGER, stream=debug_stream) |
|
|
![](templates/subSilver/images/spacer.gif) |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Tue Jul 19, 2005 11:16 am |
|
|
PCM programmer wrote: | ...If you're not
using the debugger, it should probably be commented out.
Code: | #use rs232(DEBUGGER, stream=debug_stream) |
|
Thank you! After I have masked this line with #ifdef, the code began to work standalone. |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|