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/TM4C129XNCZAD: NDK Include Path

Part Number: TM4C129XNCZAD

Tool/software: TI-RTOS

What is the project variable NDK_INCLUDE_PATH? After creating a project to work with NDK and TI-RTOS, the project properties show that ${NDK_INCLUDE_PATH} is in the include options.

I do not see NDK_INCLUDE_PATH in the list of other variables. I would expect it to be defined for me. For example NDK_INSTALL_DIR is defined, and I didn't do that.Why doesn't it appear in the list of other variables? Is it really not defined or could it be defined  somewhere else?

This question comes from an error when copying example code. The example code includes <sys/socket.h>. The example project has the include option: "${COM_TI_RTSC_TIRTOSTIVAC_INSTALL_DIR}/products/ndk_2_25_00_09/packages/ti/ndk/inc/bsd" I assume this is what ${NDK_INCLUDE_PATH} should be.

Below is a screenshot of the auto-generated Include Options and where I see other variables.

  • Hi Peter,

    Where did you get this example? What version of TI-RTOS for TivaC are you using (I'm assuming 2.16.01.14 since I see bios_6_45_02_31 in a path)?

    Also, can you see if you have an environment variable called NDK_INCLUDE_PATH? For example on Windows, open a command prompt and type "set | findstr NDK_INCLUDE_PATH.

    Todd
  • NDK_INCLUDE_PATH isn't defined in my environment. Nothing printed out after that command you gave me.

    The TI_RTOS version I am trying to use is 2.16.1.14 and NDK version is 2.25.0.9. The example porject is called tcpEcho_DK_TM4C129X_TI. I got if from the resource explorer.

    The example project uses TI RTOS version 2.16.0.8. I think that version automatically got installed when I downloaded an example project.

    I just noticed that the available variables varies project to project. For example, COM_TI_RTSC_TIRTOSTIVAC_BIOS is C:\ti\tirtos_tivac_2_16_01_14\products\bios_6_45_02_31 in the projects that I make. In the example project, the same variable is C:\ti\tirtos_tivac_2_16_00_08\products\bios_6_45_01_29.

    Is CSS creating a unique set of variables for each new project? If so, it seems like CCS is forgetting to declare NDK_INCLUDE_PATH, but still lists it in the include options.
  • Peter,

    Let's figure out what you have installed.

    1. Open CCS->Preferences->Code Composer Studio->Product and what do you have for SYS/BIOS, TI-RTOS for TivaC and XDCtools.

    2. Open the project properties for the freshly imported tcpEcho_DK_TM4C129X_blah_blah. Look at General->Products. What do you have there for XDCtools and TI-RTOS for TivaC

    3. Now look at the "Order" tab. Select the top line and hit expand.

    Todd