Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: source/platform/stm32_bluenrg_ble.cpp
- 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(); } /**