Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
Hi,
I am using CSS 11.1.0.00011 as well as C2000Ware 4.00.00.00.
I integrated a SysConfig into my project. In the SysConfig view I specified the appropriate device, package and part. E.g.:
/** * These arguments were used when this file was generated. They will be automatically applied on subsequent loads * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments. * @cliArgs --device "F28002x" --package "80QFP" --part "F28002x_80QFP" --product "C2000WARE@3.01.00.00" * @versions {"tool":"1.11.0+2225"} */ /** * Import the modules used in this configuration. */ const can = scripting.addModule("/driverlib/can.js", {}, false); const can1 = can.addInstance(); const gpio = scripting.addModule("/driverlib/gpio.js", {}, false); const gpio1 = gpio.addInstance(); /** * Write custom configuration values to the imported modules. */ can1.$name = "CAN1"; can1.msgObjsUsed = [1]; can1.can.$assign = "CANA"; can1.can.can_rxPin.$assign = "ball.38"; can1.can.can_txPin.$assign = "ball.49"; can1.msgObj1.$name = "msgObj0"; can1.msgObj1.msgID = 123; can1.msgObj1.flags = ["CAN_MSG_OBJ_RX_INT_ENABLE","CAN_MSG_OBJ_USE_ID_FILTER"]; gpio1.direction = "GPIO_DIR_MODE_OUT"; gpio1.qualMode = "GPIO_QUAL_ASYNC"; gpio1.writeInitialValue = true; gpio1.$name = "CAN1_SILENTMODE"; gpio1.gpioPin.$assign = "ball.3";
As generated by CSS/Sysconfig, default parameters are inserted into the syscfg-file: @cliArgs --device "F28002x" --package "80QFP" --part "F28002x_80QFP" --product "C2000WARE@3.01.00.00"
However, these parameters seem to be ignored when calling the SysConfig generation (ignored as ignored in generation, I do not expect them to show up in the CLI call):
Building file: "../LAUNCHXL-F280025C.syscfg"
Invoking: SysConfig
"C:/ti/ccs1110/ccs/utils/sysconfig_1.11.0/sysconfig_cli.bat" -s "C:/ti/C2000Ware_4_00_00_00/.metadata/sdk.json" -d "F28002x" --script "C:/_repos/arculus/sw/03_SW_Component/arculus_bms/LAUNCHXL-F280025C.syscfg" -o "syscfg" --compiler ccs
Running script...
subdir_rules.mk:9: recipe for target 'build-2008392257' failed
Error: cannot set '$assign' to 'ball.38': No option named ball.38 defined, valid options are
[...]
Of course, I could specify the command line parameters in the build config of my project, however this would be redundant.
Is this a bug or am I doing/expecting something wrong?
Thanks,
Andreas