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.

关于C6748网络与DDR的一些问题



请教各位大咖,我按照官网的原理图,自己画了个6748的板子,但是网络的PHY换成了dp83848。请问,原工程的源码在什么地方能下到?原来工程LWip协议栈的初始化,应该在什么地方改动PHY的地址?那个文件?哪个函数?还有,我没有用DDR2,这个时候,gle文件是否要把DDR2部分删除掉?谢谢,请指教。

  • 请参考下面的starterware user guide
    the MAC Address and IP address can be configured in the enet_lwip/include/lwipopts.h file.
    processors.wiki.ti.com/.../StarterWare_01.20.01.01_User_Guide

    没有DDR2的话,要把GEL文件里的DDR2部分删除掉。
  • 你好,我说的是改变网卡硬件PHY的地址,而不是IP地址,请问在什么地方改动?谢谢。
  • PHY地址的定义在lan8710a.h文件里。
  • 这个文件里面我也找了,但是没有找到那个定义是和外面的引脚多定义的地址是一一对应的,请帮忙看下这个.h的内容,那个是关于地址的定义?非常感谢。
    #ifndef _LAN8710_H_
    #define _LAN8710_H_

    #ifdef __cplusplus
    extern "C" {
    #endif
    /* PHY register offset definitions */
    #define PHY_BCR (0u)
    #define PHY_BSR (1u)
    #define PHY_ID1 (2u)
    #define PHY_ID2 (3u)
    #define PHY_AUTONEG_ADV (4u)
    #define PHY_LINK_PARTNER_ABLTY (5u)

    /* PHY status definitions */
    #define PHY_ID_SHIFT (16u)
    #define PHY_SOFTRESET (0x8000)
    #define PHY_AUTONEG_ENABLE (0x1000u)
    #define PHY_AUTONEG_RESTART (0x0200u)
    #define PHY_AUTONEG_COMPLETE (0x0020u)
    #define PHY_AUTONEG_INCOMPLETE (0x0000u)
    #define PHY_AUTONEG_STATUS (0x0020u)
    #define PHY_AUTONEG_ABLE (0x0008u)
    #define PHY_LPBK_ENABLE (0x4000u)
    #define PHY_LINK_STATUS (0x0004u)



    /* PHY ID. The LSB nibble will vary between different phy revisions */
    #define LAN8710A_PHY_ID (0x0007C0F0u)
    #define LAN8710A_PHY_ID_REV_MASK (0x0000000Fu)

    /* Pause operations */
    #define LAN8710A_PAUSE_NIL (0x0000u)
    #define LAN8710A_PAUSE_SYM (0x0400u)
    #define LAN8710A_PAUSE_ASYM (0x0800u)
    #define LAN8710A_PAUSE_BOTH_SYM_ASYM (0x0C00u)

    /* 100 Base TX Full Duplex capablity */
    #define LAN8710A_100BTX_HD (0x0000u)
    #define LAN8710A_100BTX_FD (0x0100u)

    /* 100 Base TX capability */
    #define LAN8710A_NO_100BTX (0x0000u)
    #define LAN8710A_100BTX (0x0080u)

    /* 10 BaseT duplex capabilities */
    #define LAN8710A_10BT_HD (0x0000u)
    #define LAN8710A_10BT_FD (0x0040u)

    /* 10 BaseT ability*/
    #define LAN8710A_NO_10BT (0x0000u)
    #define LAN8710A_10BT (0x0020u)