Skip to content

Commit 7b5d33c

Browse files
author
Sean Lyons
committed
SPP projects building in CCS
1 parent 73d1ff0 commit 7b5d33c

14 files changed

+170
-109
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
These examples and demos are for **TI SimpleLink CC26x2 SDK 2.10.00.44**
1616

1717
This repository contains *Bluetooth®* 5 sample applications for
18-
Texas Instruments' SimpleLink CC2640R2 SDK. These examples have not been
18+
Texas Instruments' SimpleLink CC26x2 SDK. These examples have not been
1919
validated as production-ready.
2020

2121
**Do not** use GitHub's bug tracking feature for support. For inquiries, see the
@@ -36,7 +36,19 @@ For examples for other SDK versions and platforms, see table below.
3636
</tr>
3737
<tr>
3838
<td>
39-
<a href = "https://github.com/ti-simplelink/ble_examples/tree/simplelink_sdk-1.60">TI SimpleLink CC26x2 SDK 1.60.00.43(current)</a>
39+
<a href = "https://github.com/ti-simplelink/ble_examples/tree/simplelink_sdk-2.10">TI SimpleLink CC26x2 SDK 2.10.00.44(current)</a>
40+
</td>
41+
<td>
42+
<ul>
43+
<li><a href="#full-duplex-bidirectional-audio-demo">Full Duplex Bidirectional Audio Demo (Central/Peripheral)</li>
44+
<li><a href="#i2s-echo">I2S Echo</li>
45+
<li><a href="#serial-port-profile-spp">Serial Port Profile</li>
46+
</ul>
47+
</td>
48+
</tr>
49+
<tr>
50+
<td>
51+
<a href = "https://github.com/ti-simplelink/ble_examples/tree/simplelink_sdk-1.60">TI SimpleLink CC26x2 SDK 1.60.00.43</a>
4052
</td>
4153
<td>
4254
<ul>
@@ -204,11 +216,7 @@ environment variables.
204216

205217
Similar to the SimpleLink CC26x2 SDK, the examples in this repository support
206218
the CCS and IAR toolchains. Please pay careful attention to versions of these
207-
tools, the supported version are listed below. Using a non supported version is
208-
untested and may result in unexpected behavior.
209-
210-
* CCS v7.04.00 with TI ARM Compiler v16.09.06LTS
211-
* IAR for ARM v8.11.4
219+
tools, please refer to the release notes for supported versions.
212220

213221
For more information on toolchain setup, please refer to our
214222
[FAQ page](docs/faq.md).

examples/rtos/CC26X2R1_LAUNCHXL/ble5apps/peripheral_bidirectional_audio/src/app/peripheral_bidirectional_audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static void PeripheralAudio_init(void)
475475
uint16_t paramUpdateDecision = DEFAULT_PARAM_UPDATE_REQ_DECISION;
476476

477477
// Pass all parameter update requests to the app for it to decide
478-
GAP_SetParamValue(GAP_PARAM_LINK_UPDATE_DECISION, &paramUpdateDecision);
478+
GAP_SetParamValue(GAP_PARAM_LINK_UPDATE_DECISION, paramUpdateDecision);
479479
}
480480

481481
// Setup the GAP Bond Manager. For more information see the GAP Bond Manager

examples/rtos/CC26X2R1_LAUNCHXL/ble5apps/peripheral_bidirectional_audio/tirtos/ble_debug.cfg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
4040
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4141

42-
******************************************************************************
43-
Release Name: simplelink_cc26x2_sdk_1_60_00_40
44-
Release Date: 2018-01-04 19:48:37
4542
*****************************************************************************/
4643

4744

@@ -103,7 +100,7 @@ Defaults.common$.namedModule = true;
103100
/* Compile out all Assert's */
104101
//Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
105102
106-
/* Allow Mod_create() and Mod_construct() but not delete() or destruct() */
103+
/* Allow Mod_create() and Mod_construct() as well as delete() and destruct() */
107104
Defaults.common$.memoryPolicy = Types.DELETE_POLICY;
108105
109106

examples/rtos/CC26X2R1_LAUNCHXL/ble5apps/peripheral_bidirectional_audio/tirtos/ble_release.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
4040
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4141

42-
******************************************************************************
43-
Release Name: simplelink_cc26x2_sdk_1_60_00_40
44-
Release Date: 2018-01-04 19:48:37
4542
*****************************************************************************/
4643

4744

