PICDEM.NET 2 internal ethernet doesn't seem to work

Author
jnaulet
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2011/03/02 02:27:40
  • Location: 0
  • Status: offline
2011/03/02 02:39:51 (permalink)
0

PICDEM.NET 2 internal ethernet doesn't seem to work

Hello,

i recently purchased a picdem.net 2 evaluation board for my project.
I compiled & programmed "TCPIP Demo App - c18 - PICDEMNET2_INTERNAL_ETHERNET.mcp" from TCP/IP Stack v5.31 & found several issues.

 - The computer on the other side of the ethernet cable continuously tells me "Network cable is disconnected" & then re-connects shortly
 - Using wireshark, the board sends erroneous ARP packets (Frame check sequence : 0x00000000 [incorrect, should be 0x5637b5a1])

When using the onboard ENC28J60 (project "TCPIP Demo App - c18 - PICDEMNET2_ONBOARD_ENC28J60.mcp") & the J2 connector, everything works fine.

#1

5 Replies Related Threads

    RoboTek1024
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2011/02/19 15:49:14
    • Location: 0
    • Status: offline
    Re:PICDEM.NET 2 internal ethernet doesn't seem to work 2011/03/02 15:00:06 (permalink)
    0
    Well, I guess the first thing is to check the connection is correct.
    Are you running through a hub/switch, or straight between the board and computer? 
    Are there any lights on on the port that the cable is plugged into?
    If you are running straight through, are you using a crossover cable?

    Just some thoughts to get started.

    Ken
    #2
    jnaulet
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2011/03/02 02:27:40
    • Location: 0
    • Status: offline
    Re:PICDEM.NET 2 internal ethernet doesn't seem to work 2011/03/03 01:38:45 (permalink)
    0
    Thanks for your answer.

    I tried several configurations :

     - Using a crossover cable directly connected to a computer. This is the case where the computer tells me "Cable disconnected", then connects, then tells me "cable disconnected", etc

     - Using a 10/100Mbps switch with a straight cable.

    In both cases, onboard LCD blinks a little, changing address from 169.254.1.1 to 169.254.61.31, then back to 169.254.1.1, etc.

    #3
    jnaulet
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2011/03/02 02:27:40
    • Location: 0
    • Status: offline
    Re:PICDEM.NET 2 internal ethernet doesn't seem to work 2011/03/04 06:52:22 (permalink)
    0
    Seems like i found the issue.

    I programmed the "TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET 18F97J60.hex" binary instead of the code i compiled from source (which appears to be the same as "TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET.hex", which gets the same problem).

    Does anyone know what's the difference bewteen "TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET.hex" & "TCPIP Demo App - C18 - PICDEMNET2_INTERNAL_ETHERNET 18F97J60.hex" ? Thanks

    #4
    RoboTek1024
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2011/02/19 15:49:14
    • Location: 0
    • Status: offline
    Re:PICDEM.NET 2 internal ethernet doesn't seem to work 2011/03/06 18:40:07 (permalink)
    0
    It sounds like you have something happening (good), but can't see each other.  Have you set your computer to a static IP address in the same range and subnet as the microchip board.  Most of the time, the computer's are set up to have a dynamic address set by the router, and if it isn't set will do similar to what is seen here.

    Keep using the crossover cable, it sounds like your real close here.

    Ken
    #5
    jnaulet
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2011/03/02 02:27:40
    • Location: 0
    • Status: offline
    Re:PICDEM.NET 2 internal ethernet doesn't seem to work 2011/03/09 06:29:29 (permalink)
    0
    Problem solved.

    Replaced the C18 compiler v3.37.01 by the educational C18 compiler (v3.36).
    Seems like there's a bug on the PIC18F97J60 with the brand new compiler.
    #6
    Jump to:
    © 2017 APG vNext Commercial Version 4.5