Hot!PIC32MZ PING

Page: 12 > Showing page 1 of 2
Author
marcc70
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2018/12/03 06:23:00
  • Location: 0
  • Status: offline
2018/12/05 08:30:42 (permalink)
0

PIC32MZ PING

Hello guys!
 
I have made a custom board with a DP83848 and pic32MZ2048EFH64, my link led of the RJ45 is glowing and I can see blinking te activity led.
 
I am trying with the harmony configurator to setup the ip adress etc.
 
when I program the device, it programs OK.
But I still can't ping the device, pinging to 192.168.100.115 (the standard in harmony.)
 
also I can't find it with the tcpip discovery tool, but when I push the button 'Discover devices', I see the activity led on the rj45 blinking. So that is a good thing, it does receive the message.
 
So what I can concluded is that I am doing something wrong in the harmony configurator, but I don't know what. 
 
Maybe something with setting up the clock settings? I don't fully understand that.
I am using 8MHz crystal on OSC1 and OSC2, SOSCI/SOSCO got a 37.768KHz crystal.
the dp83848 got a 50MHZ oscillator
 
 
Hopefully can help me out with pinging with succes.
 
Cheers!
 
Marc

Attached Image(s)

#1

30 Replies Related Threads

    Bio_PIC
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2017/02/01 09:37:55
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/05 08:35:32 (permalink)
    0
    Pin25 on the DP83848 is offering an OSC at 25 MHz, this would allow the PIC and the DP to stay in sync.
     
    Why not use that as the OSC for your pic?
    #2
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/05 08:37:40 (permalink)
    0
    I don't fully understand what you mean, do you mean that I should wire the 25MHz out to OSC1/OSC2?
     
    And I still don't know if that is the problem to fix the ping situation.
    And to discover it in the discovery tcpip tool.
    post edited by marcc70 - 2018/12/05 08:46:48
    #3
    Bio_PIC
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2017/02/01 09:37:55
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/05 08:51:53 (permalink)
    0
    Yes.
     
    Wire the 25 MHz out from the DP to OSC1 on your PIC. in your firmware you can then set the oscillation configuration bits to increase the Fcy of your PIC.
     
    Although, the clock the PIC gets will depend on the DP's setting, if it is in MII mode or RMII mode. By default it is MII which is 25MHz, in RMII the output is 50MHz.. 
     
    I am not confident this will fix your problem, it will help eliminate your clock suspicions though.  
    #4
    XorLor
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2009/10/23 00:17:05
    • Location: 0
    • Status: online
    Re: PIC32MZ PING 2018/12/05 10:55:24 (permalink)
    0
    Are you using one of the example Harmony projects? I got my custom board working with the PIC32_ETH_WEB_SERVER project.
     
    Here are some of my notes:
     
    Set configuration to pic32mz_ef_sk
    Select correct device (I'm using PIC32MZ1024EFE064)
    In Harmony Configurator:
    System Services - Port Register_config - Disable ports A, H, J, K
    Pins config - make sure pins 65 to 323 are cleared.
    I also set the following pins to -1, None: 59, 60, 33, 25, 20, 19, 9, 8, 7
    Drivers - Internal Ethernet MAC Driver - External PHY: select NATIONAL_DP83848
    In the clock diagram - set FSOSCEN to ON (for 32.768kHz crystal)
     
    Also, this example works fine without any crystal attached to OSC1 and OSC2.
    #5
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/05 11:37:30 (permalink)
    0
    Looks like a nice solution.
     
    When I build the generated code I got this error:
    CLEAN SUCCESSFUL (total time: 53ms)
    make: Makefile: No such file or directory
    make: *** No rule to make target 'Makefile'. Stop.
    BUILD FAILED (exit value 2, total time: 57ms)
     
    When I look in the map: 'pic32_eth_web_server.X'
     
    I see that I am missing this makefile, in the other maps there is such a 'makefile'.
     
    Do you maybe have a copy of this file for me?
     
    Maybe I deleted it somehow.
     
     
    #6
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/05 11:47:59 (permalink)
    0
    I found a makefile copy on GitHub, but now when I build then there are a lot of errors about the BSP situation...
     
    #7
    XorLor
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2009/10/23 00:17:05
    • Location: 0
    • Status: online
    Re: PIC32MZ PING 2018/12/05 13:46:01 (permalink)
    0
    You can comment out the BSP stuff in the application, or if you just want to get it compiling quickly, assign some unused GPIO pins in the Harmony Configurator pin settings with the following names and function:
     
    BSP_LED_1, LED_AH
    BSP_LED_2, LED_AH
    BSP_LED_3, LED_AH
     
    BSP_SWITCH_1, SWITCH
    BSP_SWITCH_2, SWITCH
    BSP_SWITCH_3, SWITCH
    #8
    RISC
    Super Member
    • Total Posts : 5359
    • Reward points : 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/05 15:49:33 (permalink)
    0
    Hi,
    TCP/IP discoverer from 2017 : https://www.microchip.com/forums/FindPost/999993
    Regards
     
    post edited by RISC - 2018/12/05 15:57:03
    #9
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 00:31:44 (permalink)
    0
    I don't know what I am doing wrong I still can't find or even ping the device, I set by the way in the BSP Configuration->USE BSP I select 'Custom'
     
    Because of loads of the errors.
     
    Really getting frustrated, and don't know what to do else.
     
    At external PHY configuration I choose ofcourse 'national dp83838', I see that my assembled board got a dp83848 but a chinese kind of version. I don't think that can be problem right? Or does microchip only recognize original?
     
    Maybe I should have used another phy transceiver, but I can't anymore because I already assembled this boards.
    post edited by marcc70 - 2018/12/06 07:18:31
    #10
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:05:33 (permalink)
    0
    Can please someone help me out? :)
    #11
    Jim Nickerson
    User 452
    • Total Posts : 5578
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: PIC32MZ PING 2018/12/06 08:09:34 (permalink)
    0
    Did you try it on a Microchip Development board ?
    With your experience I would think you have other avenues of help

     

    Attached Image(s)

    #12
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:14:13 (permalink)
    0
    No I did not, I don't know how that information has come to my profile.
     
    But it supposed to be working, but I think I am making a mistake somewhere in harmony.
    #13
    Bio_PIC
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2017/02/01 09:37:55
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:17:07 (permalink)
    0
    Can you post your entire circuit?
     
    marcc70
    ... it supposed to be working, but I think I am making a mistake somewhere in harmony.


    Why do you believe it should be working?
     
    Are you still getting compile errors, if so, what errors are you getting?
     
     
    #14
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:19:39 (permalink)
    0
    I am not getting compile errors, but I just can't ping the ipadress with succes or find in with discovery tool. 
    Well I believe in it, because my schematic is based on the ethernet starter kit I. And I see on my rj45 activity when I send a discover message and the link is OK.
     
    So I think that I am doing something wrong in harmony but I can't find out what.
    #15
    Jim Nickerson
    User 452
    • Total Posts : 5578
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: PIC32MZ PING 2018/12/06 08:26:47 (permalink)
    0
    Is the ethernet cable plugged in directly from your board RJ45 to the PC RJ45 ?
    The reason for the development board is so you can test a known working device to isolate the problem to hardware or software.
    As no one else has your hardware no one else can test it.
    Maybe you could debug/breakpoint your board to see if it gets the Discover Packet.
    #16
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:28:18 (permalink)
    0
    Yes it is directly connected with a straight cable, not a crossover.
    #17
    Bio_PIC
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2017/02/01 09:37:55
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:32:55 (permalink)
    0
    Do you have the "Use TCP/IP Commands" selected in the Harmony Configuration?
    #18
    Bio_PIC
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2017/02/01 09:37:55
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:33:58 (permalink)
    0
    marcc70
    Yes it is directly connected with a straight cable, not a crossover.



    You should use a crossover cable. 
    #19
    marcc70
    New Member
    • Total Posts : 25
    • Reward points : 0
    • Joined: 2018/12/03 06:23:00
    • Location: 0
    • Status: offline
    Re: PIC32MZ PING 2018/12/06 08:36:37 (permalink)
    0
    If I select "use tcpip commands" then I get a lot of new errors. 
     
    I have tried crossover.
     
     
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2018 APG vNext Commercial Version 4.5