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.

CCSTUDIO: XDCTools error on macOS Monterey

Part Number: CCSTUDIO
Other Parts Discussed in Thread: CC1352R

Hi,

We are developing for the CC1352R on Mac. I have recently upgraded my operating system to macOS Monterey and now all of our projects that previously compiled with no issues now fail in the XDCTools step (building release.cfg)

The displayed error in CCS is:

js: "/Applications/ti/ccs1100/xdctools_3_62_01_16_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 139); 'linker.cmd' deleted.

I have upgraded to CCS 11 which did not resolve the problem. CCS 11 bundles xdctools_3_62_01_16_core which seems to be the latest version available?

This is the same problem reported here: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1049874/xdctools-errors-after-upgrading-to-macos-monterey/3895678 

I have found a work-around that I wanted to share with others :-)

The cause of the failure is due to the bundled version of gmake seg-faulting - it is spawned as a sub-process from xdc. The work-around is to replace the bundled version at /Applications/ti/ccs1100/xdctools_3_62_01_16_core/gmake with a newer version

e.g. making a symlink to a HomeBrew installed version

mv /Applications/ti/ccs1100/xdctools_3_62_01_16_core/gmake /Applications/ti/ccs1100/xdctools_3_62_01_16_core/gmake-backup
brew install make
ln -s /usr/local/Cellar/make/4.3/bin/gmake /Applications/ti/ccs1100/xdctools_3_62_01_16_core/gmake

Hopefully this saves someone else a few hours worth of head-scratching!