| Electronic Components Datasheet Search |
|
AN4486 Datasheet(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4486 Datasheet(HTML) 9 Page - STMicroelectronics |
|
9 / 29 page ![]() AN4486 OTA bootloader service description DocID026293 Rev 2 9/29 Figure 3: BLE OTA service bootloader Flash layout (1) It assumes DFU.hex application is on Flash base 0x08000000. Note: OTA_ResetManager IAR project with related header & source files is provided within the BlueNRG DK software package, Project folder. Also, a prebuilt image is provided within the folder Project/OTA_prebuilt_images. This IAR project is valid for both BlueNRG and BlueNRG-MS devices. 2.2.2 BLE application with BLE OTA service In order to add the BLE OTA service provided within the file btl.c, follow these steps: 1. On EWARM workspace, add ST_OTA_BTL preprocessor & linker option 2. On EWARM workspace, use the reference stm32l1xx_flash.icf linker file for matching the Flash layout described in Figure 3: "BLE OTA service bootloader Flash layout" (it is provided within the BlueNRG SW package, Projects\Project folder) 3. On EWARM workspace, add reference to file btl.c and add path related to btl.h file 4. On BLE user application, include the header file btl.h 5. On BLE user application, call the btl.c function Add_Btl_Service() for adding the OTA BLE service and related characteristics 6. On BLE user application, add OTA service UUID to scan response: hci_le_set_scan_resp_data(18,BTLServiceUUID4Scan) 7. On BLE user application, HCI event handler (HCI_Event_CB), EVT_BLUE_GATT_ATTRIBUTE_MODIFIED event, add the call to the OTA_Write_Request_CB() API defined within btl.c file 8. On BLE user application, HCI event handler (HCI_Event_CB), add the EVT_BLUE_GATT_READ_PERMIT_REQ event case and call to aci_gatt_allow_read() API (for allowing BLE stack to send a response) Note: In order to easily identify the IAR BlueNRG demo applications built with the OTA bootloader service, the platform LEDs are utilized based on the schemes in Table 2: "LEDs |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |