Expansion board for stm32 nucleo based on the vl53l4ed (20 pages)
Summary of Contents for ST X-NUCLEO-BNRG2A1
Page 1
Quick Start Guide Bluetooth Low Energy expansion board based on BlueNRG-M2SP module for STM32 Nucleo (X-NUCLEO-BNRG2A1) Version 2.0 (July 2, 2020)
Page 2
Agenda Hardware and Software overview Setup & Demo Examples Documents & Related Resources STM32 Open Development Environment: Overview...
Page 4
Bluetooth Low Energy expansion board Hardware Overview X-NUCLEO-BNRG2A1 Hardware Description • The X-NUCLEO-BNRG2A1 is a Bluetooth Low Energy (BLE) evaluation and Arduino UNO R3 connector development board system, designed around ST’s BLUENRG-M2SP Bluetooth Low Energy module based on BlueNRG-2. • The BlueNRG-2 processor hosted in the BLUENRG-M2SP module communicates with the STM32 microcontroller, hosted on the Nucleo development board, through an SPI link available on the Arduino UNO R3 connector.
Page 5
Overall Software Architecture software package that eases portability across different STM32 MCU families • Implementation examples are available for the STM32 Nucleo Bluetooth Low Energy expansion board (X-NUCLEO-BNRG2A1) plugged on top of an STM32 Nucleo board (NUCLEO-L476RG) Key features •...
Page 7
Setup & Application Examples HW prerequisites for X-NUCLEO-BNRG2A1 • 1x X-NUCLEO-BNRG2A1 Bluetooth Low Energy expansion board Nucleo-L476RG + • 1x STM32 Nucleo development board (Nucleo-L476RG) X-NUCLEO-BNRG2A1 • 1 x BLE-enabled smartphone and associated apps Smartphone requirements App for Demo App for Hands On...
Page 8
Setup & Application Examples HW limitation • Warning Even if not strictly required for the correct working of the BlueNRG-2 module, to correctly set the BlueNRG-2 RESET pin on pin D7 of the Arduino connector a 0 Ohm resistor must be soldiered on R117.
Page 9
Setup & Application Examples Software and Other prerequisites • STSW-LINK009 • ST-LINK/V2-1 USB driver • STSW-LINK007 • ST-LINK/V2-1 firmware upgrade • X-CUBE-BLE2 • Copy the zip file content into the “c:\Program Files (x86)\STMicroelectronics\” folder on your PC • The package contains the source code examples (Keil, IAR EWARM, STM32CubeIDE) based on NUCLEO-L476RG •...
Page 10
X-CUBE-BLE2 sample applications Start coding in just a few minutes www.st.com/stm32ode X-CUBE-BLE2 package structure Docs BSP, HAL drivers Select Expansion Pack: Download & unpack X-CUBE-BLE2 BLE HCI stack Sample applications, binary Evaluate / modify / build the code Open project example (e.g.
Page 11
X-CUBE-BLE2 sample applications Evaluate in just a few minutes (1/2) From X-CUBE-BLE2 software resource package drag and drop SensorDemo_BLESensor-App_L476RG.bin on Nucleo drive Download and install the ST BLE Sensor application on your smartphone from Google Play or App Store...
Page 12
X-CUBE-BLE2 sample applications Evaluate in just a few minutes (2/2) Connect your smartphone application to the BlueNRG-2 device and control the cube on the smartphone Simulated environmental and motion data are sent periodically from the STM32 Nucleo board to the smartphone app...
Page 13
X-CUBE-BLE2 sample applications Evaluate using the BlueNRG GUI Drag and drop Virtual_COM_Port_L476RG.bin on Nucleo drive Download the BlueNRG GUI from st.com and install it on your PC...
Page 14
Emulating BlueNRG-2N device with X-NUCLEO-BNRG2A1 (1/3) The X-CUBE-BLE2 software package can be used also with the BlueNRG-2N device The BlueNRG-2 device on the X-NUCLEO-BNRG2A1 expansion board can be used to emulate the BlueNRG-2N device To flash the BlueNRG-2N firmware on the BlueNRG-2 device,...
Page 15
X-CUBE-BLE2 for BlueNRG-2N device Emulating BlueNRG-2N device with X-NUCLEO-BNRG2A1 (2/3) Download and unpack the STSW-BNRG2N-V320, containing the BlueNRG-2N firmware image (available on www.st.com) Download and install the STSW-BNRGFLASHER (available only for Windows) Connect the ST-Link/V2 debugger to your PC...
Page 16
X-CUBE-BLE2 for BlueNRG-2N device Emulating BlueNRG-2N device with X-NUCLEO-BNRG2A1 (3/3) Open the BlueNRG-1_2 Flasher Utility (STSW-BNRGFLASHER) Select the SWD tab Erase the BlueNRG-2 Load the BlueNRG_2N_FW_V3_2_0.hex flash memory firmware contained in the STSW- BNRG2N-V320 and press the Flash button...
Page 17
Restoring the BlueNRG-2 firmware image • To restore the BlueNRG-2 firmware image on the BlueNRG-2 device, download and install the STSW- BNRGUI • Execute all steps described in previous slide at point 8, loading (8.c) the DTM_SPI.hex firmware contained in the STSW-BNRGUI installation folder (usually C:\Program Files (x86)\STMicroelectronics\BlueNRG GUI 3.2.1\Firmware\BlueNRG2\DTM for version 3.2.1)
Page 19
Gerber files, BOM, Schematic • DB4086: Bluetooth Low Energy expansion board based on BLUENRG-M2SP module for STM32 Nucleo – data brief • UM2667: Getting started with the X-NUCLEO-BNRG2A1 BLE expansion board based on BLUENRG-M2SP module for STM32 Nucleo – user manual X-CUBE-BLE2: •...
Page 20
4- STM32 Open Development Environment: Overview...
Page 21
The STM32 Open Development Environment (STM32 ODE) is an open, flexible, easy, and affordable way to develop innovative devices and applications based on the STM32 32-bit microcontroller family combined with other state-of-the-art ST components connected via expansion boards. It enables fast prototyping with leading-edge components that can quickly be transformed into final designs...
Need help?
Do you have a question about the X-NUCLEO-BNRG2A1 and is the answer not in the manual?
Questions and answers