EFM32 Wonder Gecko (EFM32WG-STK3800)

Overview

The EFM32 Wonder Gecko Starter Kit EFM32WG-STK3800 contains a MCU from the EFM32WG family built on ARM® Cortex®-M4F processor with excellent low power capabilities.

Hardware

  • Advanced Energy Monitoring provides real-time information about the energy consumption of an application or prototype design.

  • 32MByte parallel NAND Flash

  • 160 segment Energy Micro LCD

  • 2 user buttons, 2 LEDs and a touch slider

  • Ambient Light Sensor and Inductive-capacitive metal sensor

  • On-board Segger J-Link USB debugger

For more information about the EFM32WG SoC and EFM32WG-STK3800 board:

Supported Features

The efm32wg_stk3800 board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

efm32wg_stk3800/efm32wg990f256 target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M4F CPU1

arm,cortex-m4f

Flash controller

on-chip

Silicon Labs Gecko flash controller1

silabs,gecko-flash-controller

GPIO & Headers

on-chip

SiLabs Gecko GPIO1

silabs,gecko-gpio

on-chip

SiLabs Gecko GPIO Port4 2

silabs,gecko-gpio-port

I2C

on-chip

Silabs Gecko I2C2

silabs,gecko-i2c

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MTD

on-chip

Flash node1

soc-nv-flash

on-board

Fixed partitions of a flash (or other non-volatile storage) memory1

fixed-partitions

Pin control

on-chip

The Silabs pin controller is a singleton node responsible for controlling pin function selection and pin properties1

silabs,gecko-pinctrl

Serial controller

on-chip

Gecko USART3

silabs,gecko-usart

on-chip

Gecko UART1 1

silabs,gecko-uart

on-chip

Gecko LEUART2

silabs,gecko-leuart

SRAM

on-chip

Generic on-chip SRAM description1

mmio-sram

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

Connections and IOs

The EFM32WG SoC has six gpio controllers (PORTA to PORTF), but only three are currently enabled (PORTB, PORTE and PORTF) for the EFM32WG-STK3800 board.

In the following table, the column Name contains Pin names. For example, PE2 means Pin number 2 on PORTE, as used in the board’s datasheets and manuals.

Name

Function

Usage

PE2

GPIO

LED0

PE3

GPIO

LED1

PB9

GPIO

Push Button PB0

PB10

GPIO

Push Button PB1

PF7

GPIO

Board Controller Enable EFM_BC_EN

PE0

UART0_TX

UART Console EFM_BC_TX U0_TX #1

PE1

UART0_RX

UART Console EFM_BC_RX U0_RX #1

System Clock

The EFM32WG SoC is configured to use the 48 MHz external oscillator on the board.

Serial Port

The EFM32WG SoC has three USARTs, two UARTs and two Low Energy UARTs (LEUART). UART0 is connected to the board controller and is used for the console.

Programming and Debugging

Note

Before using the kit the first time, you should update the J-Link firmware in Simplicity Studio.

Flashing

The EFM32WG-STK3800 includes an J-Link serial and debug adaptor built into the board. The adaptor provides:

  • A USB connection to the host computer, which exposes a Mass Storage and a USB Serial Port.

  • A Serial Flash device, which implements the USB flash disk file storage.

  • A physical UART connection which is relayed over interface USB Serial port.

Flashing an application to EFM32-STK3800

The sample application Hello World is used for this example. Build the Zephyr kernel and application:

# From the root of the zephyr repository
west build -b efm32wg_stk3800 samples/hello_world

Connect the EFM32WG-STK3800 to your host computer using the USB port and you should see a USB connection which exposes a Mass Storage (STK3800) and a USB Serial Port. Copy the generated zephyr.bin in the STK3800 drive.

Open a serial terminal (minicom, putty, etc.) with the following settings:

  • Speed: 115200

  • Data: 8 bits

  • Parity: None

  • Stop bits: 1

Reset the board and you should be able to see on the corresponding Serial Port the following message:

Hello World! efm32wg_stk3800