Other Parts Discussed in Thread: , SYSCONFIG
Tool/software:
Hello,
I am developing an application for the CC2652R. I started with the dmm_zr_light_remote_display OAD application for the CC2652R7 launchpad and got it working on the Launchpad. Now I would like to port the application to make it work on our custom board, which uses a CC2652R1FRGZ. Is there any documentation that walks through the process of porting an application from one board to another?
Taking a shot in the dark, I tried the following steps:
1. I created a new board support file in <stack>/ti/boards/.meta and called it cc26x2_prod.syscfg.json
2. I updated the values in the JSON to reflect the actual pin assignments on our hardware. I changed the "device" field to "CC2652R1FRGZ".
3. I created a new .syscfg file and this is where things start to get icky. The comment at the top of the file has an @cliArgs and a @v2CliArgs tags. I changed these from
* @cliArgs --board "/ti/boards/LP_CC2652R7" --device "CC2652R7RGZ" --part "Default" --package "RGZ" --rtos "tirtos7" --product "simplelink_cc13xx_cc26xx_sdk@8.30.01.01"
* @v2CliArgs --device "CC2652R7" --package "VQFN (RGZ)" --board "/ti/boards/LP_CC2652R7" --rtos "tirtos7" --product "simplelink_cc13xx_cc26xx_sdk@8.30.01.01"
to
* @cliArgs --board "/ti/boards/cc13x2_cc26x2" --device "CC2652R1FRGZ" --part "Default" --package "RGZ" --rtos "tirtos7" --product "simplelink_cc13xx_cc26xx_sdk@8.30.01.01"
* @v2CliArgs --device "CC2652R1FRGZ" --package "RGZ" --board "/ti/boards/cc13x2_cc26x2" --rtos "tirtos7" --product "simplelink_cc13xx_cc26xx_sdk@8.30.01.01"
I have tried changing the "board" and "device" values to a bunch of different things. The "device" seems to be valid and working, but I am having immediate problems with the "board". When I try to run sysconfig with this configuration, I get the following error.
Ignoring the following missing components: /ti/ti_sidewalk/ti_sidewalk.component.js, /ti/ti_wisunfan/ti_wisunfan.component.js, /ti/ti_wisunfan/wsms/wsms.component.js
Error: Exception occurred calling scripting.addModule()
at Object.addModule (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\src\pinmux\services\scripting\scriptingGuard.ts:46:10)
at scriptFunc (C:\Development\WattIQ\firmware_4xx_8.30\workspace\dmm_zr_light_remote_display.syscfg:12:32)
at cb (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\src\pinmux\services\scripting\runScript.ts:113:7)
at withDeprecatedAccess (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\src\pinmux\services\deprecatedAccessGuard.ts:14:10)
at runAsUserScript (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\src\pinmux\services\scripting\scriptingGuard.ts:61:3)
at iteratee (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\src\pinmux\services\scripting\runScript.ts:111:5)
at baseEach (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\node_modules\lodash\lodash.js:530:11)
at Function.each (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\node_modules\lodash\lodash.js:9409:52)
at iteratee (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\src\pinmux\services\scripting\runScript.ts:109:6)
at Pt (C:\ti\sysconfig_1.21.1\dist\webpack:\sysconfig\node_modules\lodash\lodash.js:530:11)
Caused by: Error: RadioConfig: Unknown board [cc13x2_cc26x2]
I have a folder called cc13x2_cc26x2 in source/ti/boards, and source/ti/devices. How can I get around this problem? What should the board be set to?
Also, if there is any general documentation on how to port a project from one board to another, that would be very helpful. Am I on the right track?