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/CC3200MODLAUNCHXL: Simplelink Version

Part Number: CC3200MODLAUNCHXL

Tool/software: TI-RTOS

Which version of Simplelink should I use:

A. the one with the CC3200SDK_1.2.0

B. the one with tirtos_cc32xx_2_16_01_14

C. is there a newer release?

I feel that Having both is causing some compiler issues with my builds.

Thanks,

-Kurt

  • More detail, I am attempting to do some reads from the sFlash on the Module and when i add the functions I am unable to compile and get the following error:

    Description Resource Path Location Type

    #148 declaration is incompatible with "_i16 close(_i16)" (declared at line 1536 of "C:\ti\tirtos_cc32xx_2_16_01_14\products\tidrivers_cc32xx_2_16_01_13\packages\ti\mw\wifi\cc3x00\simplelink\include\socket.h") .ccsproject /ScentConnect_Epsilon line 86, external location: C:\ti\ccsv6\tools\compiler\ti-cgt-arm_16.6.0.STS\include\file.h C/C++ Problem

    This is referring to the following from file.h in the compiler (ti-cgt-arm_16.6.0.STS):

    _DECL _CODE_ACCESS off_t lseek(int fildes, off_t offset, int origin);

    _DECL _CODE_ACCESS int   close(int fildes);

    _DECL _CODE_ACCESS int   unlink(const char *path);

    I am not sure why the error occurs when I am adding file operations and it is referring to the socket connection from what I gather.

    -Kurt

  • Kurt Jordan said:
    A. the one with the CC3200SDK_1.2.0

    This SDK contains core CC3200 device support - driverlib and host driver for NWP.

    Kurt Jordan said:
    B. the one with tirtos_cc32xx_2_16_01_14

    This is TI-RTOS SDK with kernel and driver support for CC3200 device.

    Kurt Jordan said:
    C. is there a newer release?

    You are using the latest versions

  • Vikram,

    I think you miss understood my question. I have all installed. When building my application what should I use? Which is newest/recommended?

    The libraries in A are sometimes duplicated in B. Specifically the SimpleLink Libraries and DriverLib Libraries are in both locations but have minor differences that I can find. Which should be used? I have the above stated issue no matter which version I am using but uncertain if it is finding the proper files during build and linking. Also where are the drivers in the SDK, they only appear to be in the tirtos libraries package?

    Thanks,
    -Kurt
  • Kurt Jordan said:

    More detail, I am attempting to do some reads from the sFlash on the Module and when i add the functions I am unable to compile and get the following error:

    Description Resource Path Location Type

    #148 declaration is incompatible with "_i16 close(_i16)" (declared at line 1536 of "C:\ti\tirtos_cc32xx_2_16_01_14\products\tidrivers_cc32xx_2_16_01_13\packages\ti\mw\wifi\cc3x00\simplelink\include\socket.h") .ccsproject /ScentConnect_Epsilon line 86, external location: C:\ti\ccsv6\tools\compiler\ti-cgt-arm_16.6.0.STS\include\file.h C/C++ Problem

    I would recommend using SimpleLink APIs for file access such as sl_FsOpen(), sl_FsClose(), sl_FsRead(), sl_FsWrite() instead of C Std APIs from file.h.  This would avoid the conflict. Unfortunately, some of the socket APIs are moving towards BSD compliance but are not fully compliant yet which is causing such issues. Sorry about that.

    Vikram

  • Vikram,

    How would you recommend this as the compiler seems to be what is trying to use the standard C file calls?

    I am trying to use the SimpleLink API calls. Calling these is where the issues comes in.

    -Kurt
  • Kurt,

    Kurt Jordan said:
    The libraries in A are sometimes duplicated in B. Specifically the SimpleLink Libraries and DriverLib Libraries are in both locations but have minor differences that I can find. Which should be used?

    I understand the confusion. We are working on it to make it much simpler. My colleague has a detailed instructions how to use to the latest CC3200 SDK 1.2.0 with TI-RTOS 2.16.01.14 in this thread: 

    Kurt Jordan said:
    I have the above stated issue no matter which version I am using but uncertain if it is finding the proper files during build and linking.

    I have posted a solution in my earlier post. Please let me know if that works for you.

    Kurt Jordan said:
    Also where are the drivers in the SDK, they only appear to be in the tirtos libraries package?

    Drivers are in the "<ti-rtos_dir>/products/tidrivers_cc32xx_2_16_01_13/packages" directory.

  • Can you please share your code? I would like to have a closer look at the issue.

    Vikram
  • I can PM it to you but don't want to post it publicly.

    -Kurt
  • You can PM me. Or, you can reduce the code to a smaller example which reproduces the issue and post it here.

    Vikram