View previous topic :: View next topic |
Author |
Message |
microlo75
Joined: 13 Apr 2010 Posts: 23
|
Problem with ENC28J60 + PIC24FJ256GB110 |
Posted: Fri Apr 16, 2010 3:54 am |
|
|
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('')
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
|
|
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Fri Apr 16, 2010 7:22 am |
|
|
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
|
|
Posted: Fri Apr 16, 2010 7:33 am |
|
|
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
|
|
Posted: Fri Apr 16, 2010 9:01 am |
|
|
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
|
|
Posted: Fri Apr 16, 2010 10:12 am |
|
|
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 |
|
|
|