X_NUCLEO_IDB05A1

Dependencies:   mbed-os-example-ble-Advertising

Revision:
245:6830f71c197c
Parent:
139:3a75965fd389
Child:
264:1e754a01869e
--- a/source/platform/stm32_bluenrg_ble.cpp	Mon Jun 20 17:20:23 2016 +0200
+++ b/source/platform/stm32_bluenrg_ble.cpp	Mon Jun 20 17:53:36 2016 +0200
@@ -122,8 +122,14 @@
  */
 void BlueNRG_HW_Bootloader(void)
 {
-    // FIXME: this is not implemented yet
-    while (1);
+	// Reset BlueNRG SPI interface
+    BlueNRG_RST();
+    
+    // Send an ACI command to reboot BlueNRG in bootloader mode
+	// The safest way to get in bootloader mode is keeping high
+	// the interrupt pin during reset, but this would require many
+	// changes to the current mbed driver
+	aci_updater_start();
 }
 
 /**