Building And Downloading The Sensor Demo; Monitoring The Debug Output Of The Sensor Demo - Laird LSR STERLING-LWB STM Quick Start Manual

Table of Contents

Advertisement

5.2 Building and Downloading the Sensor Demo

To start using the sample project, place the "sterling_demo" folder from the downloaded archive into
the '43xxx_Wi-Fi/apps/demo' subfolder of your WICED SDK installation. Make sure you have already
installed the Sterling-LWB platform files as described in section 3.2.4.
If you have WICED Studio open, you may need to refresh the Project Explorer view by right-clicking the
top-level folder and clicking "Refresh". At this point, you will see a new project available under the
43xxx_Wi-Fi/apps/demo/sterling_demo folder. You can review the sterling_demo.c file for more details
on what this project demonstrates. To build, download and run the project, create a new make target:
demo.sterling_demo-LSRSTERLING_00950-ThreadX-NetX-SDIO download download_apps run
This will trigger a series of steps that can be monitored in the WICED Studio console view. After building
the source code, if your expansion board is attached via USB and drivers are installed the application will
be programmed onto the STM32F411 Discovery Board and start running once the process has
completed.

5.3 Monitoring the Debug Output of the Sensor Demo

Once the sensor demo is running on your discovery board, you can open a serial terminal on the USB
Serial adapter associated with your expansion board (see Device Manager for a list of COM ports on
Windows) to view debug output. The serial terminal settings should be set to 115200 baud, 8 data bits,
no parity, 1 stop bit. The debug output gives developers a view into the steps the application is taking
such as enabling Wi-Fi, enabling BLE, joining a Wi-Fi network, reading sensor data and reporting to the
cloud.
The information in this document is subject to change without notice.
330-0234-R1.2
Figure 8 Debug output from sterling_demo application
Copyright ©2016-2017 LSR
Sterling-LWB STM Expansion Board
USER GUIDE
Page 18 of 25

Advertisement

Table of Contents
loading

Table of Contents