“线程:C2000WARE, sysconfig”中讨论的其它部件
您好,
我正在使用 CSS 11.1.0.00011以及 C2000Ware 4.00.00.00。
我将 sysconfig 集成到了我的项目中。 在 sysconfig 视图中,我指定了相应的设备,软件包和部件。 例如:
/**
* 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";
根据 CSS/Csysconfig 的生成,默认参数被插入 syscfg-file:@clargs --device“F28002x”--package“80QFP”--part“F28002x_80QFP”--product“C2000WARE@3.01.00.00”
但是,调用 sysconfig 生成时这些参数似乎被忽略(忽略为代中忽略,我不希望它们在 CLI 调用中显示):
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 [...]
当然,我可以在项目的内部版本配置中指定命令行参数,但这将是多余的。
这是一个错误,还是我在做/期望出错?
谢谢,
安德烈亚斯
