background image

 

Sterling-LWB STM Expansion Board 

 

USER GUIDE

 

The information in this document is subject to change without notice. 

330-0234-R1.2

 

Copyright ©2016-2017 LSR

 

Page 

15

 of 

25

 

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. This is done by double-clicking a make target 

with the “download” 

directive specified as part of 

the build string. For more information about build strings within the WICED environment, refer to the 
README.txt in the top level 43xxx_Wi-Fi folder of your WICED SDK installation. 

For example, to build and download the 

snip.scan

 application to your Sterling-LWB STM Expansion 

Board, do the following: 

1.)

 

Double-

click the “clean” make target to clean any previously built target files

 

 

2.)

 

create a make target with the following build string: 

snip.scan-LSRSTERLING_00950-ThreadX-NetX-SDIO download download_apps run

 

3.)

 

Double-

click the make target created in step 2. The “Console” tab 

near the bottom of the WICED 

Studio window will display the status of the build and download. Once the build is complete, the 
output files will be located in the 43xxx_Wi-Fi/build folder. 

4.)

 

If the USB cable is attached to the PC and the JTAG driver is installed as described in 3.5.1, 
WICED Studio will proceed with programming the STM32F411 MCU after the build.  

5.)

 

In th

is example the ‘download_apps’ command was specified

. This instructs the IDE to also 

download the WLAN firmware to the external SPI flash (once this is done for your board, 

“download_apps” may be omitted if you are just updating 

the application and not the WLAN 

firmware). 

3.5.3

 

Downloading WLAN firmware as part of the “Build and Download” step

 

As stated in the previous section, if you have never programmed the external SPI flash with WLAN 
firmware (this will be the case for brand new Sterling-LWB STM Expansion Boards), you must do so at 
least once before attempting to build and run any applications on the STM32F411 that use the Sterling-
LWB module. 

To include programming of the WLAN firmware to the SPI flash in your build and download process, add 

“download_apps” after the “download” 

command in your build string. This will trigger additional steps 

during the programming process to utilize the sflash_write application to write the WLAN firmware to 
the external SPI flash. 

 

 

Содержание LSR STERLING-LWB STM

Страница 1: ...The information in this document is subject to change without notice 330 0234 R1 2 Copyright 2016 2017 LSR STERLING LWBTM STM EXPANSION BOARD USER GUIDE Last updated February 9 2017 ...

Страница 2: ...2 Downloading the Cypress WICED SDK 9 3 2 3 Installing the Cypress WICED Studio and WICED SDK 10 3 2 4 Adding the Sterling LWB Platform to your WICED Installation 10 3 2 5 Using the Cypress WICED Studio 10 3 2 6 Understanding the WICED SDK Folder Structure 11 3 3 WICED Software Examples 12 3 3 1 Finding demo and code snippets 12 3 3 2 Snippets for learning the WICED framework 12 3 3 3 Snippets for...

Страница 3: ...5 4 1 Creating a TiWiConnect Account 19 5 4 2 Device List View 19 5 4 3 Configuring your Sterling LWB for Wi Fi 19 5 4 4 Interacting with your Sterling LWB over BLE 20 5 4 5 Interacting with your Sterling LWB via the Cloud 20 5 5 TiWiConnect Web Application 20 5 5 1 Accessing TiWiConnect Web Application 20 5 5 2 Using the TiWiConnect Web Application 21 6 Appendix A Using WICED Sterling LWB with ST...

Страница 4: ...up the software development environment programming the board and some sample projects to get you started 1 2 Applicable Documents Sterling LWB Datasheet 330 0190 1 3 Revision History Date ECN Change Description Revision 2 9 2017 21 2017 Updated table 1 4 1 2 1 16 2017 5 2017 Updated for WICED Studio 4 0 1 1 11 17 2016 185 2016 First release to website 1 0 Table 1 Revision History 1 4 Related LSR ...

Страница 5: ...rd CON1 and CON2 are intended to be used with the 32F411EDISCOVERY board and can be mated directly to its P1 and P2 headers Figure 1 Sterling LWB STM Expansion Board 2 1 Sterling LWB STM Expansion Board Hardware The hardware components on the Sterling LWB STM Expansion Board are shown in the block diagram below The expansion board routes pins from the STM32F4xx MCU to interface with the Sterling L...

Страница 6: ...2 3 USB JTAG and Serial Interface The board provides a single micro USB interface for JTAG programming and access to the UART1 serial interface of the STM32F411 MCU The JTAG interface is provided via a standard FTDI FT2232H IC with its VID and PID updated to be a WICED debugger VID 0x0a5c PID 0x43fa IMPORTANT The USB SWD debug interface on the Discovery board is not used The WICED SDK assumes a JT...

Страница 7: ...ovides a pushbutton switch S1 and several bi color LEDs LED1 LED2 LED3 The pushbutton switch S1 is attached to port PA1 LED1 green is power indication LED1 red displays activity on UART1 activity The LED2 red and green are connected to PD8 and PD9 respectively LED3 red and green are connected to PD10 and PD11 2 6 Micro SD Slot The board provides a Micro SD slot attached to the SPI1 interface on th...

Страница 8: ...d The board is plugged on to the CON1 and CON2 headers and provides the Host MCU user I O and sensors The Sterling LWB expansion board requires a 1A 5VDC power supply to operate The barrel connector J3 is configured for 5VDC center positive J3 powers both the Sterling LWB expansion board and the attached Discovery Board For access to the JTAG and USB to serial adapter on the Sterling LWB expansion...

