• AVR Freaks

Hot!PIC32MZ2048EFM064 and KSZ8081MLX

Author
eddy103
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2020/09/13 11:49:43
  • Location: 0
  • Status: offline
2020/10/17 05:58:56 (permalink)
0

PIC32MZ2048EFM064 and KSZ8081MLX

I have been trying for so long to create a TCP_IP project using PIC32MZ2048EFM064 and KSZ8081MLX but it doesnt reply ping or broadcast by using the Announce.I suspect the problem might be the PHY driver!
can someone please help!
Thanks in advance.
 
#1

4 Replies Related Threads

    boatbodger
    Super Member
    • Total Posts : 134
    • Reward points : 0
    • Joined: 2011/03/27 15:39:07
    • Location: 0
    • Status: offline
    Re: PIC32MZ2048EFM064 and KSZ8081MLX 2020/10/17 07:03:01 (permalink)
    0
    Hi Eddy, you might get a better response if you were to share more detail such as
    • Is this a Harmony project (if so, which version, and did you base your project on an 'example')?
    • Are you using a bought-in board or is it custom?
    • MII or RMII?  How are you providing clock to the PHY control interface and to the refclk?
    #2
    eddy103
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/09/13 11:49:43
    • Location: 0
    • Status: offline
    Re: PIC32MZ2048EFM064 and KSZ8081MLX 2020/10/17 07:55:56 (permalink)
    0
    -Its a Harmony V3 project based on TCP_IP client PIC32MZ  examples ,the only thing i have changed are the pins confugarations which are corresponding with my custom board.
    -Its is supposed to be MII ..
    post edited by eddy103 - 2020/10/17 08:00:08

    Attached Image(s)

    #3
    boatbodger
    Super Member
    • Total Posts : 134
    • Reward points : 0
    • Joined: 2011/03/27 15:39:07
    • Location: 0
    • Status: offline
    Re: PIC32MZ2048EFM064 and KSZ8081MLX 2020/10/18 02:40:07 (permalink)
    0
    My experience is with a different PHY chip - LAN8740 series - and using RMI but things I would check are:
    • Get the datasheet for the KSZ8081, and check whether it requires terminals to be pulled up or down during reset to configure the chip - the LAN8740 does.
    • If it can drive LINK and ACT LEDs, are these coming on when you plug in to the LAN?  With the LAN8740 these will come on regardless of chip configuration as long as REFCLK is present - so if they don't, check that REFCLK is there driving both the PHY chip, and the REFCLK input to the PIC
    • Use a scope to check presence of the RMI clock, and other signals to make sure the PIC is correctly sending the commands to 'wake up' the PHY
    • Add a few lines of code to the PHY driver to read back the PHY registers so you can watch to see if these are being set up.  You will need to dig around in the PHY code from Harmony to see how the PHY is written to and read from
    • I also had some weird problems when the LAN magnetics got soldered on to the PCB the wrong way round.  They are NOT symmetrical!  Double check the side of the mags which is meant to go to the LAN jack does indeed do so, and that you don't have that side connected to the PHY, and the side of the mags which is meant to go to the PHY connected to the jack.  If it is the wrong way round it sometimes kinda works, but not reliably.
    #4
    eddy103
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/09/13 11:49:43
    • Location: 0
    • Status: offline
    Re: PIC32MZ2048EFM064 and KSZ8081MLX 2020/10/19 06:21:11 (permalink)
    0
    I have tried everything but if i ping the device its always unreachable ...wanted to ask if there should be any modification on the phy driver so that atleast it can function?
    I also measured RX_CLK and TX_CLK and i was getting signals.
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5