examples/rtos/CC26X2R1_LAUNCHXL/ble5apps/peripheral_bidirectional_audio/tirtos/ccs/ble5_peripheral_bidirectional_audio_cc26x2r1lp_stack_library.projectspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
>
2323

2424
<!-- Project properties -->
25-
<property name="products" value="com.ti.rtsc.XDCtools:3.50.04.43;com.ti.SIMPLELINK_CC26X2_SDK:2.10.00.44"/>
25+
<property name="products" value="com.ti.rtsc.XDCtools:3.50.05.12;com.ti.SIMPLELINK_CC26X2_SDK:2.10.00.44"/>
2626
<property name="target" value="ti.targets.arm.elf.M4F"/>
2727
<property name="platform" value="ti.platforms.simplelink:CC2642R1F"/>
2828
<property name="buildProfile" value="release"/>

examples/rtos/CC26X2R1_LAUNCHXL/ble5apps/spp_ble_client/src/app/spp_ble_client.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ static void SPPBLEClient_pairStateCb(uint16_t currentConnHandle, uint8_t state,
356356

357357
void SPPBLEClient_startDiscHandler(UArg a0);
358358
static void SPPBLEClient_keyChangeHandler(uint8 keys);
359+
#if defined(BLE_V42_FEATURES) && (BLE_V42_FEATURES & PRIVACY_1_2_CFG)
359360
static void SPPBLEClient_clockHandler(UArg arg);
361+
#endif //defined(BLE_V42_FEATURES) && (BLE_V42_FEATURES & PRIVACY_1_2_CFG)
360362

361363
static uint8_t SPPBLEClient_enqueueMsg(uint8_t event, uint8_t status,
362364
uint8_t *pData);
@@ -438,9 +440,9 @@ void SPPBLEClient_blinkLed(uint8_t led, uint8_t nBlinks)
438440

439441
for (i=0; i<nBlinks; i++)
440442
{
441-
PIN_setOutputValue(hGpioPin, led, Board_LED_ON);
443+
PIN_setOutputValue(hGpioPin, led, 1);
442444
delay_ms(BLINK_DURATION);
443-
PIN_setOutputValue(hGpioPin, led, Board_LED_OFF);
445+
PIN_setOutputValue(hGpioPin, led, 0);
444446
delay_ms(BLINK_DURATION);
445447
}
446448
}
@@ -2063,6 +2065,7 @@ void SPPBLEClient_enqueueUARTMsg(uint8_t event, uint8_t *data, uint8_t len)
20632065
}
20642066
}
20652067

