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.

AWR2944EVM: Failing to set environment (setenv.bat) before building project in CCS.

Part Number: AWR2944EVM
Other Parts Discussed in Thread: UNIFLASH, AWR2944

Tool/software:

Recently I have begun setting up the development environment for the SDK and CCS (12.8.1) working in conjunction with the AWR2944EVM. Importantly the following did work:

  • Building of the binaries via the cmd line with setenv.bat and gmake clean/all, next flashing via the uniflash python script
  • Flashing of the binaries onto the AWR2944EVM over JTAG via the CCS's debug mode

My goal is to be able to modify the source code file .c/.h within the CCS, build the modified project and flash it to the EVM directly. However I have encountered here some issues, from what I have diagnosed the problem is that within CCS the environment paths created by the setenv.bat file within the cmd are not accessible and I am unable to make them visible for CCS. 

Here is my CCS setup:

  • Created a C/C++ project in CCS 12.8.1
  • Imported the demo files from C:\ti\mmwave_mcuplus_sdk_04_07_00_01\mmwave_mcuplus_sdk_04_07_00_01\ti\demo\awr294x\mmw
  • Created a target configuration file for the AWR2944EVM

I tried to resolve the before mentioned issue with the following:

  • Running the setenv.bat  from the terminal within CCS, the idea being that the variables will be in the correct scope then
  • Moving the setenv.bat, cheenv.bat and setenv.mak to the projects directory
  • Modifying project properties under C/C++ Build in the Behaviour tab using custom build arguments: 
    • cmd /C "call C:\ti\mmwave_mcuplus_sdk_04_07_00_01\mmwave_mcuplus_sdk_04_07_00_01\scripts\windows\setenv.bat && call C:\ti\mmwave_mcuplus_sdk_04_07_00_01\mmwave_mcuplus_sdk_04_07_00_01\scripts\windows\checkenv.bat && gmake all"
  • Manually adding environment variables under C/C++ Build Environment
    •  MMWAVE_SDK_INSTALL_PATH=C:/ti/mmwave_mcuplus_sdk_04_07_00_01 
    • and sever other paths from the setenv.bat file 

All of these methods didn't fully resolve the issues. I got the furthest with manually adding the paths but I wasn't able to find all of the necessary paths. After reverting to the default path setting I get this error:

13:04:35 **** Incremental Build of configuration Default for project AWR2944_embeded ****
make all
makefile:13: /ti/common/mmwave_sdk.mak: No such file or directory
make: *** No rule to make target '/ti/common/mmwave_sdk.mak'. Stop.
"make all" terminated with exit code 2. Build might be incomplete.

  

All help is appreciated

Best regards

Mark