Skip to content

Silicon Labs SLTB009A starter kit

Support for Silicon Labs SLTB009A starter kit

Overview

Silicon Labs Thunderboard GG12 is equipped with the EFM32 microcontroller. It is specifically designed for low-power applications, having energy-saving peripherals, different energy modes and short wake-up times.

The starter kit is equipped with an Advanced Energy Monitor. This allows you to actively measure the power consumption of your hardware and code, in real-time.

Hardware

MCU

MCUEFM32GG12B810F1024GM64
FamilyARM Cortex-M4F
VendorSilicon Labs
Vendor FamilyEFM32 Giant Gecko 12B
RAM192.0 KiB
Flash1024.0 KiB
EEPROMno
Frequencyup to 50 MHz
FPUyes
MPUyes
DMA12 channels
Timers4 x 32-bit, 7 x 16-bit + 1 x 16-bit (low power)
ADCs12-bit ADC
DACs2 x 12-bit VDAC (500 ksamples/s), 1 x IDAC
I2Cs2 x
SPIs5 x USART
UARTs2 x UART, 5 x USART, 1 x LEUART
USB1 x Low Energy Full-Speed USB 2.0
Vcc1.8 V - 3.8 V
DatasheetDatasheet
ManualManual
Board ManualBoard Manual
Board SchematicCan be downloaded using Silicon Labs’ Simplicity Studio

Pinout

This is the pinout of the expansion header of the board. PIN 1 is the top-left contact.

RIOT PeripheralNamePINPINNameRIOT Peripheral
GND12VMCU
PD034PA0SPI_DEV(0):MOSI
PD156PA1SPI_DEV(0):MISO
PA478PA2SPI_DEV(0):CLK
PA5910PA3
PA61112PC4UART_DEV(1):TX
PE151314PC5UART_DEV(1):RX
I2C_DEV(0):SCLPE51516PE4I2C_DEV(0):SCL
17185V
19203V3
PB122122PE8
DAC_LINE(0)PB112324PE9
PB32526PE10
PB42728PE11
PD22930PE13
PD33132PE14
PD43334PF5

Peripheral mapping

PeripheralNumberHardwarePinsComments
ADC0ADC0:CH0Internal temperature
ADC1ADC0:CH1AVDD
I2C0I2C0SDA:PE4, SCL:PE5Normal speed
HWCRYPTO--AES128/AES256, SHA1, SHA224/SHA256
HWRNG-TNRG0True Random Number Generator (TRNG)
RTT-RTCC1 Hz interval, either RTT or RTC
RTC-RTCC1 Hz interval, either RTT or RTC
SPI0USART3MOSI:PA0, MISO:PA1, CLK:PA2
Timer0WTIMER0 + WTIMER1WTIMER0 is used as prescaler
Timer1TIMER0 + TIMER1TIMER0 is used as prescaler
Timer2LETIMER0
UART0USART0RX:PE6, TX:PE7Default STDIO
UART1UART0RX:PC5, TX:PC4

User interface

PeripheralMapped toPinComments
ButtonPB0_PINPD5
PB1_PINPD8
LEDLED0R_PINPA12
LED0G_PINPA13
LED0B_PINPA14
LED1R_PINPD6
LED1G_PINPF12
LED1B_PINPE12
LED0_PINLED0R_PIN
LED1_PINLED1R_PIN

Implementation Status

DeviceIDSupportedComments
MCUEFM32GG12ByesPower modes supported
Low-level driverADCyes
DACyesVDAC, IDAC is not supported
Flashyes
GPIOyesInterrupts are shared across pins (see ref manual)
HW Cryptoyes
I2Cyes
PWMyes
RTCCyesAs RTT or RTC
SPIyesOnly master mode
Timeryes
UARTyesUSART is shared with SPI. LEUART baud rate limited
USByesDevice mode

Board configuration

Board controller

The starter kit is equipped with a Board Controller. This controller provides a virtual serial port.

