Appendix A Using Wiced/Sterling-Lwb With Stm32F4Xx Processors; Stm32F411/Lsrsterling_00950; Lsrsterling_00950.Mk; Platform.h - Laird LSR STERLING-LWB STM Quick Start Manual

Table of Contents

Advertisement

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. The target platform to use is specified in the WICED build string. For
example, the build string for the Sterling Demo is:
demo.sterling_demo-LSRSTERLING_00950-ThreadX-NetX-SDIO download download_apps run
The platform is LSRSTERLING_00950. This platform is provided in the Sterling Demo application and the
folder containing the platform must be copied to the WICED\WICED-Studio-4.0\43xxx_Wi-Fi\platforms
directory for it to be found by the build system.

6.1 STM32F411/LSRSTERLING_00950

The LSRSTERLING_00950 platform is derived from the WICED BCM94343WWCD1 platform. The
BCM94343WWCD1 platform is used with the Cypress / WICED reference hardware which is also based
on the STM323F411. Comparing the files in the BCM94343WWCD1 and LSRSTERLING_00950 platform
directories can provide a useful example of the changes that are typically required when the target has a
different processor and/or support hardware.
The .mk (makefile) is named to match the platform, the other files normally have the same names
across different platforms.

6.1.1 LSRSTERLING_00950.mk

This file define the top level definitions that affect the processor and file system. Note that the value of
HSE_VALUE=8000000 to match the 8.00 MHz crystal on the STM32F411 discovery board.

6.1.2 platform.h

This file defines the I/O configuration of the host processor, including the pins used for peripherals (such
as SDIO and I2C) as well as GPIO. The table in the comments at the top of the file provides a list of the
pins and pin functions used by the platform.

6.1.1 platform.c

This file contains the c structure instances and functions that map the definitions in the platform.h file to
the WICED hardware abstraction layer. The functions in this file are called by the WICED initialization
code to configure the hardware.

6.1.2 platform_config.h

This file contains additional interface and processor configuration information not defined in the
makefile.

6.2 STM32F412

There are significant differences between the STM32F411 and STM32F412 Discovery boards. The F412
board has different sensors, and LCD touchscreen display and an SD card slot. Due to these differences,
many of the interface header pins are used for different functions on the F412 board compared to the
F411 board. For this reason the STM32F412 Discovery board CANNOT be used with the Sterling-LWB
Expansion board without extensive modifications.
The information in this document is subject to change without notice.
330-0234-R1.2
Copyright ©2016-2017 LSR
Sterling-LWB STM Expansion Board
USER GUIDE
Page 23 of 25

Advertisement

Table of Contents
loading

Table of Contents