![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
stoyanoff
Joined: 20 Jul 2011 Posts: 375
|
Problem with debugging of 18F66J60 |
Posted: Thu Nov 08, 2012 3:26 am |
|
|
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! |
|
![](templates/subSilver/images/spacer.gif) |
rodrigo.bzsilva
Joined: 13 Nov 2012 Posts: 4
|
Re: Problem with debugging of 18F66J60 |
Posted: Tue Nov 20, 2012 6:13 am |
|
|
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.. |
|
![](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
|