QSG166: WF200 Wi-Fi Development Kit Quick Start Guide
Total Page:16
File Type:pdf, Size:1020Kb
QSG166: WF200 Wi-Fi Development Kit Quick Start Guide The WF200 Wi-Fi Development Kit is an excellent way to get star- ted with WF200 Wi-Fi transceiver IC to achieve performance eval- KEY CONTENTS uation and software development. • Expansion Board with the WF200 Wi-Fi transceiver IC onboard. It supports various hardware and software use cases, as described below. • Direct connection to Silicon Labs EFM32 and EFR32 hosts (20 pin EXP) Two versions of devkits are available: • Direct connection to Raspberry Pi for the • SLEXP8022A contains WF200 development board (BRD8022A), that can be connec- Linux use case ted to Silicon Labs EFM32 or EFR32 Starter kits or to a Raspberry Pi for the Linux • Support of 3rd party MCUs case. It also contains a micro-SD card allowing fast startup with a Raspberry Pi. • Selectable SPI or SDIO host interface • SLEXP8022B is a superset of SLEXP8022A with a Raspberry Pi 2 model V1.2 inclu- ded. This document described the first steps to get a Wi-Fi connection for the Linux case (Raspberry Pi), Silicon Labs MCUs, as well as a case with a 3rd party MCU. Note: Refer to UG379 for more details about the board. silabs.com | Building a more connected world. Rev. 0.1 Table of Contents 1. Getting Started with Raspberry Pi and Linux ...................3 1.1 Requirements ..............................3 1.1.1 Hardware ..............................3 1.1.2 Software ..............................3 1.2 Hardware Setup .............................3 1.3 SSH Connection .............................4 1.4 Wi-Fi Demos...............................4 1.4.1 Station Demo .............................4 1.4.2 Access Point Demo ...........................5 1.5 Update SD Card .............................5 1.6 Software Repositories ...........................5 2. Getting Started with Silicon Labs MCU Starter Kits Using Simplicity Studio ........6 2.1 Requirements ..............................6 2.1.1 Hardware ..............................6 2.1.2 Software ..............................6 2.2 Hardware Setup .............................6 2.3 Getting Started ..............................7 2.3.1 Installing Simplicity Studio and the SDK ....................7 2.3.2 Selecting the Example ..........................8 2.4 Running the Example............................9 3. Getting Started with STM32 MCU, with FreeRTOS, and LwIP ............15 3.1 Requirements ..............................15 3.1.1 Hardware ..............................15 3.1.2 Software ..............................15 3.2 Hardware Setup .............................16 3.3 Getting Started ..............................17 3.3.1 Flashing the STM32 Using IAR .......................17 3.3.2 Flashing the STM32 using TrueSTUDIO ....................18 3.4 Using the Demo .............................21 4. Additonal Information ...........................22 4.1 Additional Resources ............................22 4.2 Customer Support .............................22 silabs.com | Building a more connected world. Rev. 0.1 | 2 QSG166: WF200 Wi-Fi Development Kit Quick Start Guide Getting Started with Raspberry Pi and Linux 1. Getting Started with Raspberry Pi and Linux 1.1 Requirements 1.1.1 Hardware To use this guide, the following components are needed: • Raspberry Pi board • Versions supported: Pi2 model B V1.2 or Pi3 model B. Note: Pi3 model B+ is not supported. • Raspberry Pi power supply • WF200 devkit (BRD8022A) • Silabs SD card • Network cable 1.1.2 Software To remotely access the Raspberry Pi from a Windows machine, some tools need to be installed: • To enable ssh access with X11 support, download and install MobaXterm Home Edition from https://mobaxterm.mobatek.net/ • To enable multicast name resolution (mDNS), download and install Apple Bonjour from https://support.apple.com/kb/DL999 Note: During Bonjour installation, we recommend that you uncheck all options. 1.2 Hardware Setup 1. Insert Silabs SD card in Raspberry Pi 2. Plug the WF200 devkit on top of the Raspberry Pi (WARNING : make sure the devkit does not touch HDMI connector on Raspber- ry Pi) 3. Configure the switches on WF200 devkit: • Left switch (power): “On Board LDO” • Right switch: “SDIO” 4. Connect the Raspberry Pi directly to a computer with an Ethernet cable. 5. Power the Raspberry Pi Note: Wait 60 seconds for the Raspberry to start before proceeding. silabs.com | Building a more connected world. Rev. 0.1 | 3 QSG166: WF200 Wi-Fi Development Kit Quick Start Guide Getting Started with Raspberry Pi and Linux 1.3 SSH Connection With MobaXterm, create and open a ssh session to the Raspberry Pi with the following parameters: • Host: silabs-pi-demo.local • Username: pi • Password: default_password All the following commands will be entered in the newly open ssh console. Figure 1.1. SSH Console 1.4 Wi-Fi Demos The SD card includes demos for the two supported modes: station and access point. Note: On first version of the SD cards, the driver must be loaded first with the following command: sudo wfx_driver_reload 1.4.1 Station Demo This demo configures the Raspberry Pi and WF200 to work as a Wi-Fi station which can connect to an access point. To start it run: sudo wfx_demo_station This will launch a graphical tool named “wpa_gui” which support the following actions: 1. Scan. 2. Select the desired Wi-Fi access point. 3. Enter credentials if need be, and then add. Once connected, it is possible to perform some traffic: ping silabs.com Note: With keyboard, mouse, and screen attached to the Raspberry Pi, it is possible to launch a browser by clicking the “Silicon Labs website” icon on the desktop. silabs.com | Building a more connected world. Rev. 0.1 | 4 QSG166: WF200 Wi-Fi Development Kit Quick Start Guide Getting Started with Raspberry Pi and Linux 1.4.2 Access Point Demo This demo configures the Raspberry Pi and WF200 to work as a Wi-Fi access point which can accept stations. To start it, run: sudo wfx_demo_ap Once the access point is started, it is possible to connect to the Raspberry Pi using a Wi-Fi capable device and the following creden- tials: • SSID: silabs-pi-demo • Passphrase: default_password On the device, use a browser to open http://silabs-pi-demo.wlan/. 1.5 Update SD Card To update or restore a SD card, follow the steps below: • Download • https://webftp.silabs.com/download?domain=silabs.com&id=ddf5759881c74bea9594f0eab53fc371- cd734355db2147538cd4f51f34b9cc34 • the password is h(iZt7X; • Decompress the .zip file • Flash the .img file on the SD card with win32diskimager 1.6 Software Repositories For development purposes, software can be found in the locations listed below: • WF200 firmware is available in https://github.com/SiliconLabs/wfx-firmware • The Linux driver is available in https://github.com/SiliconLabs/wfx-linux-driver silabs.com | Building a more connected world. Rev. 0.1 | 5 QSG166: WF200 Wi-Fi Development Kit Quick Start Guide Getting Started with Silicon Labs MCU Starter Kits Using Simplicity Studio 2. Getting Started with Silicon Labs MCU Starter Kits Using Simplicity Studio 2.1 Requirements 2.1.1 Hardware The WF200 Wi-Fi Expansion Board contains a Wi-Fi module. To use the board, an MCU starter-kit is required, where the MCU will be the host that communicates and controls the Wi-Fi module. Supported Starter Kits are listed below. Click the link to see a description of the kit and associated MCU, and ensure one of these kits is available: • EFM32 Giant Gecko GG11 Starter Kit – SLSTK3701A • EFR32 Pearl Gecko PG12 Starter Kit – SLSTK3402A 2.1.2 Software The required software is free and includes Simplicity Studio and the Gecko SDK Suite (32-bit MCU, Micrium OS Kernel and Micrium OS Network). 2.2 Hardware Setup 1. Connect the WF200 Wi-Fi Expansion Kit to the EFM32 MCU Starter Kit. 2. Ensure that the power selector switch on the EFM32 MCU STK is in the [AEM] position. 3. Ensure that the power selector switch on the WF200 Wi-Fi Expansion Board is in the [Onboard LDO] position. 4. Set the communication interface switch to the [SDIO] or [SPI] position. Note: for the time being, only SPI is available in the Micrium OS driver 5. Provide power by connecting the [DBG] USB connector on the STK to the PC using the provided USB cable. Figure 2.1. EFM32 MCU STK + WF200 Wi-Fi EXP Board silabs.com | Building a more connected world. Rev. 0.1 | 6 QSG166: WF200 Wi-Fi Development Kit Quick Start Guide Getting Started with Silicon Labs MCU Starter Kits Using Simplicity Studio 2.3 Getting Started 2.3.1 Installing Simplicity Studio and the SDK Simplicity Studio is a free software suite needed to start developing your application. 1. Download the latest version of Simplicity Studio from the Silicon Labs website: http://www.silabs.com/simplicity-studio 2. Create a Silicon Labs account. 3. Register your EFM32 Starter Kit by entering the Serial Number found in the packaging. 4. In the Installation Manager select the option to [Install by Device]. Figure 2.2. Installation Manager 5. Connect the EFM32 Starter Kit, select it from the panel [Connected Devices] and move it to the panel [Selected Devices]. Figure 2.3. Installation Wizard 6. Sign in with your Silicon Labs account credentials and Install the Gecko SDK Suite including support for 32-bit MCU and Micrium OS Kernel and Micrium OS Network. silabs.com | Building a more connected world. Rev. 0.1 | 7 QSG166: WF200 Wi-Fi Development Kit Quick Start Guide Getting Started with Silicon Labs MCU Starter Kits Using Simplicity Studio 2.3.2 Selecting the Example 1. Open Simplicity Studio and set the IDE to the [Launcher] Perspective. 2. Once an item with a name that starts with [J-Link Silicon Labs] appears, expand it by clicking the arrow, and verify that the detec- ted device matches your EFM32 MCU Starter Kit. 3. Click the [Refresh] button if your device does not show up in the [Debug Adapters] view in the Simplicity Studio Launcher. The board might take some time to appear due to driver installations for the debug adapter.