Страница 9: ...rking stacks for their application This abstraction layer allows applications to target either stack with minimal changes to application level code Demos and code snippets showing how to perform common operations for Wi Fi and Bluetooth applications WLAN and Bluetooth firmware and driver files required by Cypress radios Who would use it The SDK is intended for use by developers experienced in embe...

Страница 10: ...lop the WICED SDK or WICED Studio and does not provide technical support for them For assistance with the WICED SDK and WICED Studio please refer to the Cypress community page 1 Visit https community cypress com welcome and click the WICED Wi Fi button 2 Click the Download SDK Review Docs button 3 Create or sign in with an existing Cypress Developer Community account 4 Scroll down to the section l...

Страница 11: ... a particular target platform Wi Fi Module Processor Development board For the Sterling LWB STM Expansion Board you will need to download the Sterling LWB Config Files WICED Board file from the Sterling LWB website Expand the archive and copy the LSRSTERLING_00950 into the 43xxx_Wi Fi platforms folder within your WICED SDK installation before attempting to build and download code See the Software ...

Страница 12: ...tion apps contains source code for embedded applications that can be built by WICED Studio doc contains documentation included as part of WICED Studio and WICED SDK include WICED framework include path for targets being built within WICED Studio libraries contains various peripheral and protocol libraries that can be used by embedded applications built within WICED Studio platforms contains folder...

Страница 13: ...ad_write Demonstrates use of the Device Configuration Table DCT used throughout the WICED SDK 3 3 3Snippets for Wi Fi The table below shows several snippets that are useful for learning how to operate the Sterling LWB Wi Fi radio for basic networking functionality Subfolder of 43xxx_Wi Fi apps snip Description ping_powersave Demonstrates Wi Fi client mode ICMP ping MCU powersave and Wi Fi powersav...

Страница 14: ...i Makefile or check out the numerous project mk files provided with the SDK in 43xxx_Wi Fi apps snip and 43xxx_Wi Fi apps demo 3 4 2Building an Application To build an application a make target must be created containing a build string that specifies the application name target platform operations and other flags if necessary To create a new make target right click 43xxx_Wi Fi in the Make Target t...

Страница 15: ... USB Serial Converter and right click it then click Update Driver Software Next click Browse my computer for driver software In the next dialog click Let me pick from a list of device drivers on my computer Select Show All Devices then click Next Click the Have Disk button and use the Browse button to navigate to the location where you installed the WICED SDK then select the 43xxx_Wi Fi tools driv...

Страница 16: ...he WICED Studio window will display the status of the build and download Once the build is complete the output files will be located in the 43xxx_Wi Fi build folder 4 If the USB cable is attached to the PC and the JTAG driver is installed as described in 3 5 1 WICED Studio will proceed with programming the STM32F411 MCU after the build 5 In this example the download_apps command was specified This...

Страница 17: ...fg file for the JTAG adapter definitions and stm32f4x cfg for board configuration These files are chosen for you automatically when your build string is set to use the LSRSTERLING_00950 platform no modifications to these files are necessary If you prefer to program the MCU from the command line you can take a look at the make targets defined in 43xxx_Wi Fi tools Makefiles standard_platform_targets...

Страница 18: ...seudo random number generator to produce sensor values 5 1 Downloading the Sensor Demo Source Code This sample code for use with WICED Studio can be downloaded from the Sterling LWB Software Downloads section of the LSR website The project source code provides developers an overview of the steps involved when developing a typical BLE Wi Fi enabled sensor including Defining and implementing custom ...

Страница 19: ...he 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 on...

Страница 20: ...e used to ensure only you have access to your device s sensor data and will provide access to future enhancements to Sterling LWB for use with the TiWiConnect service Note that even if you have used TiWiConnect services for other LSR parts e g TiWi C W you will still need to create a new account in order to use this app 5 4 2Device List View Once you ve created an account and or have logged in the...

Страница 21: ...ou would for BLE by selecting the device from the list touch the list item but not on the plus if it is visible The app will make a connection to the TiWiConnect service and begin receiving updates from your kit over the internet just like it would via BLE You also still have control over the LEDs in this mode however the commands are being tunneled through the internet connection so there may be ...

Страница 22: ...utput to see if there are sensor values being displayed periodically you should see values updating in real time for Heading Pitch and Roll 3 As you slightly rotate and adjust the orientation of your expansion board you will see the box on the web application re orient to reflect the new reported sensor settings This demonstrates monitoring sensor data from the web application 4 You can control th...

Страница 23: ...slightly When you let go it will grow to its original size Pressing the white pushbutton labeled S1 on the Sterling LWB expansion board will do the same for the white circle under the Buttons heading This demonstrates monitoring a simple on off condition from a GPIO on the STM32F411 from the web application 6 To view the JSON data being reported from the Sterling LWB click the tab labeled JSON in ...

Страница 24: ...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 1LSRSTERLING_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 2platform h This f...

Страница 25: ...block of Core Coupled Memory CCM is typically used for the parallel camera interface although it can also be used as general purpose RAM WICED does have support for the F407 F417 in the MCU files and the MCU Variant and Part Number can be set to STM32F417 However the 64 k CCM RAM block is not contiguous with the other on chip RAM blocks and it cannot easily be used by the GCC linker as part of the...

Страница 26: ...RAM DMA transfers are configured for the contiguous RAM block Using CCM_RAM for peripheral interface buffers would require significant changes to the WICED initialization code 2 When using the STM32F407 417 it has been found that when connecting with OpenOCD the default WICED JTAG debugger connection reliability is improved if reset halt is changed to soft_reset_halt See WICED WICED Studio 4 0 43x...

Страница 27: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Laird Connectivity 450 0173 ...

Отзывы: