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/CC2640R2F: sysconfig file created from dev.ti.com not work for ccs 9.2.0.00013 and simplelink_cc2640r2_sdk_3_30_00_20

Part Number: CC2640R2F
Other Parts Discussed in Thread: SYSCONFIG

Tool/software: Code Composer Studio 9.2.0.00013

sdk: simplelink_cc2640r2_sdk_3_30_00_20

file created from web:https://dev.ti.com/sysconfig/#/config/?args=--product%20%2Fmnt%2Ftirex-content%2Fsimplelink_cc2640r2_sdk_3_30_00_20%2F.metadata%2Fproduct.json%20--device%20CC2640R2FRSM%20--part%20Default%20--package%20RSM

syscfg file content:

// These arguments were used when this file was generated. They will be automatically applied on subsequent loads
// via the GUI or CLI invocations. Run CLI with '--help' for additional information on how to override these arguments.
// @cliArgs --device "CC2640R2FRSM" --package "RSM" --part "Default" --product "simplelink_cc2640r2_sdk@3.30.00.20"
// @versions {"data":"2019083011","timestamp":"2019083011","tool":"1.2.952","templates":"2019083011"}

var GPIO = scripting.addModule("/ti/drivers/GPIO");
var GPIO1 = GPIO.addInstance();
var PWM = scripting.addModule("/ti/drivers/PWM");
var PWM1 = PWM.addInstance();
var Power = scripting.addModule("/ti/drivers/Power");
// RCOSC Calibration Function - Function to be used for RC Oscillator (RCOSC) calibration.
Power.calibrateFunction = "PowerCC26XX_noCalibrate";
// Calibrate RCOSC_LF - Enable calibration of RCOSC_LF.
Power.calibrateRCOSC_LF = false;
// Calibrate RCOSC_HF - Enable calibration of RCOSC_HF.
Power.calibrateRCOSC_HF = false;
var Board = scripting.addModule("/ti/drivers/Board");
// Name - The C/C++ identifier used in applications as the index parameter passed to GPIO runtime APIs
GPIO1.$name = "Board_GPIO_LEAK";
// Mode - Select the GPIO mode
GPIO1.mode = "Dynamic";
// Assign pin
GPIO1.gpioPin.$assign = "DIO_8"; // pin number - 25
// Name
GPIO1.pinInstance.$name = "Board_PIN1";
// Name - The C/C++ identifier used in applications as the index parameter passed to PWM runtime APIs
PWM1.$name = "Board_PWM_BUZZ";
// Name - The C/C++ identifier used in applications as the index parameter passed to Timer runtime APIs
PWM1.timerObject.$name = "Board_TIMER0";
// Name
PWM1.timerObject.timer.$name = "MyGPTM1";
// Assign pin
PWM1.timerObject.timer.pwmPin.$assign = "DIO_2"; // pin number - 10
// Name
PWM1.timerObject.pwmPinInstance.$name = "Board_PIN2";
// Output Strength
PWM1.timerObject.pwmPinInstance.outputStrength = "Maximum";
// Suggest solution
PWM1.timerObject.timer.$suggestSolution = "GPTM0";

download the sysconfig file and put in a new empty project with only default main.c.

then double click to the open the syscfg file from the project.

error message:

Invalid argument '--product': No product with name "simplelink_cc2640r2_sdk" and version "3.30.00.20" found

in the sysconfig GUI, the "Software Product" is not selectable, it seems sysconfig cannot find the installed simplelink_cc2640r2_sdk_3_30_00_20

do

 

 

  • Hi,

    I sent it to a concerned engineer. We will get back to you ASAP. Please bear with us.

    Thanks,

    PM

  • the empty example of  simplelink_cc2640r2_sdk_3_30_00_20 does not configiured to use sysconfig as the tutorial states.

    so to try the sysconfig method, following the tutorial, 3 board files is to be removed from the project, and 1 syscfg file is to be added to the project.

    so one sysconfig file have to be created for the project first. as the tutorial states: SysConfig is available

    • with CCS Desktop (which this lab will focus on).
    • with CCS Cloud
    • as a stand-alone desktop tool
    • as a cmdline tool

    but there's no sysconfig GUI menu item to start sysconfig from scratch with CCS Desktop. so, the syscfg file need to be created with CCS Cloud, as stated in the 1st post. or just copy the empty.syscfg from the tutorial project. a syscfg file succeeded in bring up the sysconfig GUI with CCS Desktop, but failed as the sysconfig GUI states it could not find the installed sdk simplelink_cc2640r2_sdk_3_30_00_20, and the sysconfig does not work.

    the sysconfig_cli.bat does not have argument to list the products the sysconfig found and could be used for --product..

  • after days of failure, the sysconfig GUI now could find the simplelink_cc2640r2_sdk@3.30.00.20 and open the created syscfg file。

    but the build project still failed with error mesage "Invalid argument '--product': No product with name "simplelink_cc2640r2_sdk" and version "3.30.00.20" found":

    **** Build of configuration Debug for project leak_CC2640R2_RSM_tirtos_ccs ****
    
    "D:\\ti\\ccs920\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../leak.syscfg"
    Invoking: SysConfig
    "D:/ti/ccs920/ccs/utils/sysconfig/sysconfig_cli.bat" -o "syscfg" "../leak.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.
     
    subdir_rules.mk:12: recipe for target 'build-262360641-inproc' failed
    Invalid argument '--product': No product with name "simplelink_cc2640r2_sdk" and version "3.30.00.20" found

  • Hi 

    It seems that when you add the .syscfg file and CCS set up the project to use this file, one flag in the SysConfig properties is not set up correctly

    You will be able to use SysConfig with these steps:

    1. Right click the project and go into properties
    2. Navigate to Build - SysConfig
    3. Press "Edit flags..." in the bottom right
    4. Make the flags be the following:

      -s "${INHERITED_SYSCONFIG_MANIFESTS}" -s ${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/.metadata/product.json" -o "syscfg" 

    5. Save and close the properties.

    Regards,
    Vegard

  • this works, thank you very much!