Table of Contents

Advertisement

Quick Links

The information in this document is subject to change without notice.
330-0234-R1.2
TM
S
-LWB
TERLING
U
Last updated
February 9, 2017
Copyright ©2016-2017 LSR
STM E
XPANSION
G
SER
UIDE
B
OARD

Advertisement

Table of Contents
loading

Summary of Contents for Laird LSR STERLING-LWB STM

  • Page 1 -LWB STM E TERLING XPANSION OARD UIDE Last updated February 9, 2017 The information in this document is subject to change without notice. 330-0234-R1.2 Copyright ©2016-2017 LSR...
  • Page 2: Table Of Contents

    Sterling-LWB STM Expansion Board USER GUIDE Table of Contents Introduction ............................3 Purpose & Scope ............................3 Applicable Documents ..........................3 Revision History ............................3 Related LSR Products ........................... 3 Sterling-LWB STM Expansion Board Description .................. 4 Sterling-LWB STM Expansion Board Hardware .................... 4 Sterling-LWB Wi-Fi + Bluetooth Combo Module ..................
  • Page 3 Sterling-LWB STM Expansion Board USER GUIDE Sterling-LWB Cloud Sensor Demo featuring TiWiConnect ..............17 Downloading the Sensor Demo Source Code .................... 17 Building and Downloading the Sensor Demo ..................... 18 Monitoring the Debug Output of the Sensor Demo .................. 18 ModuleLink Sterling Mobile App ........................
  • Page 4: Introduction

    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.
  • Page 5: Sterling-Lwb Stm Expansion Board Description

    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.
  • Page 6: Sterling-Lwb Wi-Fi + Bluetooth Combo Module

    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.
  • Page 7: Spi Flash

    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.
  • Page 8: Software Development With The Sterling-Lwb Stm Expansion Board

    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.
  • Page 9: Required Software

    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.
  • Page 10: Downloading The Cypress Wiced Sdk

    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.
  • Page 11: Installing The Cypress Wiced Studio And Wiced Sdk

    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.
  • Page 12: Understanding The Wiced Sdk Folder Structure

    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.
  • Page 13: Wiced Software Examples

    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.
  • Page 14: Editing And Building Applications Using Wiced Studio

    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”...
  • Page 15: Downloading An Application To Your Sterling-Lwb Stm Expansion Board

    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”...
  • Page 16: Performing A "Build And Download" From Wiced Studio

    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.
  • Page 17: Troubleshooting

    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.
  • Page 18: Sterling-Lwb Cloud Sensor Demo Featuring Tiwiconnect

    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.
  • Page 19: Building And Downloading The Sensor Demo

    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.
  • Page 20: Modulelink Sterling Mobile App

    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.
  • Page 21: Interacting With Your Sterling-Lwb Over Ble

    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.
  • Page 22: Using The Tiwiconnect Web Application

    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.
  • Page 24: Appendix A Using Wiced/Sterling-Lwb With Stm32F4Xx Processors

    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.
  • Page 25: Stm32F407

    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...
  • Page 26: Other Processors

    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.
  • Page 27 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Laird Connectivity 450-0173...

Table of Contents