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.

TDA4VM: How to enable vlan function in TDA4 PSDK720 ?

Part Number: TDA4VM

Hi all,

I have refered to CpswApp_addAleVlanEntry function in pdk\packages\ti\drv\cpsw\unit_test\test_cases\cpsw_test_vlan.c to enable vlan funcation but how i can check out if the vlan entry is useful?

Also, I wonder if I can apply the unittest demo in tda board,as i have tried both sbl way and load the firmware by ccson mcu2_0. ,  but it failed  as the result.

I built the demo in psdk730, and i noticed that in app_ethfw.c , there are codes about the intervlan and vlan settings, how i can check if the program is workable?

   EthHwInterVlan_setOpenPrms(&ethFwCfg.cpswCfg);

    for (i = 0U; i < ethFwCfg.numPorts; i++)
    {
        EthHwInterVlan_setVlanConfig(&ethFwCfg.ports[i].vlanCfg,
                                     ethFwCfg.ports[i].portNum);
    }
  • especially, how to check if the vlan config is workable as in app_ethfw.c it was configured. 

  • Hi all,

    For implementing ene_ The unit test demo works normally. We tried two ways, which tried both on the EVM board and the customed board, but both failed to run
    1. directly load energy_ Cpsw generated by Unitest compilation_ unit_ testapp_ mcu2_ 0_ debug.xer5f ,
    The program is not running normally, and the main domain and MCU domain serial port are not printed out; The program was not running normally by adding breakpoints to the main function entrance address by CCS

    2.We compile the ene_unittest source code under the vision_apps, and the main function of the unit tests is .c basic_demos .c vision_apps app_tirtos, tirtos_linux, mcu2_0, main

    Running j7-main-r5f0_ 0 firmware, through print debugging we found the following error

    So I want to consult you
    1. How to run Ethernet unit test program in version 7.2?
    2. How to test the function of VLAN and intervaln?

  • Hi,

    Sorry for the delay, I will take a look and get back

    Regards

    Vineet

  • Can you help me with this problem? I've been beating my brains out with it, but I just can'tsolve it.

  • Hi,

    I will get back to you by end of the week.

    Regards

    Vineet

  • Hi Vineet

    thank you, we can implement the intervaln and vlan function now,

    the question is how to use the unittest demo in pdk\packages\ti\drv\cpsw\unit_test\test_cases\, we also tried the sbl way and ccs loading by js script; but neither works.

  • Hi Jeffrey,

    Sorry for the delay.I perhaps misunderstood your question earlier. You need to take a look at pdk/packages/ti/drv/enet not pdk/packages/ti/drv/cpsw

    Please take a look at the function EnetTest_addAleVlanEntry() in pdk/packages/ti/drv/enet/unit_test/test_cases/cpsw_test_vlan.c.

    If you have an EVM then you can execute it by using the steps below:

    1. Go to pdk/packages and run "source pdksetenv.sh"

    2. Go to pdk/packages/ti/drv/enet/unit_test/test_framework and run "make SOC=mcu2_0"

    3. This will generate a binary in pdk/packages/ti/binary/enet_unit_testapp

    4. Run this on MCU 2_0 (after running sciclient server test application on MCU 1_0)

    5. Open 3rd instance of UART on Main Domain and select Manual Test.

    6. Make sure you have link on one of the RGMII ports (on GESI card)

    7. Select Option 6 (VLAN Test)

    Regards

    Vineet