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.

[FAQ] TDA4VM: How do I port the enet loopback example for CPSW2G to another core like MCU2_0?

Part Number: TDA4VM

Tool/software:

How do I port the enet loopback example for CPSW2G to another core like MCU2_0?

  • By default, loopback example for CPSW2G supported only on MCU2_1 and MCU1_0 cores from TI SDK.

    To port the loopback example to another core, follow the changes mentioned below.

    1. Enable the test configuration for the intended core.

    The configuration like enabling Enet Type to CPSW2G and others.

    Example: Enable for MCU2_0 core.

    #if (0U == APP_ENABLE_STATIC_CFG)
    
    static EnetLpbk_EnetTypeMenu gEnetLpbk_EnetTypeMenu[] =
    
    {
    
    #if defined(BUILD_MCU1_0) || defined(BUILD_MCU2_1) || defined(BUILD_MPU1_0)
    
        { "CPSW 2G", ENET_CPSW_2G, 0U },
    
    #elif defined(BUILD_MCU2_0)
    
    -   { "CPSW 9G", ENET_CPSW_9G, 0U },
    
    +   { "CPSW 2G", ENET_CPSW_2G, 0U },
    
    #endif
    
    };

    2. Along with the configuration, take care of resources for the intended core.

    Update enet_apprmcfg.c file from "net/examples/utils/V1" and build utilis library.

    Example: Enable for MCU2_0 core.


    After making above change, building the utility followed by loopback example for intended core

    # make enet_example_utils_full_freertos CORE=mcu2_0 BOARD=j721e_evm

    # make enet_loopback_test_freertos CORE=mcu2_0 BOARD=j721e_evm

    Note:
    For more details about build commands and other features, please refer to the PDK User Guide from SDK Documentation.