Sterling-LWB STM Expansion Board USER GUIDE 1. Introduction 1.1 Purpose & Scope This document describes the Sterling-LWB STM Expansion Board and how to use it for development of embedded Wi-Fi and/or Bluetooth Low Energy applications. An overview of the hardware is provided, along with a description of setting up the software development environment, programming the board and some sample projects to get you started.
Sterling-LWB STM Expansion Board USER GUIDE 2. Sterling-LWB STM Expansion Board Description The Sterling-LWB STM Expansion Board is designed for use with the ST Micro Discovery Board series. Specifically, the expansion board CON1 and CON2 are intended to be used with the 32F411EDISCOVERY board, and can be mated directly to its P1 and P2 headers.
Sterling-LWB STM Expansion Board USER GUIDE 2.2 Sterling-LWB Wi-Fi + Bluetooth Combo Module The Sterling-LWB module provides 802.11b/g/n and Bluetooth 4.1 functionality when used with an STM32F4xx microcontroller compatible with the Cypress WICED SDK. The interfaces to the module are SDIO for Wi-Fi and UART for Bluetooth.
Sterling-LWB STM Expansion Board USER GUIDE 2.4 SPI Flash A 16Mbit SPI flash is used for the WICED SDK WLAN firmware. The WLAN firmware is approximately 356 kB. The remaining SPI flash space can be used by applications via the standard serial flash interface library within the WICED SDK.
Sterling-LWB STM Expansion Board USER GUIDE 3. Software Development with the Sterling-LWB STM Expansion Board 3.1 Required Equipment To be used directly with the WICED SDK, the Sterling-LWB expansion board requires an STM32F411 Discovery Board. The board is plugged on to the CON1 and CON2 headers, and provides the Host MCU, user I/O and sensors.
Sterling-LWB STM Expansion Board USER GUIDE 3.2 Required Software 3.2.1 Cypress WICED Studio and WICED SDK The Sterling-LWB depends on use of the Cypress WICED SDK for software development. Cypress provides an integrated development environment (IDE) based on Eclipse and the GCC toolchain for ARM.
Sterling-LWB STM Expansion Board USER GUIDE 3.2.2 Downloading the Cypress WICED SDK The WICED SDK can be downloaded from Cypress at its developer community page after signing up for a free developer account. NOTE: LSR does not develop the WICED SDK or WICED Studio and does not provide technical support for them.
Sterling-LWB STM Expansion Board USER GUIDE 3.2.3 Installing the Cypress WICED Studio and WICED SDK To install WICED Studio and WICED SDK, extract and run the WICED-Studio-x.x.x.x-IDE-Installer.exe file from the downloaded archive. Choose a location to install WICED Studio and follow the remaining instructions in the installer to select a location for the WICED SDK files.
Sterling-LWB STM Expansion Board USER GUIDE A basic workflow for developing a Wi-Fi or Bluetooth application for use with the Sterling-LWB STM Expansion Board is provided in the next section of this guide; for more details please refer to the documents included as part of the WICED SDK installation.
Sterling-LWB STM Expansion Board USER GUIDE 3.3 WICED Software Examples 3.3.1 Finding demo and code snippets The 43xxx_Wi-Fi/apps folder is the place to go for example code to run with your Sterling-LWB STM Expansion Board. Note that not all demo and snip projects distributed with the WICED SDK are designed for use with all radio modules.
Sterling-LWB STM Expansion Board USER GUIDE 3.4 Editing and Building Applications using WICED Studio 3.4.1 Application Makefiles and Source Files Applications can be edited by adding/editing files from the “Project Explorer” view on the left side of WICED Studio. For example, to view the “snip.scan” source files, expand the “apps” folder, then “snip” and finally “scan”...
Sterling-LWB STM Expansion Board USER GUIDE 3.5 Downloading an Application to your Sterling-LWB STM Expansion Board 3.5.1 Installing the WICED JTAG Adapter Driver In order for your PC to recognize the Sterling-LWB STM Expansion Board as a WICED-compatible JTAG adapter, you must first install drivers included with the WICED SDK. To install these drivers, go to the “Device Manager”...
Sterling-LWB STM Expansion Board USER GUIDE 3.5.2 Performing a “Build and Download” from WICED Studio The programming process depends on the OpenOCD programming utility, bundled with the WICED SDK from Cypress. During development, the programming process can be started directly from within WICED Studio.
Sterling-LWB STM Expansion Board USER GUIDE 4. Troubleshooting 4.1 Understanding the Role of OpenOCD WICED Studio depends on several tools that are bundled as part of the ‘43xxx_Wi-Fi’ folder installed on your system. One of the important tools is OpenOCD which is used to communicate with target hardware for programming and debugging operations.
Sterling-LWB STM Expansion Board USER GUIDE 5. Sterling-LWB Cloud Sensor Demo featuring TiWiConnect To demonstrate the use case of a cloud-connected sensor, LSR has developed a sample project that can be used with the Sterling-LWB WICED Expansion board for reporting accelerometer, gyro and magnetometer sensor data from an attached STM32F411 Discovery Board to a web and mobile application.
Sterling-LWB STM Expansion Board USER GUIDE 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.
Sterling-LWB STM Expansion Board USER GUIDE 5.4 ModuleLink Sterling Mobile App In order to configure the Sterling-LWB for your local Wi-Fi network and get it connected to the cloud, LSR provides the ModuleLink Sterling Mobile App, available for Android devices on the Google Play store.
Sterling-LWB STM Expansion Board USER GUIDE then register the device with the TiWiConnect cloud service and the Sterling-LWB will attempt to connect and begin reporting sensor data on a periodic basis. 5.4.4 Interacting with your Sterling-LWB over BLE In the device list, if your Sterling-LWB is within range for a BLE connection and you select it from the list, the app will attempt to communicate directly over BLE to report sensor data and provide control over the LEDs on the discovery board.
Sterling-LWB STM Expansion Board USER GUIDE 5.5.2 Using the TiWiConnect Web Application To view the interface for your specific Sterling-LWB: 1.) Enter the Bluetooth address of your Sterling-LWB module with no spaces or semicolons and in lowercase (e.g. 0025ca076920), then press the SELECT button. If you don’t know what the Bluetooth address is, you can see it displayed in the device list view of the mobile app.
Page 23
Sterling-LWB STM Expansion Board USER GUIDE 5.) If you press and hold the Blue “User” button on the STM32F411 discovery board, you’ll notice the blue circle under the “Buttons” heading will shrink slightly. When you let go, it will grow to its original size.
Sterling-LWB STM Expansion Board USER GUIDE 6. Appendix A Using WICED/Sterling-LWB with STM32F4xx Processors The Sterling-LWB Cloud Sensor Demo was developed assuming the host processor is a STM32F411VET6U with 512 kB Flash and 128 kB RAM. The processor/hardware/interfaces are defined in what WICED calls a platform.
Sterling-LWB STM Expansion Board USER GUIDE The STM32F411VET6U are very STM32F412VET6U similar parts. The main differences are, up to 1 Meg byte Flash and 256 k byte RAM and additional peripherals (FSMC, QSPI, DFSDM and CAN). The Sterling Demo Board does not use the additional peripherals. In general, a platform that was based on the STM32F411 VEH6 can be updated to support the STM32F412VET6U with the following changes to the .mk file HOST_MCU_VARIANT...
Sterling-LWB STM Expansion Board USER GUIDE In order to make use of this in the application code, add something like: #define MY_BUF_LEN 16384 uint8_t my_static_buffer_in_ccm[MY_BUF_LEN]__attribute__((section (".ccmram"))); This code will allocate a static block of 16384 bytes into CCM_SRAM, which will leave more space in the contiguous RAM block on the STM32F407/417 for system buffers, stacks, and the heap.