Example: confidence

TI Dual-mode Bluetooth Stack on STM32F4 MCUs …

Dual-ModeBluetooth Stackon STM32F4 MCUsUser's GuideLiteratureNumber:SWRU428 September20152 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedTableof the the FlashingtheBluetoothCode(STM3240G-EVAL). . +Bluetoothlow September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedList of FiguresList of Figures1 Overviewof ,CC256X-STADAPT,and ,CC256X-STADAPT,and GO September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUsUser's GuideSWRU428 September2015 Dual-ModeBluetooth Stackon STM32F4 MCUsTI s dual-modeBluetooth stackon STM32F4 mcus (CC256 XSTBTBLESW)softwareforBluetooth+Bluetoot hlow energyenablesthe STM32 ARM Cortex -M4 processorand includessinglemodeanddual mode, fully qualified(QDID69887and QDID69886)and providessimplecommand-lineapplicationsto helpspeeddevelopmentandcan be MFI a completeevaluationsolution,the CC256 XSTBTBLESW worksdirectlywith the certifiedandroyalty-free(CC256 XSTBTBLESW).

Dual-Mode Bluetooth® Stack on STM32F4 MCUs User's Guide Literature Number: SWRU428 September 2015

Tags:

  Guide, Dome, Stack, Bluetooth, Mcus, Stm32f4, Mode bluetooth, 174 stack on stm32f4 mcus

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of TI Dual-mode Bluetooth Stack on STM32F4 MCUs …

1 Dual-ModeBluetooth Stackon STM32F4 MCUsUser's GuideLiteratureNumber:SWRU428 September20152 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedTableof the the FlashingtheBluetoothCode(STM3240G-EVAL). . +Bluetoothlow September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedList of FiguresList of Figures1 Overviewof ,CC256X-STADAPT,and ,CC256X-STADAPT,and GO September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUsUser's GuideSWRU428 September2015 Dual-ModeBluetooth Stackon STM32F4 MCUsTI s dual-modeBluetooth stackon STM32F4 mcus (CC256 XSTBTBLESW)softwareforBluetooth+Bluetoot hlow energyenablesthe STM32 ARM Cortex -M4 processorand includessinglemodeanddual mode, fully qualified(QDID69887and QDID69886)and providessimplecommand-lineapplicationsto helpspeeddevelopmentandcan be MFI a completeevaluationsolution,the CC256 XSTBTBLESW worksdirectlywith the certifiedandroyalty-free(CC256 XSTBTBLESW).

2 Thesoftwareworkswithall CC256xEMboards(CC256 XQFNEM,CC2564 MODNEM,andCC2564 MODAEM)to providea completeBluetoothBR/EDR/LEHCI solution,reducingdesigneffortandenabling a fastertimeto CC256xEM boardsincludeTI's seventh-generationBluetoothcoreand providea product-proven, devicesprovidebest-in-classRFperformance with a transmitpowerand receiveRX sensitivitythat provideapproximatelytwo timestherangeof s power-managementhardwareand softwarealgorithmshelp saveasignificantamountof powerin commonBluetoothBR/EDR/LEmodesof ,KEIL, Visionare registeredtrademarksof a registeredtrademarkof Arm a registeredtrademarkof Bluetoothcertifiedand royaltyfree Offersa fully-qualifiedBluetoothStack(QDID69887a nd QDID69886) Offersthread-safeoperation Supportsboththreaded(RTOS)and non-threaded(No OS) environments(sampleapplicationsuseFreeRT OS) Offersa fully-documentedAPI interface Workswith any STM32F4 MCU Offerssampleapplicationsfor the STM3240G-EVALMCUD evelopmentKit supportedby CC256 XEM-STADAPT Offersthe capabilityto disableor enableprotocolsand profiles SupportsKEIL and IAR September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs3 BluetoothProfilesClassicProfiles: AdvancedAudioDistributionProfile(A2DP):A 3 DPimplementation Audio/VideoRemoteControlProfile(AVRCP) GenericAccessProfile(GAP) GenericAudioand VideoDistributionProfile(GAVDP) HeadsetProfile(HSP) Hands-FreeProfile(HFP) HumanInterfaceDeviceProfile(HID) MessageAccessProfile(MAP) PhonebookAccessProfile(PBAP) SerialPort Profile(SPP)LowEnergyProfiles.

