
5
Push button demo description
This is an ST-Sigfox demo showing how to use the Sigfox protocol to send a message to a base station each time
the blue button on the STM32 Nucleo board, the button 2 of the STEVAL-IDB007V2/STEVAL-IDB008V2 board, or
the SW1 button on the STEVAL-FKI001V1 is pressed. The payload of the message is a number representing the
number of times the button has been pressed since the last boot sequence.
If something goes wrong during initialization, the green LED on the STM32 Nucleo board or the red lLED on the
STEVAL-IDB007V2/STEVAL-IDB008V2 board will blink continuously.
The root folder of the project is Projects/Projects_Cube/Sigfox_Applications/Sigfox_PushButton_Demo_Project.
The same example is provided both for MDK-ARM Keil and IAR Embedded Workbench integrated development
environments.
5.1
KEIL project
To use the project with KEIL µVision 5 for ARM
®
:
Step 1.
Open the KEIL µVision 5 for ARM and select Project→Open Project.
Step 2.
Open the KEIL project
Projects/Projects_Cube/S2-LP_Sigfox_DK/SigFox_PushButton_Project
Step 3.
Select the desired platoform (STM32 or BlueNRG) and open the project in the MDK-ARM folder
Step 4.
Select the configuration and go to Project→Rebuild all target files.
This will recompile and link the entire application
Step 5.
Select Project→Download to download the corresponding binary image.
5.2
IAR project
To use the project with IAR Embedded Workbench for ARM
®
:
Step 1.
Open the Embedded Workbench for ARM and select File→Open→Workspace.
Step 2.
Open the IAR project
Projects\Projects_Cube\S2-LP_SigFox_DK\SigFox_PushButton_Project
Step 3.
Select the desired platoform (STM32 or BlueNRG) and open the project in the EWARM folder
Step 4.
Select Project→Rebuild All.
This will recompile and link the entire application
Step 5.
Select Project→Download and Debug to download the corresponding binary image.
UM2169
Push button demo description
UM2169
-
Rev 6
page 19/31