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 ENC28J60 + PIC24FJ256GB110

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



Joined: 13 Apr 2010
Posts: 23

View user's profile Send private message

Problem with ENC28J60 + PIC24FJ256GB110
PostPosted: Fri Apr 16, 2010 3:54 am     Reply with quote

Hello everyone,

I have a problem, use a PIC24FJ256GB110 + ENC28J60
these examples work:
ex7a.c> OK
ex7b.c> OK
ex8a.c> OK
ex8b.c> OK
ex9a.c> OK
ex9b.c> OK
ex10a.c> OK
ex10b.c> OK

ex11.c -- ex17.c> NO !

I attach configurations...

Please help me javascript:emoticon('Embarassed')
Code:

Code deleted.  See:
c:\program files\picc\tcp-ip\pic examples source\ex11.c   


++++++++++++++++++
Some code deleted.
Reason: Forum Rule #10:

10. Don't post the CCS example code or drivers

-- Forum Moderator
++++++++++++++++++

Code:

// ccstcpip.h

#define STACK_USE_CCS_PICENS   1 //18f4620 + enc28j60
#define STACK_USE_CCS_PICNET   0 //18f6722 + realtek
#define STACK_USE_CCS_PICEEC   0 //18f97j60

#if STACK_USE_CCS_PICENS
 #define STACK_USE_MCPENC 1
#endif

#if STACK_USE_CCS_PICEEC
 #define STACK_USE_MCPINC 1
#endif

#if STACK_USE_CCS_PICENS


Code:

#include <24FJ256GB110.h>

#DEVICE ADC=10
#TYPE  short=8, int=16, long=32

#fuses HS,PR_PLL,NOWDT,ICSP2
#fuses PLL5
#use delay(clock=32000000)

// IMPOSTAZIONI PER RS232
#use rs232(UART1, baud=9600, xmit=PIN_F5,rcv=PIN_F4)


// IMPOSTAZIONI PER SPI ENC28J60

#PIN_SELECT SDI1=PIN_D2
#PIN_SELECT SDO1=PIN_F8
#PIN_SELECT SCK1OUT=PIN_B1
#PIN_SELECT SS1OUT=PIN_D14

#use spi(SPI1, baud=1000000, MODE=0, MASTER, BITS=8)

#include "tcpip/stacktsk.c"    //include Microchip TCP/IP Stack

[Code deleted]


HARDWARE.H
Code:

Code deleted. See:
c:\program files\picc\tcp-ip\pic examples source\drivers\hardware.h   

Embarassed Embarassed Embarassed
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Apr 16, 2010 7:22 am     Reply with quote

yea, the stack doesn't work so well on PIC24.

I started to convert it and got dhcp working... but that was it.. (I think)
I might get back into it to check in a while.. I'd like to see it functioning for PIC24... but it doesn't do so well yet.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
microlo75



Joined: 13 Apr 2010
Posts: 23

View user's profile Send private message

PostPosted: Fri Apr 16, 2010 7:33 am     Reply with quote

bkamen wrote:
yea, the stack doesn't work so well on PIC24.


-Ben


????????? this is terrible news


if you can help me, I'd be very happy, I thought to incorporate the UDP communication without problems but instead ....

thanks for any help
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Apr 16, 2010 9:01 am     Reply with quote

I would be glad to help (since it would help me too) but right now I have a couple projects I'm working on -- so I couldn't promise any sort of timeline.

If you wanted to get a working stack for that PIC, download the latest from Microchip (version 5.20b, by the way) and then use the free lite version of C30.

While working in CCS is very nice and preferrable, you'd at least get your project working for now while the stack is being worked on for PCD.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
microlo75



Joined: 13 Apr 2010
Posts: 23

View user's profile Send private message

PostPosted: Fri Apr 16, 2010 10:12 am     Reply with quote

bkamen wrote:

If you wanted to get a working stack for that PIC, download the latest from Microchip (version 5.20b, by the way) and then use the free lite version of C30.
-Ben


The problem is that I've done a lot of code with CCS compiler and change is difficult ...

I hope someone on the Forum has already had experience and can help me ....

thanks Crying or Very sad
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