3 AlertNotificationService(ANS) AlertNotificationProfile(ANP) BatteryService(BAS) DeviceInformationService(DIS) FindMe Profile(FMP) GenericAccessProfileService(GAPS) GenericAttributeProfile(GATT) HealthThermometerService(HTS) HealthThermometerProfile(HTP) HeartRateService(HRS) HeartRateProfile(HRP) HumanInterfaceDeviceService(HIDS) HID overGATTP rofile(HOGP) ImmediateAlertService(IAS) Link LossService(LLS) PhoneAlertStateService(PASS) PhoneAlertStateProfile(PASP) ProximityProfile(PXP) TX PowerService(TPS) September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs4 SampleApplicationOverviewThis demonstrationlets you to evaluateTI's CC256xBluetoothdevicewith the CC256x+STM3240G-EVALB luetoothapplicationsoffera rich you use a consoleto sendBluetoothcommands,set up aBluetoothdeviceto acceptconnections,connectto a remoteBluetoothdevice,and communicatethroughBluetooth.

4 Thisdemonstrationincludesone sampleapplicationfor eachprofilewith simplecommand-linesampleapplicationsto Figure1 for an overviewof the Overviewof SoftwareRequirements7 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs5CC256 XSTBTBLESWH ardwareand SoftwareRequirementsA completeevaluationrequiresthe followinghardwareand softwaretoolsfromthe followinglist:Hardware One dual-modeBluetoothCC2564evaluationboard CC256 XQFNEMor CC2564 MODNEMor CC2564 MODAEM One CC256xEMBluetoothadapterkit CC256 XEM-STADAPT One STM32experimenterboard A STM3240G-EVAL boardor STM32F4 DISCOVERY boardSoftware Dual-modeBluetoothstack On STM32F4 mcus :CC256 XSTBTBLESW IDE versions IAR or for ARMor KEIL Vision STSW-LINK004(optional)Figure2 showsthe HardwareCombinationSettingUp the September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs6 SettingUp the HardwareUsingTI s dual-modeBluetoothCC256xsolution(CC256 XQFNEMor CC2564 MODNEM),the STM32 MCUevaluationboard(STM3240G-EVALor STM32F4 DISCOVERY),with the supportof the CC256xEMBluetoothadapterkit (CC256 XEM-STADAPT),developerscanevaluatebothcl assicandBluetoothlowenergycapabilitieswi th the TI Dual-ModeBluetoothstackon set up the hardware,performthe followingsteps:1.

