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.

RTOS/TM4C1294NCPDT: can not build wolfssl example

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi all , 

   I follow this page "http://processors.wiki.ti.com/index.php/Using_wolfSSL_with_TI-RTOS#WolfSSL"  to run github exmaple code (tcpEcho_Server_TivaTM4C1294NCPDT) but fail . 

   The wolfssl libary was build successfully . but it seems not work while example code refer to wolfssl libary . 


**** Build of configuration Debug for project tcpEcho_Server_TivaTM4C1294NCPDT ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all
gmake[1]: Entering directory 'C:/Users/Brenden/workspace_v7/tcpEcho_Server_TivaTM4C1294NCPDT/Debug'
'Building file: ../tcpEcho.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/wolfssl/tirtos/packages;/packages;/packages/ti/ndk/inc;C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_40_02_27/packages;C:/ti/tirtos_tivac_2_16_00_08/products/ndk_2_23_01_01/packages;C:/ti/tirtos_tivac_2_16_00_08/products/uia_2_00_01_34/packages;C:/ti/tirtos_tivac_2_16_00_08/packages;C:/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages;C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages;C:/ti/tirtos_tivac_2_16_00_08/products/ndk_2_25_00_09/packages;C:/ti/tirtos_tivac_2_16_00_08/products/uia_2_00_05_50/packages;C:/ti/tirtos_tivac_2_16_00_08/products/ns_1_11_00_10/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C1294NCPDT -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS" "../tcpEcho.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring tcpEcho.xem4f from package/cfg/tcpEcho_pem4f.cfg ...
Error: Could not find wolfSSL library! Make sure the wolfSSL library is built and package path is updated for the build tool to find the library. More detailed wolfSSL build instructions can be found in the TI-RTOS user guide.
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/Users/Brenden/workspace_v7/tcpEcho_Server_TivaTM4C1294NCPDT/src/sysbios/sysbios.aem4f ...
gmake[1]: Entering directory `C:/Users/Brenden/workspace_v7/tcpEcho_Server_TivaTM4C1294NCPDT/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/Users/Brenden/workspace_v7/tcpEcho_Server_TivaTM4C1294NCPDT/src/sysbios'
Build of libraries done.
clem4f package/cfg/tcpEcho_pem4f.c ...
warning: ti.tirtos.TIRTOS: "C:/ti/tirtos_tivac_2_16_00_08/packages/ti/tirtos/TIRTOS.xs", line 49: ti.tirtos.TIRTOS : ti.tirtos.TIRTOS module is no longer required to configure driver instrumentation. Please use the ti.drivers.Config and ti.mw.Config modules instead.
'Finished building: ../tcpEcho.cfg'
' '
gmake[1]: Leaving directory 'C:/Users/Brenden/workspace_v7/tcpEcho_Server_TivaTM4C1294NCPDT/Debug'
'Building file: ../EK_TM4C1294XL.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/wolfssl-3.12.0" --include_path="/packages/ti/ndk/inc" --include_path="/packages/ti/ndk/inc/bsd" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.0.12573c" -g --gcc --define=PART_TM4C1294NCPDT --define=TIRTOS --define=ccs --define=TIVAWARE --define=_INCLUDE_NIMU_CODE --define=ccs="ccs" --display_error_number --diag_wrap=off --diag_warning=225 --gen_func_subsections=on --preproc_with_compile --preproc_dependency="EK_TM4C1294XL.d_raw" --cmd_file="configPkg/compiler.opt" "../EK_TM4C1294XL.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'EK_TM4C1294XL.obj' failed
"../EK_TM4C1294XL.c", line 65: fatal error #1965: cannot open source file "inc/hw_memmap.h"
1 catastrophic error detected in the compilation of "../EK_TM4C1294XL.c".
Compilation terminated.
gmake: *** [EK_TM4C1294XL.obj] Error 1
'Building file: ../tcpEcho.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/wolfssl-3.12.0" --include_path="/packages/ti/ndk/inc" --include_path="/packages/ti/ndk/inc/bsd" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.0.12573c" -g --gcc --define=PART_TM4C1294NCPDT --define=TIRTOS --define=ccs --define=TIVAWARE --define=_INCLUDE_NIMU_CODE --define=ccs="ccs" --display_error_number --diag_wrap=off --diag_warning=225 --gen_func_subsections=on --preproc_with_compile --preproc_dependency="tcpEcho.d_raw" --cmd_file="configPkg/compiler.opt" "../tcpEcho.c"

>> Compilation failure
subdir_rules.mk:16: recipe for target 'tcpEcho.obj' failed
"../tcpEcho.c", line 50: fatal error #1965: cannot open source file "sys/socket.h"
1 catastrophic error detected in the compilation of "../tcpEcho.c".
Compilation terminated.
gmake: *** [tcpEcho.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Here is my  software enviroment :

tirtos_tivac_2_16_00_08

wolfssl-3.12.0

wolfssl compile setting : 

#
# ======== products.mak ========
#
#
# Read the http://processors.wiki.ti.com/index.php/Using_wolfSSL_with_TI-RTOS
# for instructions to download the software required.

# XDC_INSTALL_DIR is the path to XDCtools directory.
XDC_INSTALL_DIR = C:/ti/xdctools_3_32_00_06_core

# BIOS_INSTALL_DIR is the path to TI-RTOS Kernel (SYS/BIOS) directory. If you
# have installed TI-RTOS, it is located in the products/bios_* path.
BIOS_INSTALL_DIR = C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29

# NDK_INSTALL_DIR is the path to TI-RTOS NDK directory. If you have
# installed TI-RTOS, it is located in the products/ndk_* path.
NDK_INSTALL_DIR = C:/ti/tirtos_tivac_2_16_00_08/products/ndk_2_25_00_09

# TIVAWARE_INSTALL_DIR is the path to Tivaware driverlib directory. If you have
# installed TI-RTOS, it is located in the products/TivaWare_* path.
TIVAWARE_INSTALL_DIR = C:/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b

# Define the code generation tools path for TI, IAR and GCC ARM compilers.
# If you have installed Code Composer Studio, the TI and GCC compiler are
# located in the ccsv*/tools/compiler/* path.
#
# Leave assignment empty to disable any toolchain.
ti.targets.arm.elf.M4F = C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS
iar.targets.arm.M4F =
gnu.targets.arm.M4F =

ccs: 7.3.0.00019

code : tcpEcho_Server_TivaTM4C1294NCPDT.zip

please help on this , thanks . 

  • Hi,

    I'm having the same error. Any suggestion?

    Regards
  • We you able to build the "TCP Echo with TLS" example in TI-RTOS?

    Where exactly is you wolfssl library?

    Todd
  • Hi,

    In Tirex I can find 5 examples, but there is no named "TCP Echo with TLS". I was looking for it, but couldn't find it anywhere. WolfSSL can be found in "C:\ti\wolfssl". Does anybody have working example for CCS7 with current version of XDCtools, NDK, etc?

    Regards

    Darek

  • Did you look in Resource Explorer?

    Todd

  • Yes, I have searched many times in TIREX. I do not see the TCP Echo with TLS project.
    Maybe I'm looking in the wrong place?  
  • Strange. Can you download TI-RTOS to your machine and then use Resource Explorer Classic to see if you see it.

    1. Download site: 

    2. Install in c:\ti

    3. Start CCS and it will discover it (and potentially XDCtools 3.32.xx.xx also).

    4. Accept discover and restart CCS when prompted

    5. Open Resource Explorer Classic.

    Todd

  • I Todd ,

         I couldn't find  "TCP Echo with TLS" example" in resource explorer also .

         My "TCP echo with TLS" example downloaded from github "".

        I found your path of resource explorer is different from us .

        Ours lack "Tiva C series" , "TIVA TM4C1294NCPDT"

        yours

             

    my exploer

    Is it a tirtos or ccs version problem ?

    my ccs version : 7.3.0.00019 

    my tirtos version : 2.16.08

    Brenden

  • Brenden,

    Are you looking at Resouce Explorer Classic? Classic looks for content on your machine. The other one goes to the cloud.

    Todd

  • Todd ,
    After I select the Resource Explorer classic , i can find tcpEchoTLS sample code , but it still can not be build successfully .
    Here is the error message
    subdir_rules.mk:23: recipe for target 'tcpEchoTLS.obj' failed
    "../tcpEchoTLS.c", line 49: fatal error #1965: cannot open source file "sys/socket.h"

    My question is :
    1.I can't find <sys/socket.h> in NDK source code .
    Why not example code use <sys/socket.h> instead of "<ti/ndk/inc/netmain.h>" since NDK define relate Socket constant and data structure in <ti\ndk\inc\socketndk.h> and expect it will be build successfully ?
    2. After I see the relate wolfssl thread on E2E , It seems to different tirtos version needs different wolfssl version and build method , would you mind provide a SOP for tirtos_tivac_2_16_00_08?
  • The example is only using the standard bsd socket apis. Can you attach your build output from tcpEchoTLS_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT?
  • **** Build of configuration Debug__TI for project tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
    gmake[1]: Entering directory 'C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT/Debug__TI'
    'Building file: ../tcpEchoTLS.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_tivac_2_16_00_08/packages;C:/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages;C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages;C:/ti/tirtos_tivac_2_16_00_08/products/ndk_2_25_00_09/packages;C:/ti/tirtos_tivac_2_16_00_08/products/uia_2_00_05_50/packages;C:/ti/tirtos_tivac_2_16_00_08/products/ns_1_11_00_10/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C1294NCPDT -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS" "../tcpEchoTLS.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring tcpEchoTLS.xem4f from package/cfg/tcpEchoTLS_pem4f.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT/src/sysbios/sysbios.aem4f ...
    gmake[1]: Entering directory `C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT/src/sysbios'
    clem4f C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/BIOS.c ...
    asmem4f C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ...
    asmem4f C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ...
    asmem4f C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ...
    asmem4f C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ...
    arem4f BIOS.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ...
    gmake[1]: Leaving directory `C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT/src/sysbios'
    Build of libraries done.
    clem4f package/cfg/tcpEchoTLS_pem4f.c ...
    'Finished building: ../tcpEchoTLS.cfg'
    ' '
    gmake[1]: Leaving directory 'C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT/Debug__TI'
    複製了 1 個檔案。
    making ../src/sysbios/sysbios.aem4f ...
    gmake[1]: Nothing to be done for 'all'.
    'Building file: ../tcpEchoTLS.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT" --include_path="C:/ti/wolfssl-3.12.0" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b" --define=WOLFSSL_TIRTOS --define=_POSIX_SOURCE --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="tcpEchoTLS.d_raw" --cmd_file="configPkg/compiler.opt" "../tcpEchoTLS.c"

    >> Compilation failure
    subdir_rules.mk:23: recipe for target 'tcpEchoTLS.obj' failed
    "../tcpEchoTLS.c", line 49: fatal error #1965: cannot open source file "sys/socket.h"
    1 catastrophic error detected in the compilation of "../tcpEchoTLS.c".
    Compilation terminated.
    gmake: *** [tcpEchoTLS.obj] Error 1
    'Building file: ../tcpEchoHooks.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT" --include_path="C:/ti/wolfssl-3.12.0" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b" --define=WOLFSSL_TIRTOS --define=_POSIX_SOURCE --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="tcpEchoHooks.d_raw" --cmd_file="configPkg/compiler.opt" "../tcpEchoHooks.c"
    'Finished building: ../tcpEchoHooks.c'
    ' '
    'Building file: ../EK_TM4C1294XL.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/Brenden/workspace_v7/tcpEchoTLS_EK_TM4C1294XL_GNU_TivaTM4C1294NCPDT" --include_path="C:/ti/wolfssl-3.12.0" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b" --define=WOLFSSL_TIRTOS --define=_POSIX_SOURCE --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="EK_TM4C1294XL.d_raw" --cmd_file="configPkg/compiler.opt" "../EK_TM4C1294XL.c"
    "../EK_TM4C1294XL.c", line 601: warning #145-D: a value of type "void (*)(uint32_t)" cannot be used to initialize an entity of type "void (*)(SPIDataType)"
    "../EK_TM4C1294XL.c", line 613: warning #145-D: a value of type "void (*)(uint32_t)" cannot be used to initialize an entity of type "void (*)(SPIDataType)"
    'Finished building: ../EK_TM4C1294XL.c'
    ' '
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • You're missing some include paths. Are you sure this example is an unmodified out of the box project?

    Do the following look like your project properties?

  • Hi Todd ,

    problem solved.   

    I lack ${COM_TI_RTSC_TIRTOSTIVAC_INSTALL_DIR}/products/ndk_2_25_00_09/packages/ti/ndk/inc/bsd in include options . 

    Thanks for your great help 

    Brenden