Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Hi i am having a issue with sysconfig when trying to add an LED when using syscfg 1.18
TypeError: Cannot read properties of undefined (reading 'components')
Hide Details...
at scriptFunc (D:\csstudio\empty_driverlib_project_cpp\c2000.syscfg:18:42) at cb (webpack:///src/pinmux/services/scripting/runScript.ts:112:7) at Object.withDeprecatedAccess (webpack:///src/pinmux/services/deprecatedAccessGuard.ts:14:10) at Object.runAsUserScript (webpack:///src/pinmux/services/scripting/scriptingGuard.ts:61:3) at iteratee (webpack:///src/pinmux/services/scripting/runScript.ts:110:5) at baseEach (webpack:///node_modules/lodash/lodash.js:530:11) at Function.each (webpack:///node_modules/lodash/lodash.js:9409:52) at iteratee (webpack:///src/pinmux/services/scripting/runScript.ts:108:6) at baseEach (webpack:///node_modules/lodash/lodash.js:530:11) at Function.la (webpack:///node_modules/lodash/lodash.js:9409:52)
i am not sure if I attached the c2000.syscfg file so i added the code snippet just in case
/**
* 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 --board "/boards/LAUNCHXL_F280049C" --context "system" --product "C2000WARE@5.00.00.00"
* @versions {"tool":"1.18.0+3266"}
*/
/**
* Import the modules used in this configuration.
*/
const led = scripting.addModule("/driverlib/board_components/led", {}, false);
const led1 = led.addInstance();
/**
* Write custom configuration values to the imported modules.
*/
led1.$name = "myBoardLED0";
led1.$hardware = system.deviceData.board.components.LED5;
/**
* Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
led1.gpio.gpioPin.$suggestSolution = "boosterpack2.52";
the project was created from a project import of empy_driverlib_project_cpp in the driverlib c2000ware example folder