5 Fit the jumpersontothe adaptorboard.(Ensurethe jumpersare set to the moreinformationon the jumperpositionsand connectionsto the specificSTM32boards,see theCC256xEMBluetoothAdapterKit User'sGuide[SWRU417] and theCC256xEMBluetoothAdapterKit QuickStartGuide[SWRU416].)2. Fit the adaptorboardon top of the STM32board.(SeeFigure4 for an exampleusingthe Figure5 for an exampleusingthe STM32F4 DISCOVERY board.)3. Installthe CC256 Xmoduleboardon the showsthe setupfor the the Hardware9 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUsFigure4 showsan exampleof the STM3240G-EVAL,the CC256X-STADAPT,and STM3240G-EVAL,CC256X-STADAPT,and QFNEMC ombinationFigure5 showsan exampleof the STM32F4 DISCOVERY,the CC256X-STADAPT,and STM32F4 DISCOVERY,CC256X-STADAPT,and QFNEMC ombinationSettingUp the September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs7 SettingUp the SoftwareDo the followingto set up the softwarefor the demonstration:1.

6 :Whenyou try to downloadthe SDK,you will be promptedfor a TI you do not haveaTI login,you Createa TI login(if necessary).3. Completeand submitthe :Waitfor TI to approvethe request,TI providesyou with a link todownloadthe ClickDownloadto downloadthe :TI intendstheBluetoothSDKfor use only with the requiredfor the SDKto workwith the Acceptthe :Afteracceptingthe licenseagreement,the SDKinstallstoC:\TI\Connectivity\CC256 XBT\CC256xSTM32 BluetopiaSDK\ \.7. Accessthe SDKthroughStart/Programs/TexasInstrument s/CC256 FlashingtheBluetoothCode(STM3240G-EVAL)S ampleapplicationsfor FreeRTOSand NoOSare availablefor IAR and followinginstructionsto set up applicationson eachIDE NavigatetoC:\TI\Connectivity\CC256 XBT\CC256xSTM32 BluetopiaSDK\ Selectone of the followingsamples: For NoOS,navigateto\NoOS\STM3240G-EVAL\Sampl es\for a list of samples. For FreeRTOS,navigateto\FreeRTOS\STM3240G-EV AL\Samples\for a list of Selectthe demonstrationto load ontothe device.

7 (ThisexampleusesSPPDemo.)4. Navigateto Navigateto :The IAR IDE Flashingthe BluetoothCode(STM3240G-EVAL)11 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs7. SelectDebug. (SeeFigure6.) orReleaseConfigurationfromthe drop-downmenu.(For this example,selectDebug.)Figure6. IAR Drop-downMenu8. SelectDownloadand DebugfromtheProjectdrop-downmenuor clickthePlayicon.(SeeFigure7.)Figure7. Downloadand DebugNOTE:The IDE debugsand loadsthe softwareontothe may take 5 to 10 Flashingthe BluetoothCode(STM3240G-EVAL) September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs9. Clickthe red X in the IDE to stop debugging.(SeeFigure8.)Figure8. DebuggingScreen10. Disconnectthe Reconnectthe PressReseton the PresstheGObuttonin the The GO ButtonKEIL1.

8 NavigatetoC:\TI\Connectivity\CC256 XBT\CC256xSTM32 BluetopiaSDK\ Selectone of the followingsamples: For NoOS,navigateto\NoOS\STM3240G-EVAL\Sampl es\for a list of samples. For FreeRTOS,navigateto\FreeRTOS\STM3240G-EV AL\Samples\for a list of Selectthe demonstrationto load ontothe device.(ThisexampleusesSPPDemo.)4. Navigateto :For RTOS,navigateto Navigateto RVMDKin the :Keil Flashingthe BluetoothCode(STM3240G-EVAL)13 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs7. SelectDebugorReleaseConfigurationfromthe drop-downmenu.(For this example,selectDebug[SeeFigure10].)Figure 10. DebugDropdownMenu8. Right-clickSPPDemo_Debugin the SelectBuildtargetto buildthe code.(SeeFigure11.)NOTE:Figure12 showsthe outputwhenbuilt BuildingTargetNOTE:Aftera few minutes,the buildprocessfinishesand buildsan.

9 Axf file. Eachtime you changethe configuration,you mustbuilda new .axf Flashingthe BluetoothCode(STM3240G-EVAL) September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUsFigure12. BuildOutput10. ChooseDebugmodeor Releaseand Debugmodes. For Debugmodeonly:1. SelectStart/StopDebugSessionto startloadingthe profileon the STM32deviceand to workinDebugmode.(SeeFigure13.)Figure13. DebugModeNOTE:The loadingprocesscompletesin a few Stopthe :The profileloadson the Unplugthe Plugthe devicein againto startworkingwith Flashingthe BluetoothCode(STM3240G-EVAL)15 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 mcus For Releaseand Debugmodes:1. ClickLOADto startloadingthe profileon the STM32device.(SeeFigure14.)NOTE:It shouldcompletein a few profileloadson the Unplugthe Plugthe devicein againto startworkingwith Releaseand can use the STSW-LINK004utilityto flashthe softwarewhenyou havecreatedthe binaryfile throughIAR or flashthe software,do the following:1.

10 Openthe file Selectthe demonstrationto load on the device.(ThisexampleusesSPPDemo.) For NoOS,navigatetoC:\TI\Connectivity\CC256 XBT\CC256xSTM32 BluetopiaSDK\ \NoOS\STM3240G-EVAL\Samples\SPPDemo\NoOS \EWARM\Debug\Exe. For FreeRTOS,navigatetoC:\TI\Connectivity\CC 256 XBT\CC256xSTM32 BluetopiaSDK\ \FreeRTOS\STM3240G-EVAL\Samples\SPPDemo\ FreeRTOS\EWARM\Debug\ Selecta bin file. ( )Buildingand Flashingthe BluetoothCode(STM3240G-EVAL) September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs4. ClickProgram& (SeeFigure15.)Figure15. Programand VerifyNOTE:The informationfor Ensurethe valuesin DeviceInformationchangedto Flashingthe BluetoothCode(STM3240G-EVAL)17 SWRU428 September2015 SubmitDocumentationFeedbackCopyright 2015,TexasInstrumentsIncorporatedDual-Mo deBluetooth Stackon STM32F4 MCUs6. PressStart.


Related search queries