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/TM4C1292NCPDT: Integration of NDK to an existing project

Part Number: TM4C1292NCPDT

Tool/software: TI-RTOS

Hi,

I have rebuilded NDK. I am trying to integrate  NDK with my existing project. I did the steps shown in the link

According to the section "Building Your Project Using Rebuilt NDK Core Libraries for SYS/BIOS 6 Users", I added repository and also added include paths. But while building, my NDK is not getting integrated with my project. Even though I commented ACK packets send in the stack, it is sending ACKs. How will I know whether the NDK got integrated successfully to the project? Is there any extra step required to integrate NDK with the project other than in the link?

Thanks

Sandra

  • Hi Sandra,

    Please look at the <NDK>\packages\ti\ndk\stack\lib\stk.aem4f file (assuming you are using the TI compiler...stk.am4fg for GCC and stk.arm4f for IAR). What's the date after you rebuild the NDK? It should be new.

    Rename this file and try to build the application. You should get a build error. Rename it back.

    Todd
  • Hi Todd,

    Thank you for the support.
    NDK is rebuilded and the file is generated with current date. I got build error too.

    I am using TI compiler.
    While I build NDK, instead of stk.aem4f file, stk.aem4 file is getting generated. Where I need to change to generate stk.aem4f file?
    Also, in my project, it is searching the file in the path <NDK>\packages\ti\ndk\config\..\stack\lib\stk.aem4f. How I can change this path?

    Regards
    Sandra
  • Can you include your ndk.bld, ndk.mak, tirtos.mak and tirtos.bld* files and the output from your build. Please place the build output into a file and attach the file (instead of copy/paste into a post).

    I'm assuming you are rebuild the NDK from the top of <tirtos_install_dir>. If you are building it from the ndk directory, I don't need the top level tirtos.mak/bld files.

    Todd
  • Hi Todd,

    I have made another folder in C:/ directory. I copied the ndk folder from TI RTOS products into this folder and I am using the new folder in my project. I builded the NDK successfully and I am trying to integrate the builded NDK with my application project. I included paths according to this folder, changed repository and installed NDK from this new folder. Then also there are some dependencies to the NDK folder in TI RTOS products. If I remove NDK folder from TI RTOS products, some unresolved symbols error comes and also it doesn't get stk.aem4f file. If that folder is there, it is building successfully. Please give me suggestions to solve it.

    I am attaching ndk.mak, ndk.bld, tirtos.mak and tirtos.bld as a zipped folder. Now I am using default tirtos.mak and tirtos.bld files.

    build_files.zip

    Regards

    Sandra

  • Hi Sandra,

    Let's not copy the NDK out of the TI-RTOS product. That only adds another variable.

    Please update the tirtos.mak at the top of the TI-RTOS product (e.g. do you have CCS installed in c:\ti? Do you have that compiler version?, etc.).

    Then from a commandline, simply type

    C:\ti\tirtos_tivac_2_16_01_14>..\xdctools_3_32_00_06_core\gmake -f tirtos.mak clean-ndk

    C:\ti\tirtos_tivac_2_16_01_14>..\xdctools_3_32_00_06_core\gmake -f tirtos.mak ndk


    Capture the output from the last command and attach it. The previous one shows you are building for M4 instead of M4F. 

    Todd

  • Did this get resolved?

    Todd
  • Todd,

    Sorry, I forgot to reply. The issue is resolved. Thank you very much for your support.

    Thanks

    Sandra