Getting Started with a STM32 Host#

This guide describes how to get started developing a RS9116W application on an STM32 embedded host MCU using the WiSeConnect™ Simple Application Programming Interface (SAPI). For quick evaluation using only the EVK and a PC instead see Getting Started with PC using AT Commands.

Getting Started MCU Block DiagramGetting Started MCU Block Diagram Getting started with application development on an STM32 involves the following steps:

Download the WiSeConnect™ Software Driver Package#

Download or clone the WiSeConnect™ Software Driver Package repository from GitHub.

Choose a host MCU development board and tools#

The example projects provided with the WiSeConnect™ Software Driver Package are designed to work out-of-the-box with the STM32F411RE Nucleo-64 Development Kit from ST Microelectroncis and the Keil MDK development environment. Before continuing with this guide, download and install the Keil MDK.

STM32 EVB and Keil IDESTM32 EVB and Keil IDE

The WiSeConnect™ driver software can also be run on many other embedded host MCU's. To run example projects on a Silicon Labs EFM32/EFR32 host see: Getting Started with a EFx32 Host. Details on porting the driver to other non-Silicon Labs platforms can be found in the RS9116W SAPI Porting Guide.

Update the RS9116W Firmware#

When you first receive a RS9116 EVK or when upgrading to a new version of the WiSeConnect™ Software Driver Package, we recommend you update the RS9116W firmware. There are several update methods available when just getting started it is best to follow the method outlined in Updating RS9116W Firmware


Note! Be sure to disconnect the RS9116 EVK from the host MCU board before updating the firmware using the method described in Updating RS9116W Firmware


Connect the host EVK to the host MCU development board#

STEP 1. Connect the STM32F411RE development board to the SDIO/SPI connector of the RS9116 EVK using the 10-pin ribbon cable provided with the RS9116 EVK.

STM32 EVB and RS9116 EVK connectionsSTM32 EVB and RS9116 EVK connections

The pinout of the SPI cable is shown in the image below.

SPI ribbon cableSPI ribbon cable

The following table summarizes the connections between the RS9116 EVK SDIO/SPI connector (J4) and the STM32F411RE development board connector (CN10).

Signal Name

RS9116 EVB (J4 - SDIO/SPI)

STM32F411 Board (CN10)

NC

10

No Connect

SPI_INTR

9

21

SPI_MISO

8

13

SPI_MOSI

7

15

GND

6

No Connect

SPI_CLK

5

11

VDD

4

7

GND

3

9

SPI_CS

2

17

NC

1

No Connect

STEP 2. Set the ISP switch on the RS9116 EVK to the OFF position.

STEP 3. Connect the RS9116 EVK to a PC using the USB interface labeled POWER. Note that this connection only provides power to the EVK. There is no USB communication over this connection.

STEP 4. Connect the STM32 development board to a PC using the Mini USB connector on the STM32F411RE board.

Complete hardware details of the RS9116 EVK can be found in the RS9116 EVK User's Guide.

Power Save GPIO Connections#

The instructions above enable basic operation between the host MCU and RS9116. Some low power examples require additional GPIO configuration to enable Low Power (LP) or Ultra Low Power (ULP) operation. These details are valid for any example provided in the WiSeConnect™ SDK unless otherwise noted in the readme documentation for a particular example.

Connections for Ultra-Low Power (ULP) Operation

Signal Name

STM32F411 Board (CN10)

RS9116 EVK

Notes

UULP_2

2

J9 Pin 4

UULP_0 (UULP_3)

4

J9 Pin 5

Only use UULP_3 for RS9116 EVK v1.3 or earlier

Connections for Low Power (LP) Operation

Signal Name

STM32F411 Board (CN10)

RS9116 EVK

Notes

UULP_5

2

J9 Pin 4

UULP_0 (UULP_3)

4

J9 Pin 5

Only use UULP_3 for RS9116 EVK v1.3 or earlier

Reset Connection#

Signal Name

STM32F411 Board (CN10)

RS9116 EVK

Notes

RST_PS

6

J9 Pin 2

An STM32 GPIO is used to reset the RS9116

Open an Example Project in the Keil IDE#

The WiSeConnect™ SDK includes a number of ready-made example projects for the STM32F411RE Nucleo-64 Development Kit and the Keil MDK development environment. A list of examples and documentation detailing the operation of each example can be found in: WiSeConnect™ Example Applications .

For the steps below, the Keil MDK development environment must be installed on the PC that is connected to the STM32F411RE development board. Refer to the Keil website for details on downloading and installing the development environment.

STEP 1. Open the Keil µVision IDE

Keil uVisionKeil uVision

STEP 2. Click the menu item Project > Open Project...

STEP 3. Navigate to the examples folder in the downloaded WiSeConnect™ Software Driver Package and choose the µVision project file of the example you would like to open. Every example contains a projects folder containing various project files. For example, the path to the firmware update featured example project can be found in the following path:

<SDK>/examples/featured/firmware_update/projects/firmware_update-nucleo-f411re.uvprojx.

Open Prject FileOpen Prject File

STEP 4. Opening the project will result in a fully functional project in the IDE that can be built, run and debugged.

Firmware Update Project in IDEFirmware Update Project in IDE

Run an Example Project on the Development Kit#

You can build, run and debug the newly opened example project simply using the standard toolbar and menu items in the Keil µVision IDE. Refer to the Keil documentation for more details.

For instructions to configure and use each, see Example Applications. The same information is also available in the readme.md file available with the example project source code.