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] DRA829V: Do we have demo to support UDP communication with NDK/SYSBIOS?

Part Number: DRA829V
Other Parts Discussed in Thread: SYSBIOS, DRA829, DRA821

Dear Expert.

Customer wants to know if TI SDK provide UDP program demo which running on NDK/SYSBIOS? 

I try to search it in SDK, no result. Would you please help double confirm it? and do you have suggestion to help customer to get one UDP program demo? 

thank you so much!

yong

  • Hi Yong,

    On Jacinto devices here is how to run TCP/UDP examples:

    DRA829/DRA821:

    TCP/UDP examples have been provided inside pdk/packages/ti/drv/enet/examples/enet_nimu_example folder. The application is called enet_nimu_example and it can be built from pdk/packages/ti/build folder.

    There are separate examples for CPSW 5G/9G (for DRA821 and DRA829 respectively) and CPSW 2G. The name of the example is the same for both IP's and distinction is based on the CORE type.

    For CPSW 5G/CPSW9G:

     Build using the command "make enet_nimu_example CORE=mcu2_0"which will create a binary in the folder pdk/packages/ti/binary/enet_nimu_example/bin The UART output for this binary on the same port on which Ethernet Firmware runs i.e. 3rd Main UART instance. Once the binary is run, there is an interactive menu which prompts for selection of IP and port number.

    IP is assigned through DHCP but static configuration can also be used by editing setting the variable enableStaticIP in file nimu_example.cfg in the same folder. The example has TCP and UDP echo servers built in. See the function EnetNimuApp_netOpenHook(), the corresponding functions like dtask_tcp_echo and dtask_udp_echo are defined in ndk/packages/ti/ndk/tools/servers/newservers.c , users can refer to these examples and define their own TCP/UDP implementations.

    For CPSW 2G:

    For CPSW 2G, build using the command "make enet_nimu_example CORE=mcu2_1" which will create a binary in the same folder. The UART output for this binary comes on the first main UART instance. This example too launches an interactive UART prompt.

    Rest of the details are similar to the App above

    Note: Before building the application please run the command source pdksetenv.sh in the folder pdk/packages

    Regards

    Vineet