We are working on a C++ project in Code Composer Studio based on the empty_driverlib_project_cpp example.
For better organization and traceability, we wanted to include both our SDK and Motor SDK folders directly inside the project directory.
After adding the libraries to the project and updating the Product and Compiler directory paths in CCS project settings, the project starts to lose files from the SDK directories and generates errors such as:
[193] error: unable to open output file 'lib/f29_sdk/source/bitfields/bitfield_structs.o': 'no such file or directory'
[194] 1 error generated.
[195] gmake: *** [device/subdir_rules.mk:11: lib/f29_sdk/source/bitfields/bitfield_structs.o] Error 1
[196] clang -cc1as: error: unable to open output file 'lib/f29_sdk/examples/device_support/source/codestartbranch.o': 'no such file or directory'
[197] gmake: *** [device/subdir_rules.mk:18: lib/f29_sdk/examples/device_support/source/codestartbranch.o] Error 1
[198] Finished building: "../libraries/control/fwc/fwc.c"
Once this occurs, even restoring the original paths and settings does not resolve the issue — the errors persist and the project continues to report missing files.
We also noticed that the folders containing the SDK and Motor SDK libraries must always be marked as “Excluded from Build” in order to avoid other issues. However, this defeats the purpose of having them directly included within the project structure for easier access and traceability.
Has anyone encountered this behavior before?
Is there a supported or recommended way to include the SDK and Motor SDK within the project folder structure, or is this not possible in CCS?
Any suggestions or insights would be greatly appreciated.