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.

CCS/MSP432P4111: SysConfig problem after CCS upgrade

Part Number: MSP432P4111
Other Parts Discussed in Thread: SYSCONFIG, CCSTUDIO

Tool/software: Code Composer Studio

A while ago I was working on an application using CCS 9.0 , using the simplelink msp432p4 sdk version 2.40.  I am using the 4111 Launchpad

Everything worked including sysconfig.

I had to pause development for a while. I just started up again and immediately upgraded to CCS 9.3.0.00012  and installed the latest msp432p4 sdk version 3.40.0.5

My code compiles fine but sysconfig can not find the 3.40 sdk.  It only sees the 2.40 sdk previously installed.

I right clicked on my project, selected Properties / Resource / CCS General, then clicked on the Products tab and selected the 3.40.0.05 under SimpleLink MSP432P4 SDK.

I also chose the latest XDC Tools version 3.60.2.34_core (which doesn't affect results).

I even downloaded the offline SysConfig 1.3.1030 and created a new syscfg file using the 3.40 sdk as I noticed there were changes as my old syscfg files caused issues with sysconfig.

I looked at the project include files and the 3.40 sdk version directories are there.

Here is the build output when sysconfig is run:

**** Build of configuration MSP432P4111 Debug for project _BT_Audio ****

"D:\\ti\\ccs900\\ccs\\utils\\bin\\gmake" -k -j 8 syscfg/Board.c -O

Building file: "../targetConfigs/MSP432P4111/mbtad.syscfg"
Invoking: SysConfig
"D:/ti/ccs900/ccs/utils/sysconfig/sysconfig_cli.bat" -o "syscfg" "../targetConfigs/MSP432P4111/mbtad.syscfg"

Usage:
cli [-o <dir>] [-s <file>] [-u <string>] [-b <name>] [-d <name>] [-p <name>] [-r <name>] [--treatWarningsAsErrors] <script>
cli --help
cli --version

example: cli -s meta_data/sdk.json -d MSP432P401R scripts/two_uarts.js
example: -s sdk.json -d MSP432P401R -o ./display_cfg sdk/cfgs/display.syscfg

Note that the all arguments other than '--help' and '--version' may also be
specified via the script with an embedded @cliArgs comment directive.
E.g. // @cliArgs -d MSP432P401R

If an argument is embedded in a script and explicitly specified via the CLI
then precedence is given to the CLI arguments. Additionally, specifying
"--board" or "--device" on the CLI will override any "--board" and "--device"
arguments specified in the script.

targetConfigs/MSP432P4111/subdir_rules.mk:12: recipe for target 'build-504213103-inproc' failed
Invalid argument '--product': No product with name "simplelink_msp432p4_sdk" and version "3.40.00.05" found
gmake[1]: *** [build-504213103-inproc] Error 1
targetConfigs/MSP432P4111/subdir_rules.mk:9: recipe for target 'build-504213103' failed
gmake: *** [build-504213103] Error 2
gmake: Target 'syscfg/Board.c' not remade because of errors.

**** Build Finished ****

So CCS switched me to the 3.40 sdk but SysConfig sees only my old 2.40 sdk.  The offline version lets me create a syscfg with the 3.40 sdk.

I am not sure if I missed a setting or something is out of sync with my installation but I've looked for quite a long time without success.

Any ideas?

  • Alvin Hirsch said:
    A while ago I was working on an application using CCS 9.0 , using the simplelink msp432p4 sdk version 2.40. 

    If I remember correctly the SysConfig in that version was a preview version. It is possible some things have changed that is causing a problem with moving an older sysconfig project to new CCS.

    After you installed CCS 9.3, did you open a new workspace and import your old project into it, or did you simply open your old/previous workspace (that was created with 9.0) in CCS 9.3? If it is the latter, that may cause issues and we generally recommend starting a new workspace for each new version of CCS to avoid migration/corruption issues.

    Alvin Hirsch said:
    Building file: "../targetConfigs/MSP432P4111/mbtad.syscfg"
    Invoking: SysConfig
    "D:/ti/ccs900/ccs/utils/sysconfig/sysconfig_cli.bat" -o "syscfg" "../targetConfigs/MSP432P4111/mbtad.syscfg"

    The command line looks to be missing the -s argument. For a working SysConfig project, the command looks like this:

    Invoking: SysConfig
    "C:/CCStudio_9.3.0.00012/ccs/utils/sysconfig/sysconfig_cli.bat" -s "C:/ti/simplelink_msp432p4_sdk_3_30_00_13/.metadata/product.json" -o "syscfg" "../adcbufcontinuous.syscfg"

    Alvin Hirsch said:
    So CCS switched me to the 3.40 sdk but SysConfig sees only my old 2.40 sdk. 

    Does your project have a dependent kernel project (typically named tirtos_builds_xxx)? If so, make sure that the version of SDK is updated in the kernel project. Otherwise it will not be picked up by the main project.

    If you have already created a new .syscfg file using offline SysConfig, another safe way to get things going could be to start with the "empty" project example that comes with SDK 3.40. Then add your .syscfg, source files and any custom build options into it.

    Hope one of these recommendations help you move forward.

  • AartiG said:

    If I remember correctly the SysConfig in that version was a preview version. It is possible some things have changed that is causing a problem with moving an older sysconfig project to new CCS.

    Yes, there were changes being made to sysconfig that did affect me back then. That is why I recreated the syscfg file with the new offline version.

    AartiG said:

    After you installed CCS 9.3, did you open a new workspace and import your old project into it, or did you simply open your old/previous workspace (that was created with 9.0) in CCS 9.3? If it is the latter, that may cause issues and we generally recommend starting a new workspace for each new version of CCS to avoid migration/corruption issues.

    I just opened the old workspace. I did not realize this would make a difference. I will take note of that for the future.

    AartiG said:

    The command line looks to be missing the -s argument. For a working SysConfig project, the command looks like this:

    Invoking: SysConfig
    "C:/CCStudio_9.3.0.00012/ccs/utils/sysconfig/sysconfig_cli.bat" -s "C:/ti/simplelink_msp432p4_sdk_3_30_00_13/.metadata/product.json" -o "syscfg" "../adcbufcontinuous.syscfg"

    Thanks for pointing this out - I missed that. I will look into this.

    AartiG said:

    Does your project have a dependent kernel project (typically named tirtos_builds_xxx)? If so, make sure that the version of SDK is updated in the kernel project. Otherwise it will not be picked up by the main project.

    I checked into this and it does not have a dependent kernel project at the moment.  I noticed on a different previous project, you can not set the sdk version if there is a dependant project. It also mentions the dependency.  With mine, I can select it and there is no mention of a dependency.

    Success!

    Just before I hit "Reply" to submit the above, I checked one last time regarding the -s parameter.

    I right-clicked on my syscfg file, selected Properties / CCS Build / Basic Options looked at the section labelled

    "Root System config meta data file in a product or SDK (-s, --product)"

    All it had was one entry called "${COM_TI_SIMPLELINK_MSP432_SDK_SYSCONFIG_MANIFEST}"

    I hovered over the tooltip just to the right of it and it was marked:

    "Contributed by product SimpleLink_MSP432P4_SDK" and underneath that was marked <None>

    I looked at another previous project which differed so I copied one line to mine:

    ${COM_TI_SIMPLELINK_MSP432_SDK_INSTALL_DIR}/.metadata/product.json

    Now sysconfig builds my syscfg file.

    I am not sure if this is the right solution, just one that seems to work. But at least it works.

    I am leaving everything in this reply in hope anything here can help others.

    Thanks!

  • Alvin Hirsch said:

    I looked at another previous project which differed so I copied one line to mine:

    ${COM_TI_SIMPLELINK_MSP432_SDK_INSTALL_DIR}/.metadata/product.json

    Now sysconfig builds my syscfg file.

    This is the option that was missing in your command, so yes this is the right solution. Glad to hear that everything is working now.