This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634: DP83822 Phy interface with AM2634

Part Number: AM2634
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Dear Team, 

We are using DP83822 Phy and AM2634 mcu on our custom board, to the this board i follow the step as mansion in 

(+) [FAQ] AM2634: Integration of PHY driver on custom board - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums thread,

now i have to configure the Dp83822_Cfg structure but no parameters defined in this structure, so please guide us how to fill this structure or please share any 

reference code for the same

  • Hi Rohal,

    The FAQ was on SDK versions 10.00 and before, post that some file structures have changed.

    For using a TI PHY with custom board, please follow these steps: 

    1. In example.syscfg, Enet (CPSW) -> board config-> mark as custom board. Since this is a TI PHY, the driver is already available in this path: C:\ti\mcu_plus_sdk_am263x_10_02_00_13\source\board\ethphy\enet\rtos_drivers\src\dp83822.c

    2. Refer the enet_custom_board_config.c file from the other example (C:\ti\mcu_plus_sdk_am263x_10_02_00_13\source\networking\enet\core\examples\enet_layer2_multi_channel\am263x-cc\r5fss0-0_freertos\enet_custom_board_config.c)

    3. I do not have any reference code for the DP83822 PHY, the PHY does not support any extended configuration as of now.

    Are you strapping the PHY config? The basic PHY init and binding will be done, just that additional config is not supported as of now.

    Regards,
    Shaunak

  • Hi Shaunak,

    I configure the dp86822 in existing nonRtos project and able to compile and run, it shows below debug messages

    [Cortex_R5_0] ==========================
      CPSW LWIP HTTP WEB SERVER 
    ==========================
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 
    Mdio_normal_ioctl_handler_ENET_MDIO_IOCTL_C22_READ:230 
    EnetMod_ioctl:1551 
    EnetPhyMdioDflt_readC22:283 
    EnetPhy_readReg:642 
    Mdio_normal_ioctl_handler_ENET_MDIO_IOCTL_C22_READ:230 
    EnetMod_ioctl:1551 
    EnetPhyMdioDflt_readC22:283 
    EnetPhy_readReg:642 
    PHY 1 is alive
    Starting lwIP, local interface IP is dhcp-enabled
    [LWIPIF_LWIP] NETIF INIT SUCCESS
    Host MAC address-0 : 28:b5:e8:d3:ff:39

     

    Host MAC address-0 : 22:02:03:04:05:06

     

    Enet IF UP Event. Local interface IP:0.0.0.0
    [LWIPIF_LWIP] NETIF INIT SUCCESS
    Enet IF UP Event. Local interface IP:0.0.0.0
    Enet IF UP Event. Local interface IP:192.168.1.200
    Enet IF UP Event. Local interface IP:192.168.1.201

    after doing this not able to ping these IPs - can you suggest any operation or how to debug 

    SDK version - mcu_plus_sdk_am263x_09_02_00_56

    Interface - RMII 

    2. i flash same code in eval board also, after that eval board also not able to ping,

    previously its was working for me for all the example codes

    i re-install the SDK and CCS also and try to flash existing example with RGMII interface but it also not ping, debug logs isn't showing any error.

    [Cortex_R5_0] ==========================
    CPSW LWIP TCP CLIENT
    ==========================
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
    EnetPhy_bindDriver:1842
    EnetPhy_bindDriver:1842
    PHY 0 is alive
    PHY 3 is alive
    Starting lwIP, local interface IP is dhcp-enabled
    [LWIPIF_LWIP] NETIF INIT SUCCESS
    Host MAC address-0 : 1c:63:49:13:fd:67

    Host MAC address-0 : 70:ff:76:1f:5d:f8

    Enet IF UP Event. Local interface IP:0.0.0.0
    [LWIPIF_LWIP] Enet has been started successfully
    Enet IF UP Event. Local interface IP:192.168.1.11
    Waiting for network UP ...
    Waiting for network UP ...
    Cpsw_handleLinkUp:1626
    MAC Port 2: link up
    Network Link UP Event
    Network is UP ...

    Please suggest what's wrong with Eval board

      

     

  • Hi Rohal,

    Can you follow the steps to check packet statistics from CPSW and LwIP as mentioned here: 

    LWIP_STATS: https://dev.ti.com/tirex/explore/content/am26x_academy_10_00_00_00/_build_am26x_academy_10_00_00_00/source/debug_guides/ethernet_debug_guide.html#lwip-stats


    CPSW_STATS: https://dev.ti.com/tirex/explore/content/am26x_academy_10_00_00_00/_build_am26x_academy_10_00_00_00/source/debug_guides/ethernet_debug_guide.html#cpsw-stats

    This will help us isolate if the issue is at PHY integration level, or with CPSW or with SW (LwIP/App)

    Regards,
    Shaunak

  • Thanks Shaunak for reply and support,

    I installed mcu_plus_sdk_am263x_10_02_00_13 and Sysconfig 1.23.1

    but it giving icss interface for Ethernet but i need cpsw interface in RMII,

    for that i import the icss given project and try to compile for cpsw interface on RMII, its compiled successfully but 

    while running its showing error 

    [Cortex_R5_0] ==========================
    CPSW LWIP TCP CLIENT
    ==========================
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
    Assertion @ Line: 207 in ../app_cpwsconfighandler.c: : failed !!!

    I took the reference for previous version of SDK for cpsw interface,

    Adding project also please look into this, i think code is stuck just because of cpswCfg->dmaCfg parameters 

    please suggest what's wrong with this icss_emac_lwip_am263x-cc_r5fss0-0_freertos_ti-arm-clang.tar

  • Hi Rohal,

    CPSW based examples in the v10.02 SDK can be found at: mcu_plus_sdk/source/networking/enet/core/examples/lwip.

    If you try to migrate an ICSS example to CPSW, it will have a lot of discrepancies. I recommend importing the CPSW based examples from above path.

    Regards,
    Shaunak

  • No Shaunak, 

    no directory with the name of CPSW

    can you share SDK link (which SDK i have to use for this example code)

  • Hi Rohal,

     mcu_plus_sdk/source/networking/enet/core/examples/lwip.

    Please refer the the path highlighted in my previous reply. 

    The example path can also be found in the SDK documentation: software-dl.ti.com/.../EXAMPLES_ENET_LWIP_CPSW.html

    Regards,
    Shaunak

  • ok, got it,  example path changed from previous version, now its in source folder