[LAUNCHXL-CC2650] Run the SDK built-in routine
[Copy link]
1. Project import
Open CCS, select Import... in the File menu bar.
In the pop-up dialog box, select CCS Projects in Code Composer Studio and select Next.
In the Import CCS Projects dialog box, click Browse...
In the pop-up Select Search Directory, select the path of the example: C:\ti\simplelink\ble_sdk_2_02_06_07\examples\cc2650lp. Select the project to be imported.
Take the simple_broadcaster project as an example, double-click the simple_broadcaster folder.
Select the ccs folder, and then click Select Folder.
In the Import CCS Projects window, check both the app and stack projects, and check Copy projects into workspace. Click Finish.
You can see the two projects just imported in the Project Explorer window of CCS.
At this point, the projects have been imported into CCS.
2. Compile and download
Click the project names of app and stack, select the projects, and then click Compile.
After the compilation is completed, it is found that there are errors in the stack project.
Double-click the error prompt in the probloms window to find the error.
It is found that there is an error in the line return ( (unsigned char*)ltoa( l, (char *)buf ) );.
Right-click the ltoa function, select Open Declaration, and find the function declaration.
In the function declaration, the function needs to have 3 parameters
Return to the osal.c file and add the missing function.
After adding, compile the stack project. There will be no errors after the compilation.
Connect to the development board and burn the two project programs into the development board respectively.
After burning, restart the development board. Open the APP on the mobile phone and you can scan the Bluetooth of SimpleBLEBroadcaster.
Click Connect. After a while, it will prompt that the connection has timed out, indicating that the Bluetooth broadcast is not connectable.
|