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/MSP432E401Y: Compilation Error while creating new TI RTOS based project for msp432e401y

Part Number: MSP432E401Y
Other Parts Discussed in Thread: MSP-EXP432E401Y,

Tool/software: TI-RTOS

Hi All,

I have MSP-EXP432E401Y evaluation board and I tried to run sample code on this and it works fine.

Now I am trying to create one new RTOS based project in CCS Version: 8.3.0.00009 , xdctool "xdctools_3_51_02_21_core", and "tirtos_msp43x_2_20_00_06".

I have referred "TI-RTOS Kernel (SYS/BIOS) User's Guide" document (Section 2) for creating new project. But I am getting below error while building project, any help will be appreciated...

**** Build of configuration Debug for project aaa ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../aaa.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source;C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.msp432:MSP432E401Y -r debug -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS" "../aaa.cfg"
configuring aaa.xem4f from package/cfg/aaa_pem4f.cfg ...
subdir_rules.mk:12: recipe for target 'build-1718179921-inproc' failed
js: "C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/targets/linkUtils.xs", line 84: xdc.services.global.XDCException: xdc.FILE_NOT_FOUND: can't locate file 'ti/targets/rts6000/link.xdt' along the path: C:\ti\simplelink_msp432e4_sdk_3_10_00_11\kernel\tirtos\packages\ti\platforms\msp432;C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source;C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages;C:/ti/xdctools_3_51_02_21_core/packages;..;
"C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/platforms/msp432/linkcmd.xdt#93(eval)", line 1
"C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/platforms/msp432/linkcmd.xdt", line 93
"C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/platforms/msp432/linkcmd.xdt", line 134
xdctools_3_51_02_21_core\gmake.exe: *** [package.mak:202: package/cfg/aaa_pem4f.xdl] Error 1
xdctools_3_51_02_21_core\gmake.exe: *** Deleting file 'package/cfg/aaa_pem4f.xdl'
xdctools_3_51_02_21_core\gmake.exe: *** [package/cfg/aaa_pem4f.xdl] Deleting file 'package/cfg/aaa_pem4f.h'
xdctools_3_51_02_21_core\gmake.exe: *** [package/cfg/aaa_pem4f.xdl] Deleting file 'package/cfg/aaa_pem4f.c'
js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1718179921-inproc] Error 1
subdir_rules.mk:9: recipe for target 'build-1718179921' failed
gmake: *** [build-1718179921] Error 2
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • I am getting only "Program" option in .cfg file of my project . Check in attached image of my project...

  • I expect the platform or target incorrect. Can you import an example from the SDK and confirm you can build it? Assuming that works, please look at the following for both the imported example and the project that has aaa.cfg.

  • Tanwi,
    I think that the error message about link.xdt file is masking another, more relevant error message. It would help if you could zip up your project right after a failed build, and then post it here. If there are any source files you can't post publicly, please exclude them from the zip file.
  • Hi Todd,

    I have imported "hello_MSP_EXP432E401Y_tirtos_ccs" project and built it and it is working fine.

    I crossed checked platform & target of my RTOS project i.e. "aaa" with the project that I have imported from example; both have same platform and target files.

  • Hi Sasha,

    Check the .zip folder of my compiled RTOS based project "aaa" that is having error and guide me to resolve issue.aaa.zip

  • Hi Tanvi,

    Thanks for the info. I looked at your project and there are various issues. It looks like you started with a driverlib example (or some non-TI-RTOS example) and tried adding TI-RTOS to it. While this is doable, it is not the recommended approach. I think you should import a basic TI-RTOS example (e.g. drivers/empty) and make sure it works (which is sounds like it will) and then add you content into it.

    Here is the list of things I see wrong with your project (and most will be resolved if you start with a TI-RTOS example)

    1. You have multiple products select. Note: ignore that mine says "Core MSP432E4 SDK". It is really SimpleLink MSP432E4 SDK...it's the way we do it internally at TI).

    2. The .cfg is empty.

    3. You are supplying a vector table. TI-RTOS manages this for you.

    4. While similar, you linker file is missing some things.

    5. No call to BIOS_start in main().

    Todd

  • Hi Todd,

    Thank you for the reply.

    1.) First of all I have imported example project (i.e. Empty RTOS example from location  "C:\ti\simplelink_msp432e4_sdk_3_10_00_11\examples\rtos\MSP_EXP432E401Y\drivers\empty") into my current working workspace and try to build it and it was done successfully. Note: In this project I have change Connection as 'Stellaris In Circuit Debug' instaed of TI XDS110 USB.

     


     

    See the log of compilation of this project:

    **** Build of configuration Debug for project empty_MSP_EXP432E401Y_tirtos_ccs ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "../empty.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="E:/MSP432_Test_Workspace/empty_MSP_EXP432E401Y_tirtos_ccs" --include_path="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source/third_party/CMSIS/Include" --include_path="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source/ti/posix/ccs" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/include" --advice:power=none -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="empty.d_raw" --cmd_file="E:/MSP432_Test_Workspace/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt" "../empty.c"
    Finished building: "../empty.c"

    Building file: "../main_tirtos.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="E:/MSP432_Test_Workspace/empty_MSP_EXP432E401Y_tirtos_ccs" --include_path="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source/third_party/CMSIS/Include" --include_path="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source/ti/posix/ccs" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/include" --advice:power=none -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="main_tirtos.d_raw" --cmd_file="E:/MSP432_Test_Workspace/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt" "../main_tirtos.c"
    Finished building: "../main_tirtos.c"

    Building file: "../MSP_EXP432E401Y.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="E:/MSP432_Test_Workspace/empty_MSP_EXP432E401Y_tirtos_ccs" --include_path="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source/third_party/CMSIS/Include" --include_path="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source/ti/posix/ccs" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/include" --advice:power=none -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="MSP_EXP432E401Y.d_raw" --cmd_file="E:/MSP432_Test_Workspace/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/compiler.opt" "../MSP_EXP432E401Y.c"
    Finished building: "../MSP_EXP432E401Y.c"

    Building target: "empty_MSP_EXP432E401Y_tirtos_ccs.out"
    Invoking: ARM Linker
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --advice:power=none -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"empty_MSP_EXP432E401Y_tirtos_ccs.map" -i"C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source" -i"C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/lib" --diag_wrap=off --display_error_number --warn_sections --xml_link_info="empty_MSP_EXP432E401Y_tirtos_ccs_linkInfo.xml" --rom_model -o "empty_MSP_EXP432E401Y_tirtos_ccs.out" "./MSP_EXP432E401Y.obj" "./empty.obj" "./main_tirtos.obj" "../MSP_EXP432E401Y_TIRTOS.cmd" -l"ti/display/lib/display.aem4f" -l"ti/grlib/lib/ccs/m4f/grlib.a" -l"third_party/spiffs/lib/ccs/m4f/spiffs.a" -l"ti/drivers/lib/drivers_msp432e4.aem4f" -l"third_party/fatfs/lib/ccs/m4f/fatfs.a" -l"ti/dpl/lib/dpl_msp432e4.aem4f" -l"E:/MSP432_Test_Workspace/tirtos_builds_MSP_EXP432E401Y_release_ccs/Debug/configPkg/linker.cmd" -l"ti/devices/msp432e4/driverlib/lib/ccs/m4f/msp432e4_driverlib.a" -llibc.a
    <Linking>
    Finished building target: "empty_MSP_EXP432E401Y_tirtos_ccs.out"

    **** Build Finished ****

    2.) As you guided that I have selected multiple products, I have de-selected TI-RTOS and keep only 'SimpleLink MSP'  product selected. Buiding of the project was giving me same errors.

    Check below screenshots:

    3.) Now I have tried to create one new RTOS based project, namely 'bbb',  in current workspace. Check the screenshots below of creating new RTOS based project steps:

    Note: This gives me "PACKAGE NOT FOUND" error if I deselect TI-RTOS product but if I select TI-RTOS product then it won't give this error.

     See the log below:

    **** Build of configuration Debug for project bbb ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "../bbb.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source;C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.msp432:MSP432E401Y -r debug -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS" "../bbb.cfg"
    configuring bbb.xem4f from package/cfg/bbb_pem4f.cfg ...
    subdir_rules.mk:12: recipe for target 'build-788199759-inproc' failed
    js: "C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/targets/linkUtils.xs", line 84: xdc.services.global.XDCException: xdc.FILE_NOT_FOUND: can't locate file 'ti/targets/rts6000/link.xdt' along the path: C:\ti\simplelink_msp432e4_sdk_3_10_00_11\kernel\tirtos\packages\ti\platforms\msp432;C:/ti/simplelink_msp432e4_sdk_3_10_00_11/source;C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages;C:/ti/xdctools_3_51_02_21_core/packages;..;
    "C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/platforms/msp432/linkcmd.xdt#93(eval)", line 1
    "C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/platforms/msp432/linkcmd.xdt", line 93
    "C:/ti/simplelink_msp432e4_sdk_3_10_00_11/kernel/tirtos/packages/ti/platforms/msp432/linkcmd.xdt", line 134
    xdctools_3_51_02_21_core\gmake.exe: *** [package.mak:202: package/cfg/bbb_pem4f.xdl] Error 1
    xdctools_3_51_02_21_core\gmake.exe: *** Deleting file 'package/cfg/bbb_pem4f.xdl'
    xdctools_3_51_02_21_core\gmake.exe: *** [package/cfg/bbb_pem4f.xdl] Deleting file 'package/cfg/bbb_pem4f.h'
    xdctools_3_51_02_21_core\gmake.exe: *** [package/cfg/bbb_pem4f.xdl] Deleting file 'package/cfg/bbb_pem4f.c'
    js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-788199759-inproc] Error 1
    gmake: *** [build-788199759] Error 2
    subdir_rules.mk:9: recipe for target 'build-788199759' failed
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

     

     

    2.The .cfg is empty.--> How to add all options viz.Welcome page, BIOS, Semaphore, Memory, heap, etc? I am not aware of this. Guide me through this. 

    3.You are supplying a vector table. TI-RTOS manages this for you.--> What is this? I have not done any additional steps, except that I have mention above, while creating new project

    4. While similar, you linker file is missing some things.--> What is missing and how to / where to fulfill this?

    5. No call to BIOS_start in main().--> Right now I have not written any code or logic. I am just trying to built my newly created blank project but it is not happening. 

     

     

     

  • Tanvi,

    Don't create a new project. Just use the existing empty_MSP_EXP432E401Y_tirtos_ccs example you imported (and is building properly). Rename it as needed. You can add your content into that project now. The other project that was imported automatically when you imported the driver's empty project is the kernel project (probably called tirtos_builds_MSP_EXP432P4111_release_ccs). This project builds the kernel and contains the .cfg file. The application project has a dependency on the kernel project. Take a look at the SimpleLink SDK User Guide for more details on the kernel project and how it is hooked in.

    Todd
  • Hi Todd,

    Don't create a new project--> Why?

    The project "empty_MSP_EXP432E401Y_tirtos_ccs example" contains peripheral , thread, etc. configuration as per evaluation kit. 

    I want to develop TI RTOS based application on my device (i.e. hardware). For that I want to configure GPIO, create threads/semaphores/Hwi/Swi as per my requirements.

    How can I do that dynamically using '.cfg' file?

    The main reason to create new project is that I want to develop application using TI-RTOS + lwIP (instead of SimpleLink stack). How can I achieve that?

  • i Todd,

    I have the same issues, but the platform is MSP432P4111.  I imported the example project from the SDK examples.  The error messages and property page are captured and as attached.

    TI-RTOS example project : fatsdraw_MSP_EXP432P4111_tirtos_ccs

    Do you have any idea for it?

    Sunglin.

  • Dear All,

    I found that I have another ARM compiler in the PC. I changed the folder name of that compiler, and then the TI-RTOS example project can be compiled correctly.

    Sunglin.
  • Tanvi,

    Importing a TI-RTOS example (e.g. drivers/empty) is creating a new project. We recommend this approach. Starting with the CCS new project wizard and creating an empty one is like getting bags of cement to make a foundation for a house. Importing the drivers/empty example, is getting the foundation already made (and made properly).

    Once you have the project, you can add the include paths and library for lwIP. Note: we have not wrote the port for lwIP on TI-RTOS. We have for FreeRTOS. For TI-RTOS, we recommend using the NDK. There are examples for the NDK on TI-RTOS already (e.g. TCP Echo).

    Todd

**Attention** This is a public forum