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.

CCS/TMS320F28388D: tcpEchoF2838X sample project

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE, SYSBIOS

Tool/software: Code Composer Studio

I tried to build the Ethernet project tcpEchoF2838X. I imported the project from CCS v9.1.0 from the C2000Ware 2.01.00.00. I also install the NDK (ndk_f2838x_3_61_01_01) and NS (ns_2_60_01_06). My XDC tool version is 3.60.02.34 (xdctools_3_60_02_34_core) and the sysbios is bios_6_76_04_02. In the project include option, I added the path of NDK and NS. When I build the project, I got bunch of errors of "cannot find file". 

I am appreciated if you could give some advice on this.

One more thing that I am not able to find the download site of ndk_f2838x_3_61_01_01 and ns_2_60_01_06. I got these SDK from another post.The latest NDK on the download page http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/index.html is 2.25.01.11. What is the SDK download page?

Thanks,

  • Hi,

    Please follow the steps as documented in 

    [c200ware]\libraries\communications\Ethernet\ti\ndk\examples\tcpEchoF2838X\Readme.md

    The required Software tools NDK,NS, links are provided in the C2000Ware Quick start guide available here:

    http://www.ti.com/lit/pdf/sprui46 section 6 contains the link to those tools. 

    Regards,

    Sudharsanan

  • Thanks for the reply.

    I went through the document. I upgraded my CCS from v9.1 to v9.3 and changed the xdctools path in the Project Include Options to "C:\ti\ccs930\xdctools_3_60_02_34_core". I added those path variable following the instruction in Readme.md.

    But I still got those same errors when trying to build it.

  • Hi, 

    The three environment variables NDK_INSTALL_DIR,NS_INSTALL_DIR,C2000WARE_INSTALL_DIR have to be set in windows, not in CCS path variables. Can you set that and let me know if it helps.

    Regards,

    Sudharsanan

  • I set those environment variables in window. But still getting the same errors. 

  • Hi,

    Can you please send your build log in CCS. Attached is mine which builds well. 

    Regards,

    Sudharsanan

    **** Clean-only build of configuration Debug for project tcpEchoF2838X ****
    
    "C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O 
     
    DEL /F  "tcpEchoF2838X.hex"  "configPkg\linker.cmd" "configPkg\compiler.opt"  "tcpEchoF2838X.out" 
    DEL /F "main_tirtos.obj" "ndk_tirtos.obj" "tcpecho.obj" "tcpechohooks.obj" 
    DEL /F "main_tirtos.d" "ndk_tirtos.d" "tcpecho.d" "tcpechohooks.d" 
    RMDIR /S/Q  "configPkg\" 
    Could Not Find C:\ti\c2000\C2000Ware_2_01_00_00\libraries\communications\Ethernet\ti\ndk\examples\tcpEchoF2838X\Debug\tcpEchoF2838X.hex
    Finished clean
     
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project tcpEchoF2838X ****
    
    "C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../tcpecho.cfg"
    Invoking: XDCtools
    "C:/ti/ccs910/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/f2838xSDK/bios_6_76_01_12/packages;C:/ti/f2838xSDK;C:/ti/f2838xSDK/bios_6_76_01_12;C:/ti/xdctools_3_55_02_22_core;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.cortexM:TMS320F2838X -r debug -c "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS" -v "../tcpecho.cfg"
    #
    # making package.mak (because of package.bld) ...
    C:/ti/ccs910/xdctools_3_55_02_22_core/xs  -Dxdc.path="C:/ti/f2838xSDK/bios_6_76_01_12/packages;C:/ti/f2838xSDK;C:/ti/f2838xSDK/bios_6_76_01_12;C:/ti/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/packages;.." -Dxdc.root=C:/ti/ccs910/xdctools_3_55_02_22_core -Dxdc.hostOS=Windows -Dconfig.importPath=".;C:/ti/f2838xSDK/bios_6_76_01_12/packages;C:/ti/f2838xSDK;C:/ti/f2838xSDK/bios_6_76_01_12;C:/ti/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/packages;..;C:/ti/ccs910/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/etc" -Dxdc.bld.targets="" -DTOOLS=   -f C:/ti/ccs910/xdctools_3_55_02_22_core/packages/xdc/bld/bld.js ./config.bld package.bld package.mak 
    #
    # generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    C:/ti/ccs910/xdctools_3_55_02_22_core/xs -Dxdc.path="C:/ti/f2838xSDK/bios_6_76_01_12/packages;C:/ti/f2838xSDK;C:/ti/f2838xSDK/bios_6_76_01_12;C:/ti/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/packages;.." -Dxdc.root=C:/ti/ccs910/xdctools_3_55_02_22_core -Dxdc.hostOS=Windows -Dconfig.importPath=".;C:/ti/f2838xSDK/bios_6_76_01_12/packages;C:/ti/f2838xSDK;C:/ti/f2838xSDK/bios_6_76_01_12;C:/ti/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/packages;..;C:/ti/ccs910/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/etc" -Dxdc.bld.targets="" -DTOOLS=  -f xdc/services/intern/cmd/build.xs  -m package/package.xdc.dep -i package/package.xdc.inc package.xdc
    #
    # configuring tcpecho.xem4 from package/cfg/tcpecho_pem4.cfg ...
    C:/ti/ccs910/xdctools_3_55_02_22_core/xs -Dxdc.path="C:/ti/f2838xSDK/bios_6_76_01_12/packages;C:/ti/f2838xSDK;C:/ti/f2838xSDK/bios_6_76_01_12;C:/ti/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/packages;.." -Dxdc.root=C:/ti/ccs910/xdctools_3_55_02_22_core -Dxdc.hostOS=Windows -Dconfig.importPath=".;C:/ti/f2838xSDK/bios_6_76_01_12/packages;C:/ti/f2838xSDK;C:/ti/f2838xSDK/bios_6_76_01_12;C:/ti/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/packages;..;C:/ti/ccs910/xdctools_3_55_02_22_core;C:/ti/ccs910/xdctools_3_55_02_22_core/etc" -Dxdc.bld.targets="" -DTOOLS=   xdc.cfg tcpecho.xem4 package/cfg/tcpecho_pem4.cfg package/cfg/tcpecho_pem4
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X/src/sysbios/sysbios.aem4 ...
    gmake[1]: Entering directory 'C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X/src/sysbios'
    gmake[1]: Nothing to be done for 'all'.
    gmake[1]: Leaving directory 'C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X/src/sysbios'
    Build of libraries done.
    C:/ti/ccs910/xdctools_3_55_02_22_core/bin/sed 's"^\"\(package/cfg/tcpecho_pem4cfg.cmd\)\""\"C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X/Debug/configPkg/\1\""' package/cfg/tcpecho_pem4.xdl > linker.cmd
    C:/ti/ccs910/xdctools_3_55_02_22_core/bin/setdate -r:max package/cfg/tcpecho_pem4.h compiler.opt compiler.opt.defs
    C:/ti/ccs910/xdctools_3_55_02_22_core/bin/rm -f package/cfg/tcpecho_pem4.oem4
    #
    # clem4 package/cfg/tcpecho_pem4.c ...
    C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl -c  -qq -pdsw225 -ms --fp_mode=strict --endian=little -mv7M4 --float_support=vfplib --abi=eabi -eo.oem4 -ea.sem4  -D_DEBUG_=1  -Dxdc_cfg__xheader__='"configPkg/package/cfg/tcpecho_pem4.h"'  -Dxdc_target_name__=M4 -Dxdc_target_types__=ti/targets/arm/elf/std.h -Dxdc_bld__profile_debug -Dxdc_bld__vers_1_0_18_12_2 --symdebug:dwarf  -I. -IC:/ti/f2838xSDK/bios_6_76_01_12/packages -IC:/ti/f2838xSDK -IC:/ti/f2838xSDK/bios_6_76_01_12 -IC:/ti/xdctools_3_55_02_22_core -IC:/ti/ccs910/xdctools_3_55_02_22_core/packages -I.. -IC:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include  -fs=./package/cfg -fr=./package/cfg -fc package/cfg/tcpecho_pem4.c
    C:/ti/ccs910/xdctools_3_55_02_22_core/bin/mkdep -a package/cfg/tcpecho_pem4.oem4.dep -p package/cfg -s oem4 package/cfg/tcpecho_pem4.c -C   -qq -pdsw225 -ms --fp_mode=strict --endian=little -mv7M4 --float_support=vfplib --abi=eabi -eo.oem4 -ea.sem4  -D_DEBUG_=1  -Dxdc_cfg__xheader__='"configPkg/package/cfg/tcpecho_pem4.h"'  -Dxdc_target_name__=M4 -Dxdc_target_types__=ti/targets/arm/elf/std.h -Dxdc_bld__profile_debug -Dxdc_bld__vers_1_0_18_12_2 --symdebug:dwarf  -I. -IC:/ti/f2838xSDK/bios_6_76_01_12/packages -IC:/ti/f2838xSDK -IC:/ti/f2838xSDK/bios_6_76_01_12 -IC:/ti/xdctools_3_55_02_22_core -IC:/ti/ccs910/xdctools_3_55_02_22_core/packages -I.. -IC:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include  -fs=./package/cfg -fr=./package/cfg
    Finished building: "../tcpecho.cfg"
     
    Building file: "../main_tirtos.c"
    Invoking: ARM Compiler
    "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=none -me --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source/ti/net/bsd" --include_path="C:/ti/f2838xSDK/bios_6_76_01_12/packages/ti/posix/ccs" --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source" --include_path="C:/ti/f2838xSDK/ndk_f2838x_3_61_01_01/source" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="main_tirtos.d_raw" --cmd_file="configPkg/compiler.opt" "../main_tirtos.c"
    Finished building: "../main_tirtos.c"
     
    Building file: "../tcpecho.c"
    Invoking: ARM Compiler
    "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=none -me --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source/ti/net/bsd" --include_path="C:/ti/f2838xSDK/bios_6_76_01_12/packages/ti/posix/ccs" --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source" --include_path="C:/ti/f2838xSDK/ndk_f2838x_3_61_01_01/source" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="tcpecho.d_raw" --cmd_file="configPkg/compiler.opt" "../tcpecho.c"
    Finished building: "../tcpecho.c"
     
    Building file: "../tcpechohooks.c"
    Invoking: ARM Compiler
    "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=none -me --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source/ti/net/bsd" --include_path="C:/ti/f2838xSDK/bios_6_76_01_12/packages/ti/posix/ccs" --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source" --include_path="C:/ti/f2838xSDK/ndk_f2838x_3_61_01_01/source" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="tcpechohooks.d_raw" --cmd_file="configPkg/compiler.opt" "../tcpechohooks.c"
    Finished building: "../tcpechohooks.c"
     
    Building file: "../ndk_tirtos.c"
    Invoking: ARM Compiler
    "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=none -me --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source/ti/net/bsd" --include_path="C:/ti/f2838xSDK/bios_6_76_01_12/packages/ti/posix/ccs" --include_path="C:/ti/f2838xSDK/ns_2_60_01_06/source" --include_path="C:/ti/f2838xSDK/ndk_f2838x_3_61_01_01/source" --include_path="C:/ti/c2000/C2000Ware_2_01_00_00/libraries/communications/Ethernet/ti/ndk/examples/tcpEchoF2838X" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="ndk_tirtos.d_raw" --cmd_file="configPkg/compiler.opt" "../ndk_tirtos.c"
    Finished building: "../ndk_tirtos.c"
     
    Building target: "tcpEchoF2838X.out"
    Invoking: ARM Linker
    "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=none -me --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual -z -m"tcpEchoF2838X.map" --heap_size=0 --stack_size=256 -i"C:/ti/f2838xSDK/ns_2_60_01_06/source/ti/net/lib/ccs/m4" -i"C:/ti/f2838xSDK/ndk_f2838x_3_61_01_01/source/ti/ndk/drivers/f2838x/lib" -i"C:/ti/f2838xSDK/ndk_f2838x_3_61_01_01/source/ti/ndk/slnetif/lib" -i"C:/ti/f2838xSDK/ndk_f2838x_3_61_01_01/source" -i"C:/ti/c2000/C2000Ware_2_00_00_02/driverlib/f2838x/driverlib_cm/ccs/Release" -i"C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/lib" -i"C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="tcpEchoF2838X_linkInfo.xml" --rom_model -o "tcpEchoF2838X.out" "./main_tirtos.obj" "./ndk_tirtos.obj" "./tcpecho.obj" "./tcpechohooks.obj" "../TMS320F2838X.cmd" -l"configPkg/linker.cmd" -lslnetsock_release.a -ldriverlib_cm.lib -l"ti/ndk/slnetif/lib/slnetifndk.aem4" -l"ti/ndk/netctrl/lib/netctrl_min_ipv4.aem4" -l"ti/ndk/nettools/lib/nettool_ipv4.aem4" -l"ti/ndk/hal/ser_stub/lib/hal_ser_stub.aem4" -l"ti/ndk/hal/userled_stub/lib/hal_userled_stub.aem4" -l"ti/ndk/os/lib/os.aem4" -l"ti/ndk/stack/lib/stk.aem4" -lemac_f2838x.aem4 -lslnetifndk.aem4 -l"ti/ndk/hal/timer_bios/lib/hal_timer.aem4" -llibc.a 
    <Linking>
    warning #10247-D: creating output section ".binit" without a SECTIONS specification
    Finished building target: "tcpEchoF2838X.out"
     
    
    **** Build Finished ****
    

  • Now I got the build successful now. I have to add the those aem4 library in ARM Linker->File Search Path.

    I have another question of debugging this sample project.

    In the README.md, it stated:

    "* When building in Code Composer Studio, the kernel configuration project will

    be imported along with the example. The kernel configuration project is
    referenced by the example, so it will be built first. The "release" kernel
    configuration is the default project used. It has many debug features disabled.
    These feature include assert checking, logging and runtime stack checks."

    I thought it may be the reason why the target not run to the symbol "main". And I am not able to set any break point in the code and keeps getting:

    "Error Enabling this function; There is no AET resource to support this job."

    Can you suggest a way that I could set break point and run the code step by step? 

    How can I use static IP instead of DHCP address?

    Thanks,

  • Hi 

    Glad to know that you are able to build the example at your end. Thanks for also sharing the solution. 

    Since you have created another thread

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/883792

    for the follow up questions, I am closing this thread. 

    Regards,

    Sudharsanan