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

Problem with debugging of 18F66J60

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



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

Problem with debugging of 18F66J60
PostPosted: Thu Nov 08, 2012 3:26 am     Reply with quote

Hi! I made a program for 18F66J60. It combines TCPIP stack and MDD card stack. The program compiles but when I run it it blocks.
When I stop the debugger(PicKit 3) it points to
Code:

#use delay(clock=25 000 000)

Here is the code before this row:
Code:

  #include <18f66j60.h>
   #fuses NOWDT, NODEBUG, HS, NOIESO, NOFCMEN, PRIMARY, ETHLED
   
   #define PIN_LED1  PIN_B5
   #define PIN_LED2  PIN_B4
   #define PIN_LED3  PIN_B3
   
   #define LED_ON(x)    output_low(x)
   #define LED_OFF(x)   output_high(x)
   
  #define BUTTON_PRESSED()   !input(PIN_A4)
   
  #include "filesystem\p18cxxx.h"  //C18 to PCH compatability
  #use delay(clock=25000000)


Can you tell me what`s causing that???
Thanks!
rodrigo.bzsilva



Joined: 13 Nov 2012
Posts: 4

View user's profile Send private message Visit poster's website

Re: Problem with debugging of 18F66J60
PostPosted: Tue Nov 20, 2012 6:13 am     Reply with quote

stoyanoff wrote:
Hi! I made a program for 18F66J60. It combines TCPIP stack and MDD card stack. The program compiles but when I run it it blocks.
When I stop the debugger(PicKit 3) it points to
Code:

#use delay(clock=25 000 000)

Here is the code before this row:
Code:

  #include <18f66j60.h>
   #fuses NOWDT, NODEBUG, HS, NOIESO, NOFCMEN, PRIMARY, ETHLED
   
   #define PIN_LED1  PIN_B5
   #define PIN_LED2  PIN_B4
   #define PIN_LED3  PIN_B3
   
   #define LED_ON(x)    output_low(x)
   #define LED_OFF(x)   output_high(x)
   
  #define BUTTON_PRESSED()   !input(PIN_A4)
   
  #include "filesystem\p18cxxx.h"  //C18 to PCH compatability
  #use delay(clock=25000000)


Can you tell me what`s causing that???
Thanks!


try to use the directive #use delay before the defines.. soon after the #fuses..
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