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.

Compile the starterware "demo" application

Other Parts Discussed in Thread: AM3359, SYSBIOS

Hi community!

I am trying to compile the "demo" CCS project from Starterware for the AM3359. But I am facing a problem:

"../../../../../../../third_party/lwip-1.4.0/ports/cpsw/include/arch/sys_arch.h", line 35: fatal error: could not open source file "SafeRTOS/SafeRTOS_API.h"

So I searched for that .h file and .c in my C:/ti folder but I did not find it. Do you know from where I can get it ?

Cheers,
Paul

  • Not sure if this will be any help for you but I can find missing files in old StellarisWare (http://www.ti.com/tool/sw-lm3s).

    [...]\StellarisWare\third_party\SafeRTOS

    Regards,
    Maciej 

  • Thanks. I downloaded it but there might be a version problem now because I have lots of identifiers undefined. Like this:

    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 194: warning: attribute "naked" ignored
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 121: error: identifier "sys_mutex_t" is undefined

    Does anyone in TI knows how to compile that project ? It comes from the am335x_sysbios_ind_sdk_1.0.0.7.

    Paul.

    PS: I attached the Console output, in case of it could be usefull.

    **** Build of configuration Debug for project demo ****
    
    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k -j 4 -s all 
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/am335x_clock_data.c'
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/cm3wkup_proxy.c'
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoAccelerometer.c'
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoAic31.c'
    'Invoking: TMS470 Compiler'
    'Invoking: TMS470 Compiler'
    'Invoking: TMS470 Compiler'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/cm3wkup_proxy.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoCodecif.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoAic31.c'
    ' '
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoAccelerometer.c'
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoDvfs.c'
    ' '
    'Invoking: TMS470 Compiler'
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoEcap.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/am335x_clock_data.c'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoCodecif.c'
    ' '
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoEnet.c'
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoGpio.c'
    'Invoking: TMS470 Compiler'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoEcap.c'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoDvfs.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoGrlib.c'
    ' '
    'Invoking: TMS470 Compiler'
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 87: warning: attribute "naked" ignored
    
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 88: warning: attribute "naked" ignored
    >> Compilation failure
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 177: warning: attribute "naked" ignored
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 194: warning: attribute "naked" ignored
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 121: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 124: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 127: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 130: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 133: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 137: error: identifier "sys_mutex_t" is undefined
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoMain.c'
    6 errors detected in the compilation of "C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoEnet.c".
    gmake: *** [demoEnet.obj] Error 1
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoI2c.c'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoGpio.c'
    'Invoking: TMS470 Compiler'
    'Invoking: TMS470 Compiler'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoPwrMgmnt.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoI2c.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoRaster.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoRaster.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoRtc.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoRtc.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoTempSensor.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoPwrMgmnt.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoTimer.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoTempSensor.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoToneLoop.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoTimer.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoTouch.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoMain.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/third_party/lwip-1.4.0/apps/httpserver_raw_io/httpd_io.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoTouch.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/third_party/lwip-1.4.0/ports/cpsw/lwiplib.c'
    'Invoking: TMS470 Compiler'
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 87: warning: attribute "naked" ignored
    
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 88: warning: attribute "naked" ignored
    >> Compilation failure
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 177: warning: attribute "naked" ignored
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 194: warning: attribute "naked" ignored
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 121: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 124: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 127: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 130: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 133: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 137: error: identifier "sys_mutex_t" is undefined
    6 errors detected in the compilation of "C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/third_party/lwip-1.4.0/apps/httpserver_raw_io/httpd_io.c".
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 87: warning: attribute "naked" ignored
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 88: warning: attribute "naked" ignored
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 177: warning: attribute "naked" ignored
    "C:/ti/stellaris/third_party/SafeRTOS/portmacro.h", line 194: warning: attribute "naked" ignored
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 121: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 124: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 127: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 130: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 133: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/include/lwip/sys.h", line 137: error: identifier "sys_mutex_t" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 137: error: identifier "ENOMEM" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 138: error: identifier "ENOBUFS" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 139: error: identifier "EWOULDBLOCK" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 140: error: identifier "EHOSTUNREACH" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 141: error: identifier "EINPROGRESS" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 142: error: identifier "EINVAL" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 144: error: identifier "EADDRINUSE" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 145: error: identifier "EALREADY" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 146: error: identifier "ECONNABORTED" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 147: error: identifier "ECONNRESET" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 148: error: identifier "ENOTCONN" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 150: error: identifier "EIO" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 375: error: identifier "ENFILE" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 772: error: identifier "EMSGSIZE" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1369: error: identifier "EOPNOTSUPP" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1370: error: identifier "EOPNOTSUPP" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1453: error: identifier "EFAULT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1501: error: identifier "EAFNOSUPPORT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1509: error: identifier "ENOPROTOOPT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1549: error: identifier "ENOPROTOOPT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1578: error: identifier "ENOPROTOOPT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1611: error: identifier "ENOPROTOOPT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1854: error: identifier "EFAULT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1898: error: identifier "EAFNOSUPPORT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1905: error: identifier "ENOPROTOOPT" is undefgmake: *** [httpd_io.obj] Error 1
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/oppConfig.c'
    ined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1959: error: identifier "ENOPROTOOPT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 1988: error: identifier "ENOPROTOOPT" is undefined
    
    >> Compilation failure
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2020: error: identifier "ENOPROTOOPT" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/api/sockets.c", line 2310: error: identifier "ENOSYS" is undefined
    "../../../../../../../third_party/lwip-1.4.0/src/core/init.c", line 152: fatal error: #error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts"
    35 errors and 1 fatal error detected in the compilation of "C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/third_party/lwip-1.4.0/ports/cpsw/lwiplib.c".
    Compilation terminated.
    gmake: *** [lwiplib.obj] Error 1
    'Invoking: TMS470 Compiler'
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/pmic.c'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/oppConfig.c'
    ' '
    'Building file: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/slpWkup_cgttms470.asm'
    'Invoking: TMS470 Compiler'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/slpWkup_cgttms470.asm'
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/pmic.c'
    ' '
    ' '
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoToneLoop.c'
    ' '
    'Finished building: C:/ti/am335x_sysbios_ind_sdk_1.0.0.7/sdk/starterware/examples/evmAM335x/demo/demoGrlib.c'
    ' '
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

  • The StarterWare examples set NO_SYS to 1 in lwipopts.h. That implies that StarterWare does not use SafeRTOS files.

  • I'm also having the same issue with including the SafeRTOS header files. I'm trying to build the eneLwip example application with CCS5.4 and SDK1.0.0.8. Does anyone know if it's possible to build this application out-of-the-box without having to dig through old StellisWare? It just seems odd that StarterWare wouldn't have the appropriate files to build its standard examples.

  • Fyang,

    did you try the NO_SYS option as suggested by the previous post?

    Regards

  • Frank,

    I did change NO_SYS to 1 and the build does complete without errors. I did not have to pull out SafeRTOS header files from StellarisWare.

    My only gripe with changing the lwipopts.h is that it's buried in the lwIP stack (C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\starterware\third_party\lwip-1.4.0\src\include\lwip). I've worked with lwIP before, and the lwipopts.h is at the same level of the application. I did notice that there is another lwipopts.h in C:\ti\am335x_sysbios_ind_sdk_1.0.0.8\sdk\starterware\examples\evmskAM335x\enet_lwip, but this lwipopts.h was not included in the project. This would ideally be the lwipopts.h that a user would want to modify. It's possible and I was able to do it, but I had to change the order of includes and change the build include paths to ensure that the desired lwipopts.h was correctly being referenced.

  • We have no further plans to improve that demo or even endorse the use of lwIP together with IA-SDK. (Starterware releases might be different).

    We will provide NDK based examples in the future.

    Regards.

  • Frank,

    Thanks for the insight. I think you actually answered my next question about NDK support/examples for the IA-SDK. Do you have an expected release date for the NDK IA-SDK support/examples? Will NDK be supported for the ICE2 board? Thanks.

  • Thanks for the hint. Just ad an additional  side note:

    I tried to Import and compile the demo application for the C6748 LCDK and failed with the same error message. There is no file called lwiopts.h, only C:\ti\C6748_StarterWare_1_20_04_01\third_party\lwip-1.3.2\src\include\lwip\opt.h. Change the opt.h file to include your new lwiopts.h which sets the define.

    opt.h:

    /*
    
    * Include user defined options first. Anything not defined in these files
    
    * will be set to standard values. Override anything you dont like!
    
    */
    
    #include "lwipopts.h"
    
    #include "lwip/debug.h"
    

    lwiopts.h:

    #define NO_SYS 1

     

    Rebuild the Project.

  • This thread is 3 years old. Please post any Starterware questions yo have on the dedicated forum: e2e.ti.com/.../790
  • Hello Biser, it was not a question but an additional note on a very related problem. It was also the first thread I found in the forum when looking for a solution to my problem. Matthias