Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to allow LP_EM_CC1354P10_1 build #34069

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions examples/lock-app/cc13x4_26x4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ Ninja to build the executable.

```

- If your target Launchpad is the cc1354P10_1, then you will need to update
the args.gni accordingly:

```
--- a/examples/lock-app/cc13x4_26x4/args.gni
+++ b/examples/lock-app/cc13x4_26x4/args.gni
@@ -20,7 +20,7 @@ ti_simplelink_sdk_target = get_label_info(":sdk", "label_no_toolchain")
ti_simplelink_sysconfig_target =
get_label_info(":sysconfig", "label_no_toolchain")

-ti_simplelink_board = "LP_EM_CC1354P10_6"
+ti_simplelink_board = "LP_EM_CC1354P10_1"
```

- Run the build to produce a default executable. By default on Linux both the
TI SimpleLink SDK and Sysconfig are located in a `ti` folder in the user's
home directory, and you must provide the absolute path to them. For example
Expand Down
5 changes: 3 additions & 2 deletions examples/lock-app/cc13x4_26x4/chip.syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,16 @@ ble.numOfAdvSets = 1;
ble.lockProject = true;
ble.oneLibSizeOpt = true;
ble.maxPDUSize = 255;
ble.radioConfig.codeExportConfig.$name = "ti_devices_radioconfig_code_export_param1";
ble.radioConfig.codeExportConfig.$name = "ti_devices_radioconfig_code_export_param0";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is required to avoid the following build error.

error: /ti/ble5stack/ble radioConfig.codeExportConfig.$name: Duplicate name: 'ti_devices_radioconfig_code_export_param1' also exists on instance(s) of Code Export Configuration
error: /ti/devices/radioconfig/custom radioConfigieee154.codeExportConfig.$name: Duplicate name: 'ti_devices_radioconfig_code_export_param1' also exists on instance(s) of Code Export Configuration

The build for LP_EM_CC1454P10_6 only worked as something in the redesign of syscfg renamed the ble.radioConfig.codeExportConfig.$name when setting ble.rfDesign to LP_EM_CC1354P10_6.

ti_devices_radioconfig_code_export_param0 seem a more correct name as the ble codeExportConfig is set to this for other ble examples.

Below was used to debug and confirm this.

+console.log("RFCustom.radioConfigieee154p10.codeExportConfig: ", ble.radioConfig.codeExportConfig.$name);
 /* BLE */
 ble.addressMode                                           = "ADDRMODE_RP_WITH_PUBLIC_ID";
 ble.maxConnNum                                            = 1;
@@ -194,6 +195,7 @@ ble.lockProject                                           = true;
 ble.oneLibSizeOpt                                         = true;
 ble.maxPDUSize                                            = 255;
 ble.radioConfig.codeExportConfig.$name                    = "ti_devices_radioconfig_code_export_param1";
+console.log("ble.radioConfig.codeExportConfig.$name         : ", ble.radioConfig.codeExportConfig.$name);
 ble.connUpdateParamsPeripheral.$name                      = "ti_ble5stack_general_ble_conn_update_params0";
 ble.connUpdateParamsPeripheral.reqMinConnInt               = 30;
 ble.connUpdateParamsPeripheral.reqMaxConnInt               = 50;
@@ -202,6 +204,8 @@ ble.advSet1.$name                                         = "ti_ble5stack_broadc
 ble.advSet1.advParam1.$name                               = "ti_ble5stack_broadcaster_advertisement_params0";
 
 ble.rfDesign                                 = "LP_EM_CC1354P10_6";
+console.log("ble.radioConfig.codeExportConfig.$name         : ", ble.radioConfig.codeExportConfig.$name)
+error()

Generating an output of:

RFCustom.radioConfigieee154p10.codeExportConfig:  ti_devices_radioconfig_code_export_param0
ble.radioConfig.codeExportConfig.$name         :  ti_devices_radioconfig_code_export_param1
ble.radioConfig.codeExportConfig.$name         :  ti_devices_radioconfig_code_export_param0

ble.connUpdateParamsPeripheral.$name = "ti_ble5stack_general_ble_conn_update_params0";
ble.connUpdateParamsPeripheral.reqMinConnInt = 30;
ble.connUpdateParamsPeripheral.reqMaxConnInt = 50;

ble.advSet1.$name = "ti_ble5stack_broadcaster_advertisement_set0";
ble.advSet1.advParam1.$name = "ti_ble5stack_broadcaster_advertisement_params0";

ble.rfDesign = "LP_EM_CC1354P10_6";
const boardName = system.deviceData.board.name;
ble.rfDesign = boardName;

ble.thorPg = 2;
/* DMM */
Expand Down
Loading