PICcoder.co.uk Forum  


::post new topic::
<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>
Re:Fixed Ip address
Date: 2006/05/25 14:33 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
Yes, use must remove the defintion that tells the stack to use dhcp.

"Project"/"Build Options"/"Project"/"MPLAB C18"/"Macro Defintions"

And remove the one that refers to DHCP.

If that still doesn't work, copy the build errors into the forum post.

Ian
reply | quote

Re:Fixed Ip address
Date: 2006/05/25 15:09 By: filippo Status: Visitor  
 
ian,
i removed the one that refers to DHCP, in "Project"/"Build Options"/"Project"/"MPLAB C18"/"Macro Defintions" , then i compiled the code and i have this error:
D:MCHPStackENC8722SourceDHCP.c:61:Error [1099] DHCP module is not enabled.

why?what must i do?
reply | quote

Re:Fixed Ip address
Date: 2006/05/25 15:11 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
That error is flag because dhcp isn't enabled.

If you want to disabled DHCP (it tells you this at the top of the DHCP.c file)
remove DHCP.c and DHCP.h from the project.


Ian
reply | quote

Re:Fixed Ip address
Date: 2006/05/25 15:19 By: filippo Status: Visitor  
 
sorry ian,
I removed the one that refers to DHCP, in "Project"/"Build Options"/"Project"/"MPLAB C18"/"Macro Defintions" , then i removed DHCP.c and DHCP.h from the project, and i set ip address in StackTsk.c (line 208) but i have:

D:MCHPStackENC8722SourceMainDemo.c:782:Error [1105] symbol 'stackFlags' has not been defined
D:MCHPStackENC8722SourceMainDemo.c:782:Error [1151] struct or union object designator expected
D:MCHPStackENC8722SourceMainDemo.c:782:Error [1151] struct or union object designator expected
D:MCHPStackENC8722SourceMainDemo.c:782:Error [1101] lvalue required
D:MCHPStackENC8722SourceMainDemo.c:783:Warning [2058] call of function without prototype
Halting build on first failure as requested.
BUILD FAILED: Thu May 25 17:15:22 2006

why?
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/05/30 20:08 By: schwager Status: Visitor  
 
Very useful article !
I made a pcb of your schematic using a 18F4620 instead of the LF type running at 10Mhz * 4. My testboard isn't running stable for any reason. The link LED acts like expected, the blinking-power led is blinking and the transfer led is showing activity. I have already seen the WEBinterface of the stack and was able to toggle the two leds by clicking the buttons but after some time i get no answer any more. The led's are still like they should be.
I have already buffered the SO line of the ENC to get 5V level to the Pic with no effect.
Sometimes i can see character-salad in my browser shortly before the connection cuts off. After every reset the dhcp-precedure seems to work, MHCPDetect is showing me the new IP, but the connection isn't stable for more than some secs.
Do you have any ideas ?
Thank you
Schwager
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/05/30 20:18 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
If you are using a clock 10Mhz * 4, what speed is the SPI bus clocking at? I haven't tried this configuartion so I'm not sure. It might be as slow as 2.5Mhz.

Ian
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/05/30 20:58 By: schwager Status: Visitor  
 
Hi Ian,
thanks for your very quick response.
Yes, this might be, i don't know if the crystal-frequency or the pll-frequency is used to generate spi-clock.
I was just trying to lay a finger on the pic (ca. pin 1 to 8) and gnd. Its running stable. !? I now have a 10K from pin3(pic) to gnd and it is running for 10 minutes already !. Very strange. do I have to use pull down resistors ? Isn't RA1/AN1 an analog input pin ?
It still works ... ! Do you have an explanation. ?
Thanks for your help
schwager
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/05/30 21:35 By: schwager Status: Visitor  
 
I also tried RA0 and RA2 but only RA1 helps to get a stable running stack when pulled down to ground !? Why ?
Thanks
Sascha
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/06/01 13:59 By: a.roe Status: Visitor  
 
Hello!

I have developed an Pic18LF4620 with the enc28j60. It works with UDP. The controller sends an broadcast to my PC. Now i want that the Controller get some information from the PC. I want to use the function UDPGet but this doesn´t work. Can anyone help me?? Can you give me the C-Code for this function. Or is there anyone who do the same.
Thanks
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/08/17 13:54 By: maurice Status: Visitor  
 
Hello,

What is the Diode D4 for ?

Thanks
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/09/28 23:53 By: Irengard Status: Visitor  
 
Microchip has released Stack v3.75, this version works with the circuit?

Thanks
Aleck
reply | quote

<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>
::post new topic::