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.

Built errors in version 202 of project "enet_ptpd_m3"

HI everyone,

I cannot  build the example project  "enet_ptpd_m3"  due to undefined MACRO constants. Concretely, the constants  MAC_O_MDIX and MAC_MDIX_EN are not defined in the header file hw_ethernet.h (v202) unlike the previous version (v201). Should I manually add these constants in the v202 of the header file or use the v201 of such file.

Thanks.

Regards, Juan.

  • I wanted to confirm the problem that Juan is having in v202.  lwiplib.c  uses this define.   I saw in another post that Concerto can not perform MDIX anyway -- which is why it was probably removed.  I just commented line out:

    //HWREG(ETH_BASE + MAC_O_MDIX) ^= MAC_MDIX_EN;

  • I've found the solution to the problem.

    The hw_ethernet.h file released in 2013 contains the definitions:

    #define MAC_O_MDIX           0x00000044     // Ethernet PHY MDIX
    #define MAC_MDIX_EN          0x00000001     // MDI/MDI-X Enable

    but the hw_ethernet.h released in 2014 not, so you to add them to the file. The first at the line 38 and the second at the line 170 (more or less).

    On the other hand you need these paths:

    COMPILER Include Options:
    "${CG_TOOL_ROOT}/include"
    "${INSTALLROOT_F28M35X_V201}/F28M35x_examples_Master/enet_lwip/m3"
    "${INSTALLROOT_F28M35X_V201}/MWare"
    "${INSTALLROOT_F28M35X_V201}/MWare/third_party/lwip-1.3.2/src/include"
    "${INSTALLROOT_F28M35X_V201}/MWare/third_party/lwip-1.3.2/src/include/ipv4"
    "${INSTALLROOT_F28M35X_V201}/MWare/third_party/lwip-1.3.2/apps"
    "${INSTALLROOT_F28M35X_V201}/MWare/third_party/lwip-1.3.2/ports/C2000/include"

    LINKER File Search path:
    "${CG_TOOL_ROOT}/lib"
    "${CG_TOOL_ROOT}/include"
    "${CG_TOOL_ROOT}/.."

    And finally:

    LINKER Include Library:
    "rtsv7M3_T_le_eabi.lib"

    Advanced Settings:
    Linker Command file: lwip.cmd
    Output format: eabi (ELF)
    Connection: Texas Instruments XDS100v2 USB Emulator.

    I hope it is useful.

    Dionisio