Note: the board controller always configures the virtual serial port at 115200 baud with 8 bits, no parity and one stop bit. This also means that it expects data from the MCU with the same settings.

Clock selection

There are several clock sources that are available for the different peripherals. You are advised to read AN0004.0 to get familiar with the different clocks.

SourceInternalSpeedComments
HFRCOYes19 MHzEnabled during startup, changeable
HFXONo50 MHz
LFRCOYes32.768 kHz
LFXONo32.768 kHz
ULFRCONo1 kHzNot very reliable as a time source

The sources can be used to clock following branches:

BranchSourcesComments
HFHFRCO, HFXOCore, peripherals
LFALFRCO, LFXOLow-power timers
LFBLFRCO, LFXO, CORELEDIV2Low-power UART
LFELFRCO, LFXOReal-time Clock and Calendar

CORELEDIV2 is a source that depends on the clock source that powers the core. It is divided by 2 or 4 to not exceed maximum clock frequencies (EMLIB takes care of this).

The frequencies mentioned in the tables above are specific for this starter kit.

It is important that the clock speeds are known to the code, for proper calculations of speeds and baud rates. If the HFXO or LFXO are different from the speeds above, ensure to pass EFM32_HFXO_FREQ=freq_in_hz and EFM32_LFXO_FREQ=freq_in_hz to your compiler.

You can override the branch’s clock source by adding CLOCK_LFA=source to your compiler defines, e.g. CLOCK_LFA=cmuSelect_LFRCO.

Low-power peripherals

The low-power UART is capable of providing an UART peripheral using a low-speed clock. When the LFB clock source is the LFRCO or LFXO, it can still be used in EM2. However, this limits the baud rate to 9600 baud. If a higher baud rate is desired, set the clock source to CORELEDIV2.

Note: peripheral mappings in your board definitions will not be affected by this setting. Ensure you do not refer to any low-power peripherals.

RTC or RTT

RIOT-OS has support for Real-Time Tickers and Real-Time Clocks.

However, this board MCU family has support for a 32-bit Real-Time Clock and Calendar, which can be configured in ticker mode or calendar mode. Therefore, only one of both peripherals can be enabled at the same time.

Configured at 1 Hz interval, the RTCC will overflow each 136 years.

Hardware crypto

This MCU is equipped with a hardware-accelerated crypto peripheral that can speed up AES128, AES256, SHA1, SHA256 and several other cryptographic computations.

A peripheral driver interface is proposed, but not yet implemented.

Usage of EMLIB

This port makes uses of EMLIB by Silicon Labs to abstract peripheral registers. While some overhead is to be expected, it ensures proper setup of devices, provides chip errata and simplifies development. The exact overhead depends on the application and peripheral usage, but the largest overhead is expected during peripheral setup. A lot of read/write/get/set methods are implemented as inline methods or macros (which have no overhead).

Another advantage of EMLIB are the included assertions. These assertions ensure that peripherals are used properly. To enable this, pass DEBUG_EFM to your compiler.

Pin locations

The EFM32 platform supports peripherals to be mapped to different pins (predefined locations). The definitions in periph_conf.h mostly consist of a location number and the actual pins. The actual pins are required to configure the pins via GPIO driver, while the location is used to map the peripheral to these pins.

In other words, these definitions must match. Refer to the data sheet for more information.

This MCU has extended pin mapping support. Each pin of a peripheral can be connected separately to one of the predefined pins for that peripheral.

Flashing the device

The board provides a on-board J-Link debugger through the micro USB board so that flashing and debugging is very easy.

Flashing is supported by RIOT-OS using the command below:

make flash

To run the GDB debugger, use the command:

make debug

Or, to connect with your own debugger:

make debug-server

Some boards have (limited) support for emulation, which can be started with:

make emulate

Supported Toolchains

For using the Silicon Labs SLTB009A starter kit we strongly recommend the usage of the GNU Tools for ARM Embedded Processors toolchain.

License information

Silicon Labs’ EMLIB: zlib-style license (permits distribution of source).