What is the command behind "Open Project in Code Composer Studio"
4 views (last 30 days)
Gergely Szabó on 15 Jul 2019
I am about to do some automation in my code generation, and I also would like to inculde the auto generated CCS project to this.
Does anyone happen to know, what is the command behind "Open Project in Code Composer Studio", which is shown in the Diagnostic viewer?
Venkatesh Chilapur on 12 Sep 2019
The command that creates the link in diagnostic viewer is:
>> Simulink.output.info(DAStudio.message('TIC2000:codegen:OpenCCSProject','ccspath','proj folder'))
We launch the CCS that will import the rtw project by the following command:
Notice the 2 parameters, first is the full path to CCS install, second is the path to the rtw CCS project folder.
You can get the path to CCS install which is provided during support package setup by the following commands:
toolRootDir = codertarget.tic2000.setup.internal.getToolchainScriptingFolder(getActiveConfigSet(bdroot))
//bdroot is model name
CCS_InstallDir = fullfile(toolRootDir,'..','..')
We can rewrite the command to Open CCS now as: