EasyManuals Logo
Home>Texas Instruments>Microcontrollers>CC2540DK-MINI

Texas Instruments CC2540DK-MINI Software Developers Guide

Texas Instruments CC2540DK-MINI
162 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #86 background imageLoading...
Page #86 background image
Porting From Earlier BLE-Stack Versions
www.ti.com
86
SWRU271HOctober 2010Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
General Information
9.3.3 Porting BLEv1.3.2 Projects to BLEv1.4.0
1. Move (or Copy) the project files from C:\Texas Instruments\BLE-CC254x-
1.3.2\Projects\ble\$PROJECT$ to C:\Texas Instruments\BLE-CC254x- 1.3\Projects\ble\$PROJECT$
where $PROJECT$ is your project folder.
2. If you modifed any files from C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\Profiles, you will need
to merge your changes with the new 1.4.0 version.
3. Open your project (now in the 1.4.0 folder) with IAR 8.20.
4. When prompted, choose yes to convert for use with new version.
5. Compile and save your project.
You should be aware of two project-specific changes:
The functionality of the PLUS_BROADCASTER define has changed so that the
peripheralBroadcaster.c and peripheralBraodcaster.h files are no longer needed. For information on
how to accommodate this, see the modified simpleBLEperipheral project.
Advertising will now begin again after a connection is dropped by default. To remove this, comment out
line 1021 of peripheral.c (shown below):
VOID osal_set_event( gapRole_TaskID, START_ADVERTISING_EVT );
All UUID's are now stored in centralized locations: gatt_uuid.h and gatt_profile_uuid.h.
Also, the following API's have changed:
extern bStatus_t GAP_TerminateLinkReq( uint8 taskID, uint16 connectionHandle, uint8 reason );
the third parameter "reason" has been added to allow the application to indicate the termination
reason to the connected device
The GAPBondMgr_ProcessGAPMsg( gapEventHdr_t *pMsg ) function is no longer a void-type
function. It returns a uint8 that indicates TRUE if safe to deallocate the incoming GAP message and
FALSE otherwise
9.3.4 Porting BLEv1.2 Projects to BLEv1.3
1. Move (or Copy) the project files from C:\Texas Instruments\BLE-CC254x-1.2\Projects\ble to C:\Texas
Instruments\BLE-CC254x-1.3\Projects\ble.
2. Move (or Copy) the necessary profiles from C:\Texas Instruments\BLE-CC254x-
1.3\Projects\ble\Profiles to C:\Texas Instruments\BLE-CC254x- 1.3\Projects\ble\Profiles.
3. Open the project and in the LIB group of the project:
a. Remove all files.
b. Add CC254x_BLE.lib (or GAP role specific, for a more memory optimized library).
c. Add CC254x_BLE_HCI_TL_None.lib for SoC solutions.
4. Add NPI group (Right click in the workspace > "Add" > "Add Group..."). Add files npi.h, npi.c (npi_uart.c
and npi_spi.c as well if needed).
5. Go to "Project" > "Options" > "General Options" > "Target" > "Number of virtual registers": Set number
to 16.
6. Go to "Project" > "Options" > "C/C++ Compiler" > "Additional include directories": Add the line
$PROJ_DIR$\..\..\common\npi\npi_np
7. Done

Table of Contents

Other manuals for Texas Instruments CC2540DK-MINI

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments CC2540DK-MINI and is the answer not in the manual?

Texas Instruments CC2540DK-MINI Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2540DK-MINI
CategoryMicrocontrollers
LanguageEnglish

Related product manuals