2068+
#if defined(BLE_V42_FEATURES) && (BLE_V42_FEATURES & PRIVACY_1_2_CFG)
20662069
/*********************************************************************
20672070
* @fn SPPBLEClient_clockHandler
20682071
*
@@ -2089,6 +2092,7 @@ void SPPBLEClient_clockHandler(UArg arg)
20892092
break;
20902093
}
20912094
}
2095+
#endif //defined(BLE_V42_FEATURES) && (BLE_V42_FEATURES & PRIVACY_1_2_CFG)
20922096

20932097
/*********************************************************************
20942098
* @fn SPPBLEClient_enqueueMsg

examples/rtos/CC26X2R1_LAUNCHXL/ble5apps/spp_ble_client/tirtos/ccs/ble5_spp_ble_client_cc26x2r1lp_app.projectspec

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<!-- Project properties -->
2020
<property name="type" value="rtsc"/>
21-
<property name="products" value="com.ti.SIMPLELINK_CC26X2_SDK:1.60.00.43"/>
21+
<property name="products" value="com.ti.SIMPLELINK_CC26X2_SDK:2.10.00.44"/>
2222
<property name="xdcToolsVersion" value="3.50.05.12"/>
2323
<property name="target" value="ti.targets.arm.elf.M4F"/>
2424
<property name="platform" value="ti.platforms.simplelink:CC2642R1F"/>
@@ -53,8 +53,8 @@
5353
-I${SRC_COMMON_DIR}/heapmgr
5454
-I${SRC_COMMON_DIR}/icall/src/inc
5555
-I${SRC_COMMON_DIR}/osal/src/inc
56-
-I${SRC_BLE_DIR}/profiles/serial_port
57-
-I${SRC_BLE_DIR}/sdi/src/inc
56+
-I${BLE_GITHUB_ROOT}/source/ti/ble5stack/profiles/serial_port
57+
-I${BLE_GITHUB_ROOT}/source/ti/ble5stack/sdi/src/
5858
-I${SRC_COMMON_DIR}/services/src/saddr
5959
-I${SRC_COMMON_DIR}/services/src/sdata
6060
-I${SRC_BLE_DIR}/npi/src
@@ -108,23 +108,22 @@
108108
-I${SRC_COMMON_DIR}/heapmgr
109109
-I${SRC_COMMON_DIR}/icall/src/inc
110110
-I${SRC_COMMON_DIR}/osal/src/inc
111-
-I${EXAMPLE_BLE_ROOT}/../../../../../source/ti/ble5stack/profiles/serial_port
111+
-I${BLE_GITHUB_ROOT}/source/ti/ble5stack/profiles/serial_port
112+
-I${BLE_GITHUB_ROOT}/source/ti/ble5stack/sdi/src/
112113
-I${SRC_COMMON_DIR}/services/src/saddr
113114
-I${SRC_COMMON_DIR}/services/src/sdata
114115
-I${SRC_BLE_DIR}/npi/src
115-
-I${EXAMPLE_BLE_ROOT}/../../../../../source/ti/ble5stack/sdi/src/
116-
-I${SRC_BLE_DIR}/../../../source/ti/devices/cc13x2_cc26x2"
116+
-I${SRC_COMMON_DIR}/services/src/nv
117+
-I${SRC_COMMON_DIR}/services/src/nv/cc26xx
118+
-I${SRC_BLE_DIR}/../../../source/ti/devices/cc13x2_cc26x2_v1"
117119
linkerBuildOptions="
118-
-l${WORKSPACE_LOC}/ble5_spp_ble_client_cc26x2r1lp_stack_library/FlashROM_Library/ble_r2.symbols
119-
-l${SRC_BLE_DIR}/../../../source/ti/devices/cc13x2_cc26x2/driverlib/bin/ccs/driverlib.lib
120-
-l${SRC_BLE_DIR}/../../../kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x2.aem4f
121-
-l${SRC_BLE_DIR}/../../../source/ti/drivers/lib/drivers_cc26x2.aem4f
122-
-l${SRC_BLE_DIR}/../../../source/ti/drivers/rf/lib/rf_multiMode_cc26x2.aem4f
120+
-l${SRC_BLE_DIR}/../../../source/ti/devices/cc13x2_cc26x2_v1/driverlib/bin/ccs/driverlib.lib
121+
-l${SRC_BLE_DIR}/../../../kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x2_v1.aem4f
122+
-l${SRC_BLE_DIR}/../../../source/ti/drivers/lib/drivers_cc26x2_v1.aem4f
123+
-l${SRC_BLE_DIR}/../../../source/ti/drivers/rf/lib/rf_multiMode_cc26x2_v1.aem4f
123124
-l${SRC_BLE_DIR}/../../../source/ti/display/lib/display.aem4f
124-
-l${SRC_BLE_DIR}/../../../source/ti/mw/lcd/lib/lcd.aem4f
125-
-l${SRC_BLE_DIR}/../../../source/ti/grlib/lib/grlib.aem4f
126-
-l${SRC_BLE_DIR}/../../../source/ti/drivers/pdm/lib/pdm_cc26x2.aem4f
127-
125+
-l${SRC_BLE_DIR}/../../../source/ti/grlib/lib/ccs/m4f/grlib.a
126+
-l${SRC_BLE_DIR}/../../../source/ti/drivers/pdm/lib/pdm_cc26x2_v1.aem4f
128127
-l${WORKSPACE_LOC}/ble5_spp_ble_client_cc26x2r1lp_stack_library/FlashROM_Library/lib_linker.cmd
129128
-l${WORKSPACE_LOC}/ble5_spp_ble_client_cc26x2r1lp_stack_library/FlashROM_Library/ble5_spp_ble_client_cc26x2r1lp_stack_library.lib
130129
-l${SRC_BLE_DIR}/common/cc26xx/ccs/cc13x2_cc26x2_app.cmd
@@ -139,8 +138,9 @@
139138

140139

141140
<pathVariable name="EXAMPLE_BLE_ROOT" path="../.." scope="project"/>
142-
<pathVariable name="SRC_BLE_DIR" path="C:/ti/simplelink_cc26x2_sdk_1_60_00_43/source/ti/ble5stack" scope="project"/>
143-
<pathVariable name="SRC_COMMON_DIR" path="${SRC_BLE_DIR}/../../../source/ti/ble5stack" scope="project"/>
141+
<pathVariable name="SRC_BLE_DIR" path="${COM_TI_SIMPLELINK_CC26X2_SDK_INSTALL_DIR}/source/ti/ble5stack" scope="project"/>
142+
<pathVariable name="SRC_COMMON_DIR" path="${COM_TI_SIMPLELINK_CC26X2_SDK_INSTALL_DIR}/source/ti/ble5stack" scope="project"/>
143+
<pathVariable name="BLE_GITHUB_ROOT" path="../../../../../../.." scope="project"/>
144144

145145
<!-- Application Folder -->
146146
<file path="SRC_BLE_DIR/common/cc26xx/board_key.c" openOnCreation="" excludeFromBuild="false" action="copy" targetDirectory="Application" createVirtualFolders="true" applicableConfigurations="FlashROM_Release, FlashROM_Debug"/>
@@ -155,8 +155,8 @@
155155
<file path="SRC_BLE_DIR/common/cc26xx/ecc/ECCROMCC26XX.h" openOnCreation="" excludeFromBuild="false" action="link" targetDirectory="Drivers/ECC" createVirtualFolders="true" applicableConfigurations="FlashROM_Release, FlashROM_Debug"/>
156156

157157
<!-- Drivers/TRNG Folder -->
158-
<file path="SRC_COMMON_DIR/hal/src/target/_common/TRNGCC26XX.c" openOnCreation="" excludeFromBuild="false" action="link" targetDirectory="Drivers/TRNG" createVirtualFolders="true" applicableConfigurations="FlashROM_Release"/>
159-
<file path="SRC_COMMON_DIR/hal/src/target/_common/TRNGCC26XX.h" openOnCreation="" excludeFromBuild="false" action="link" targetDirectory="Drivers/TRNG" createVirtualFolders="true" applicableConfigurations="FlashROM_Release"/>
158+
<file path="SRC_COMMON_DIR/hal/src/target/_common/TRNGCC26XX.c" openOnCreation="" excludeFromBuild="false" action="link" targetDirectory="Drivers/TRNG" createVirtualFolders="true" applicableConfigurations="FlashROM_Release, FlashROM_Debug"/>
159+
<file path="SRC_COMMON_DIR/hal/src/target/_common/TRNGCC26XX.h" openOnCreation="" excludeFromBuild="false" action="link" targetDirectory="Drivers/TRNG" createVirtualFolders="true" applicableConfigurations="FlashROM_Release, FlashROM_Debug"/>
160160

161161
<!-- Drivers/NV Folder -->
162162
<file path="SRC_BLE_DIR/services/src/nv/cc26xx/nvoctp.c" openOnCreation="" excludeFromBuild="false" action="link" targetDirectory="Drivers/nv" createVirtualFolders="true" applicableConfigurations="FlashROM_Release, FlashROM_Debug"/>
@@ -208,6 +208,6 @@
208208
<file path="EXAMPLE_BLE_ROOT/tirtos/ccs/defines/ble5_spp_ble_client_cc26x2r1lp_app_FlashROM_Debug.opt" openOnCreation="" excludeFromBuild="false" action="copy" targetDirectory="TOOLS/defines" createVirtualFolders="true" applicableConfigurations="FlashROM_Debug"/>
209209
<file path="EXAMPLE_BLE_ROOT/tirtos/ble_release.cfg" openOnCreation="" excludeFromBuild="false" action="copy" targetDirectory="TOOLS" createVirtualFolders="true" applicableConfigurations="FlashROM_Release"/>
210210
<file path="EXAMPLE_BLE_ROOT/tirtos/ble_debug.cfg" openOnCreation="" excludeFromBuild="false" action="copy" targetDirectory="TOOLS" createVirtualFolders="true" applicableConfigurations="FlashROM_Debug"/>
211-
<file path="SRC_BLE_DIR/common/cc26xx/ccs/cc13x2_cc26x2_v1_app.cmd" openOnCreation="" excludeFromBuild="true" action="link" targetDirectory="TOOLS" createVirtualFolders="true" applicableConfigurations="FlashROM_Release"/>
211+
<file path="SRC_BLE_DIR/common/cc26xx/ccs/cc13x2_cc26x2_app.cmd" openOnCreation="" excludeFromBuild="true" action="link" targetDirectory="TOOLS" createVirtualFolders="true" applicableConfigurations="FlashROM_Release, FlashROM_Debug"/>
212212
</project>
213213
</projectSpec>

0 commit comments

Comments
 (0)