Support for the IKEA TRÅDFRI modules. More...
Support for the IKEA TRÅDFRI modules.
The IKEA TRÅDFRI is a small board found in different IKEA TRÅDFRI products. The board contains an EFR32 microcontroller and a 2MBit SPI NOR Flash.
More information about the module can be found on this GitHub page.
|EFR32 Mighty Gecko 1P
|32.0 KiB (1.0 KiB reserved)
|up to 38.4 MHz
|2x 16-bit + 1x 16-bit (low power)
|2x USART, 1x LEUART
|1.85 V - 3.8 V
There are currently two types of modules available. The older module is labeled ICC-1 and the newer one ICC-A-1. The main difference, is that pin PF3 is now used to enable the SPI NOR Flash, and not exposed anymore.
Pin 1 is on the top-left side with only 6 contacts.
Note**: On the ICC-A-1 module, PF3 is not exposed anymore.
|CHAN0: internal temperature
|Ports are fixed, 14/16-bit resolution not supported
|AES128/AES256, SHA1, SHA256
|1 Hz interval. Either RTT or RTC (see below)
|1 Hz interval. Either RTC or RTT (see below)
|MOSI: PD15, MISO: PD14, CLK: PD13
|TIMER0 + TIMER1
|TIMER0 is used as prescaler (must be adjacent)
|RX: PB15, TX: PB14
|Default STDIO output
|RX: PB15, TX: PB14
|Baud rate limited (see below)
|Power modes supported
|Interrupts are shared across pins (see reference manual)
|As RTT or RTC
|Only master mode
|USART is shared with SPI. LEUART baud rate limited (see below)
|SPI NOR Flash
|2MBit flash. Can be used with the the MTD API.
By default the UART peripheral is used for the TX/RX pins, however the pinout is compatible with LEUART also. You can switch from UART to LEUART by compiling with
Note**: LEUART is not working on the ICC-1 module.
There are several clock sources that are available for the different peripherals. You are advised to read AN0004.1 to get familiar with the different clocks.
|Enabled during startup, changeable
|Not very reliable as a time source
The sources can be used to clock following branches:
|LFRCO, LFXO, CORELEDIV2
|Real-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_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.
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.
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.
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.
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.
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.
To flash, SEGGER JLink is required.
Flashing is supported by RIOT-OS using the command below:
To run the GDB debugger, use the command:
Or, to connect with your own debugger:
Some boards have (limited) support for emulation, which can be started with:
For using the Silicon Labs STK3600 starter kit we strongly recommend the usage of the GNU Tools for ARM Embedded Processors toolchain.
Silicon Labs' EMLIB: zlib-style license (permits distribution of source).
|Board specific definitions for the IKEA TRÅDFRI modules.
|Board specific configuration of direct mapped GPIOs.
|Configuration of CPU peripherals for the IKEA TRÅDFRI modules.