mamont mamont
/
test_ble
nrf52-dk
shields/TARGET_ST_BLUENRG/README.md@0:70ce6da7a141, 2020-06-05 (annotated)
- Committer:
- mamont090671
- Date:
- Fri Jun 05 10:49:10 2020 +0000
- Revision:
- 0:70ce6da7a141
nrf52840
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mamont090671 | 0:70ce6da7a141 | 1 | # BLE-X-NUCLEO-IDB0XA1 |
mamont090671 | 0:70ce6da7a141 | 2 | |
mamont090671 | 0:70ce6da7a141 | 3 | BLE_API wrapper Library for X-NUCLEO-IDB05A1 BlueNRG (Bluetooth Low Energy) Expansion Board |
mamont090671 | 0:70ce6da7a141 | 4 | |
mamont090671 | 0:70ce6da7a141 | 5 | ## Introduction |
mamont090671 | 0:70ce6da7a141 | 6 | |
mamont090671 | 0:70ce6da7a141 | 7 | This firmware package implements the port of BLE_API to STMicroelectronics' [X-NUCLEO-IDB05A1](https://developer.mbed.org/components/X-NUCLEO-IDB05A1-Bluetooth-Low-Energy/) Bluetooth Low Energy Nucleo Expansion Board. |
mamont090671 | 0:70ce6da7a141 | 8 | |
mamont090671 | 0:70ce6da7a141 | 9 | ### Arduino Connector Compatibility Warning |
mamont090671 | 0:70ce6da7a141 | 10 | |
mamont090671 | 0:70ce6da7a141 | 11 | X-NUCLEO-IDB05A1 is Arduino compatible with an exception: instead of using pin **D13** for the SPI clock, pin **D3** is used. |
mamont090671 | 0:70ce6da7a141 | 12 | The default configuration for this library is having the SPI clock on pin **D3**. |
mamont090671 | 0:70ce6da7a141 | 13 | |
mamont090671 | 0:70ce6da7a141 | 14 | To be fully Arduino compatible, X-NUCLEO-IDB05A1 needs a small HW patch. |
mamont090671 | 0:70ce6da7a141 | 15 | |
mamont090671 | 0:70ce6da7a141 | 16 | For X-NUCLEO-IDB05A1 this patch consists in removing zero resistor **R4** and instead soldering zero resistor **R6**. |
mamont090671 | 0:70ce6da7a141 | 17 | |
mamont090671 | 0:70ce6da7a141 | 18 | In case you patch your board, then you also have to configure this library to use pin **D13** to drive the SPI clock. To this aim you need to compile this driver with macro `BLUENRG_PIN_SPI_SCK=D13` defined. |
mamont090671 | 0:70ce6da7a141 | 19 | |
mamont090671 | 0:70ce6da7a141 | 20 | If you use pin **D13** for the SPI clock, please be aware that on STM32 Nucleo boards you may **not** drive the LED, otherwise you will get a conflict: the LED on STM32 Nucleo boards is connected to pin **D13**. |
mamont090671 | 0:70ce6da7a141 | 21 | |
mamont090671 | 0:70ce6da7a141 | 22 | Referring to the current list of tested platforms (see [X-NUCLEO-IDB05A1](https://developer.mbed.org/components/X-NUCLEO-IDB05A1-Bluetooth-Low-Energy/) page), the patch is required by [ST-Nucleo-F103RB](https://developer.mbed.org/platforms/ST-Nucleo-F103RB/); [ST-Nucleo-F302R8](https://developer.mbed.org/platforms/ST-Nucleo-F302R8/); [ST-Nucleo-F411RE](https://developer.mbed.org/platforms/ST-Nucleo-F411RE/); [ST-Nucleo-F446RE](https://developer.mbed.org/platforms/ST-Nucleo-F446RE/); and [FRDM-K64F](https://developer.mbed.org/platforms/FRDM-K64F/). |
mamont090671 | 0:70ce6da7a141 | 23 | |
mamont090671 | 0:70ce6da7a141 | 24 | ### Firmware update |
mamont090671 | 0:70ce6da7a141 | 25 | |
mamont090671 | 0:70ce6da7a141 | 26 | For better performance and compatibility with latest mbed API, you should update firmware of X-NUCLEO-IDB05A1 component by using this simple [application](https://developer.mbed.org/teams/ST/code/BlueNRG-MS-Stack-Updater). |
mamont090671 | 0:70ce6da7a141 | 27 | |
mamont090671 | 0:70ce6da7a141 | 28 | ### Driver configuration |
mamont090671 | 0:70ce6da7a141 | 29 | |
mamont090671 | 0:70ce6da7a141 | 30 | In order to use the BlueNRG-MS module together with other targets, you need to set the macros defined in file [bluenrg_targets.h](https://github.com/ARMmbed/ble-x-nucleo-idb0xa1/blob/master/bluenrg/bluenrg_targets.h). Please, update the [mbed_lib.json](https://github.com/ARMmbed/ble-x-nucleo-idb0xa1/blob/master/mbed_lib.json) to include the list of extra macros that configure the driver for your target. |
mamont090671 | 0:70ce6da7a141 | 31 | |
mamont090671 | 0:70ce6da7a141 | 32 | ## Example Applications |
mamont090671 | 0:70ce6da7a141 | 33 | |
mamont090671 | 0:70ce6da7a141 | 34 | To run BLE example applications using X-NUCLEO-IDB05A1 Expansion Board based on mbed OS and built with [mbed-cli](https://github.com/ARMmbed/mbed-cli), please refer to section [Using ST shield on other targets](https://github.com/ARMmbed/mbed-os-example-ble#using-st-nucleo-shield-on-other-targets) in the official [mbed-os-example-ble](https://github.com/ARMmbed/mbed-os-example-ble) page. |