text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163 values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751 values | repo_full_name stringclasses 752 values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```yaml
board:
name: sltb009a
vendor: silabs
socs:
- name: efm32gg12b810f1024gm64
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb009a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```unknown
# EFM32GG SLTB009A board configuration
config BOARD_SLTB009A
select SOC_PART_NUMBER_EFM32GG12B810F1024GM64
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb009a/Kconfig.sltb009a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
# EFM32GG SLTB009A default board configuration
if BOARD_SLTB009A
config CMU_HFXO_FREQ
default 50000000
config CMU_HFRCO_FREQ
default 72000000
config CMU_LFXO_FREQ
default 32768
config LOG_BACKEND_SWO_FREQ_HZ
default 875000
depends on LOG_BACKEND_SWO
endif # BOARD_SLTB009A
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb009a/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
CONFIG_CMU_HFCLK_HFRCO=y
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb009a/sltb009a_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```restructuredtext
.. _xg27_dk2602a:
EFR32xG27 Dev Kit (xG27-DK2602A)
################################
Silicon Labs xG27-DK2602A is a Dev Kit using the EFR32BG27 SoC. The kit
consists of the EFR32BG27 +8 dBm Dev Kit Board (BRD2602A).
.. figure:: ./xg27_dk2602a.png
:height: 260px
:align: center
:alt: xG27-DK2602A
xG27-DK2602A (image courtesy of Silicon Labs)
Hardware
********
- EFR32BG27 Blue Gecko Wireless SoC with up to 76.8 MHz operating frequency
- ARM Cortex M33 core with 64 kB RAM and 768 kB Flash
- Macronix ultra low power 8-Mbit SPI flash (MX25R8035F)
- 2.4 GHz ceramic antenna for wireless transmission
- Silicon Labs Si7021 relative humidity and temperature sensor
- Vishay VEML6035 low power, high sensitivity ambient light Sensor
- Silicon Labs Si7210 hall effect sensor
- TDK InvenSense ICM-20689 6-axis inertial sensor
- Pair of PDM microphones
- One LED and one push button
- Power enable signals and isolation switches for ultra low power operation
- On-board SEGGER J-Link debugger for easy programming and debugging, which
includes a USB virtual COM port and Packet Trace Interface (PTI)
- Mini Simplicity connector for access to energy profiling and advanced wireless
network debugging
- Breakout pads for GPIO access and connection to external hardware
- Reset button
- CR2032 coin cell holder and external battery connector
For more information, refer to these documents:
- `xG27 Dev Kit User's Guide`_
Supported Features
==================
The xg27_dk2602a board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial |
+-----------+------------+-------------------------------------+
Flashing
========
The xG27 Dev Kit includes an embedded `J-Link`_ adapter built around
EFM32GG12 microcontroller (not user-programmable).
The adapter provides:
- SWD interface to EFR32BG27 for flashing and debugging.
- SWO trace interface to EFR32BG27 for tracing.
- UART interface to EFR32BG27 for console access.
- A USB connection to the host computer, which exposes CDC-ACM Serial Port
endpoints for access to the console UART interface and proprietary J-Link
endpoints for access to the SWD and SWO interfaces.
UART functionality of the adapter is accessible via standard CDC-ACM USB driver
present in most desktop operating systems and any standard serial port terminal
program e.g. `picocom`_.
SWD and SWO functionality is accessible via `Simplicity Commander`_.
The simplest way to flash the board is by using West, which runs Simplicity
Commander in unattended mode and passes all the necessary arguments to it.
- If Simplicity Commander is installed in the system and the directory in
which `commander` executable is located is present in the `PATH` environment
variable:
.. code-block:: console
west flash
- Otherwise, one should specify full path to the `commander` executable:
.. code-block:: console
west flash --commander <path_to_commander_directory>/commander
- In case several J-Link adapters are connected, you must specify serial number
of the adapter which should be used for flashing:
.. code-block:: console
west flash --dev-id <J-Link serial number>
Programming and Debugging
=========================
The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: xg27_dk2602a
:goals: build
Connect your device to your host computer using the USB port and you
should see a USB connection. Use `west`'s flash command
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:
.. code-block:: console
Hello World! xg27_dk2602a
.. _picocom:
path_to_url
.. _J-Link:
path_to_url
.. _Simplicity Commander:
path_to_url
.. _xG27 Dev Kit User's Guide:
path_to_url
``` | /content/code_sandbox/boards/silabs/dev_kits/xg27_dk2602a/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,143 |
```yaml
identifier: sltb010a@2
name: Thunderboard EFR32BG22 (SLTB010A, BRD4184B)
type: mcu
arch: arm
ram: 32
flash: 512
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- counter
- gpio
- uart
- i2c
- spi
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/sltb010a_2.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 114 |
```unknown
/*
*
*/
/ {
model = "Silicon Labs EFR32BG22 Thunderboard (SLTB010A) using BRD4184B";
compatible = "silabs,efr32bg22c224f512im40", "silabs,sltb010a",
"silabs,efr32bg22";
};
&button0 {
gpios = <&gpiob GECKO_PIN(3) GPIO_ACTIVE_LOW>;
};
&led0 {
gpios = <&gpioa GECKO_PIN(4) GPIO_ACTIVE_HIGH>;
};
&sw_sensor_enable {
enable-gpios = <&gpioc GECKO_PIN(6) GPIO_ACTIVE_HIGH>;
};
&sw_mic_enable {
enable-gpios = <&gpioc GECKO_PIN(7) GPIO_ACTIVE_HIGH>;
};
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/sltb010a_2.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 175 |
```cmake
board_runner_args(jlink "--device=EFR32BG22C224F512IM40" "--reset-after-load")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efr32bg22.dtsi>
#include <silabs/efr32bg2x-pinctrl.dtsi>
#include "thunderboard.dtsi"
/ {
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
sw0 = &button0;
spi0 = &usart0;
watchdog0 = &wdog0;
/* If enabled, MCUboot uses this for recovery mode entrance */
mcuboot-led0 = &led0;
mcuboot-button0 = &button0;
};
chosen {
zephyr,code-partition = &slot0_partition;
zephyr,bt-hci = &bt_hci_silabs;
};
};
&flash0 {
partitions {
/* Reserve 48 KiB for the bootloader */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x0000c000>;
read-only;
};
/* Reserve 224 KiB for the application in slot 0 */
slot0_partition: partition@c000 {
label = "image-0";
reg = <0x0000c000 0x00038000>;
};
/* Reserve 224 KiB for the application in slot 1 */
slot1_partition: partition@44000 {
label = "image-1";
reg = <0x00044000 0x00038000>;
};
/* Set 16 KiB of storage at the end of the 512 KiB of flash */
storage_partition: partition@7c000 {
label = "storage";
reg = <0x0007c000 0x00004000>;
};
};
};
&sw_imu_enable {
enable-gpios = <&gpiob GECKO_PIN(4) GPIO_ACTIVE_HIGH>;
};
&bt_hci_silabs {
status = "okay";
};
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/sltb010a.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 450 |
```yaml
identifier: sltb010a@0
name: Thunderboard EFR32BG22 (SLTB010A, BRD4184A)
type: mcu
arch: arm
ram: 32
flash: 512
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- counter
- gpio
- uart
- i2c
- spi
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/sltb010a_0.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 114 |
```cmake
# SPI is implemented via usart so node name isn't spi@...
list(APPEND EXTRA_DTC_FLAGS "-Wno-spi_bus_bridge")
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/pre_dt_board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```unknown
/*
*
*/
/ {
model = "Silicon Labs EFR32BG22 Thunderboard (SLTB010A) using BRD4184A";
compatible = "silabs,efr32bg22c224f512im40", "silabs,sltb010a",
"silabs,efr32bg22";
};
&sw_sensor_enable {
enable-gpios = <&gpioa GECKO_PIN(4) GPIO_ACTIVE_HIGH>;
};
&sw_mic_enable {
enable-gpios = <&gpioa GECKO_PIN(0) GPIO_ACTIVE_HIGH>;
};
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/sltb010a_0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```c
/*
*
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/init.h>
#include <zephyr/logging/log.h>
#ifdef CONFIG_SOC_GECKO_DEV_INIT
#include "em_cmu.h"
#endif
LOG_MODULE_REGISTER(thunderboard, CONFIG_BOARD_SLTB010A_LOG_LEVEL);
static int thunderboard_init_clocks(void);
static int thunderboard_init(void)
{
int ret;
#ifdef CONFIG_SOC_GECKO_DEV_INIT
thunderboard_init_clocks();
#endif
static struct gpio_dt_spec wake_up_gpio_dev =
GPIO_DT_SPEC_GET(DT_NODELABEL(wake_up_trigger), gpios);
if (!gpio_is_ready_dt(&wake_up_gpio_dev)) {
LOG_ERR("Wake-up GPIO device was not found!\n");
return -ENODEV;
}
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
if (ret < 0) {
return ret;
}
return 0;
}
#ifdef CONFIG_SOC_GECKO_DEV_INIT
static int thunderboard_init_clocks(void)
{
CMU_ClockSelectSet(cmuClock_SYSCLK, cmuSelect_HFRCODPLL);
#if defined(_CMU_EM01GRPACLKCTRL_MASK)
CMU_ClockSelectSet(cmuClock_EM01GRPACLK, cmuSelect_HFRCODPLL);
#endif
#if defined(_CMU_EM01GRPBCLKCTRL_MASK)
CMU_ClockSelectSet(cmuClock_EM01GRPBCLK, cmuSelect_HFRCODPLL);
#endif
CMU_ClockSelectSet(cmuClock_EM23GRPACLK, cmuSelect_LFRCO);
#if defined(RTCC_PRESENT)
CMU_ClockSelectSet(cmuClock_RTCC, cmuSelect_LFRCO);
#endif
CMU_ClockSelectSet(cmuClock_WDOG0, cmuSelect_LFRCO);
return 0;
}
#endif
/* needs to be done after GPIO driver init */
SYS_INIT(thunderboard_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/board.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 423 |
```unknown
# EFR32BG SLTB010A board
config BOARD_SLTB010A
select SOC_PART_NUMBER_EFR32BG22C224F512IM40
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/Kconfig.sltb010a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```restructuredtext
.. _efm32gg_sltb009a:
EFM32GG12 Thunderboard (SLTB009A)
#################################
Overview
********
The EFM32GG12 Thunderboard Kit (SLTB009A) is an evaluation platform for the
EFM32GG12 Giant Gecko Microcontroller, featuring an ARM Cortex-M4 with FPU,
1024kB flash, and 192kB RAM.
.. figure:: sltb009a.jpg
:align: center
:alt: SLTB009A
SLTB009A (Credit: Silicon Labs)
Hardware
********
- PDM stereo microphones
- USB connectivity
- On-board Segger J-Link USB debugger
- 2 user buttons and 2 LEDs
- USB C connector
For more information about the WGM160P and SLTB009A board:
- `SLTB009A Website`_
- `SLTB009A User Guide`_
- `EFM32GG12 Datasheet`_
- `EFM32GG12 Reference Manual`_
Supported Features
==================
The efm32gg_sltb009a board configuration supports the following hardware
features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| MPU | on-chip | memory protection unit |
+-----------+------------+-------------------------------------+
| COUNTER | on-chip | rtcc |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c port-polling |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/dev_kits/sltb009a/sltb009a_defconfig`
Connections and IOs
===================
The EFM32GG12 MCU has six GPIO controllers (PORTA to PORTF), all of which are
currently enabled for the SLTB009A board.
In the following table, the column **Name** contains pin names. For example, PE1
means pin number 1 on PORTE, as used in the board's datasheets and manuals.
+-------+-------------+-------------------------------------+
| Name | Function | Usage |
+=======+=============+=====================================+
| PE12 | GPIO | LED0 |
+-------+-------------+-------------------------------------+
| PA13 | GPIO | LED1 |
+-------+-------------+-------------------------------------+
| PD5 | GPIO | Push Button PB0 |
+-------+-------------+-------------------------------------+
| PD8 | GPIO | Push Button PB1 |
+-------+-------------+-------------------------------------+
| PE7 | UART_TX | UART TX Console VCOM_TX US0_TX #1 |
+-------+-------------+-------------------------------------+
| PE6 | UART_RX | UART RX Console VCOM_RX US0_RX #1 |
+-------+-------------+-------------------------------------+
| PC0 | I2C_SDA | SENSOR_I2C_SDA I2C0_SDA #1 |
+-------+-------------+-------------------------------------+
| PC1 | I2C_SCL | SENSOR_I2C_SCL I2C0_SCL #1 |
+-------+-------------+-------------------------------------+
| PC4 | I2C_SDA | SENSOR_I2C_SDA I2C1_SDA #1 |
+-------+-------------+-------------------------------------+
| PC5 | I2C_SCL | SENSOR_I2C_SCL I2C1_SCL #1 |
+-------+-------------+-------------------------------------+
System Clock
============
The EFM32GG12 MCU is configured to work at 72 MHz.
Serial Port
===========
The EFM32GG12 SoC has five USARTs, two UARTs and two Low Energy UARTs (LEUART).
USART0 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
from `J-Link-Downloads`_
Flashing
========
The SLTB009A includes an `J-Link`_ serial and debug adaptor built into the
board. The adaptor provides:
- A USB connection to the host computer
- A physical UART connection which is relayed over interface USB serial port.
Flashing an application to SLTB009A
-----------------------------------
Connect the SLTB009A to your host computer using the USB port.
Here is an example to build and flash the :ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: sltb009a
:goals: flash
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'll see the following message on the corresponding serial port
terminal session:
.. code-block:: console
Hello World! sltb009a
.. _SLTB009A Website:
path_to_url
.. _SLTB009A User Guide:
path_to_url
.. _EFM32GG12 Datasheet:
path_to_url
.. _EFM32GG12 Reference Manual:
path_to_url
.. _J-Link:
path_to_url
.. _J-Link-Downloads:
path_to_url
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb009a/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,267 |
```yaml
boards:
- name: sltb010a
vendor: silabs
socs:
- name: efr32bg22c224f512im40
revision:
format: number
default: "2"
revisions:
- name: "0"
- name: "2"
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SOC_GECKO_EMU_DCDC=y
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_PINCTRL=y
# Used if SysTick is enabled, ignored for BURTC
# (BURTC uses TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=76800000
# Use BURTC as system clock source
CONFIG_GECKO_BURTC_TIMER=y
CONFIG_CMU_BURTCCLK_LFXO=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1024
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/sltb010a_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 146 |
```unknown
# Thunderboard-style boards
config CMU_HFXO_FREQ
default 38400000
config CMU_LFXO_FREQ
default 32768
if SOC_GECKO_USE_RAIL
config FPU
default y
endif # SOC_GECKO_USE_RAIL
if BT
config FPU
default y
config COMMON_LIBC_MALLOC_ARENA_SIZE
default 8192
config MAIN_STACK_SIZE
default 3072 if PM
default 2304
endif # BT
config REGULATOR
default y if SI7210
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```unknown
# EFR32 Thunderboard-style boards
module = BOARD_SLTB010A
module-str = Board Control
source "subsys/logging/Kconfig.template.log_config"
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```yaml
description: GPIO Wake Up Trigger for EFR32BG22/EFR32BG27
compatible: "silabs,gecko-wake-up-trigger"
include: base.yaml
properties:
gpios:
type: phandle-array
required: true
description: |
GPIO used as wake up trigger from EM4 sleep
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/dts/bindings/silabs,gecko-wake-up-triggers.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <silabs/gpio_gecko.h>
/ {
chosen {
zephyr,bt-c2h-uart = &usart1;
zephyr,console = &usart1;
zephyr,shell-uart = &usart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpiob GECKO_PIN(0) GPIO_ACTIVE_HIGH>;
label = "LED 0";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpiob GECKO_PIN(1) GPIO_ACTIVE_LOW>;
label = "User Push Button 0";
zephyr,code = <INPUT_KEY_0>;
};
};
wake_up_trigger: gpio-wake-up {
compatible = "silabs,gecko-wake-up-trigger";
gpios = <&gpioa GECKO_PIN(5) GPIO_ACTIVE_LOW>;
};
/* GPIOs that power up different sensors */
sw_sensor_enable: gpio_switch_0 {
compatible = "regulator-fixed";
status = "okay";
regulator-name = "sw_sensor_enable";
startup-delay-us = <100000>;
/* Always on since sensor drivers won't enable it automatically */
regulator-always-on;
};
sw_mic_enable: gpio_switch_1 {
compatible = "regulator-fixed";
status = "okay";
regulator-name = "sw_mic_enable";
startup-delay-us = <100000>;
};
sw_imu_enable: gpio_switch_2 {
compatible = "regulator-fixed";
status = "okay";
regulator-name = "sw_imu_enable";
startup-delay-us = <100000>;
};
};
&cpu0 {
clock-frequency = <76800000>;
};
&pstate_em3 {
status = "disabled";
};
&usart0 {
status = "okay";
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
cs-gpios = <&gpioc 3 GPIO_ACTIVE_LOW>;
mx25r80: mx25r8035f@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <80000000>;
size = <0x800000>;
jedec-id = [c2 28 14];
sfdp-bfp = [
e5 20 f1 ff ff ff 7f 00 44 eb 08 6b 08 3b 04 bb
ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
10 d8 00 ff 23 72 f5 00 82 ed 04 b7 44 83 38 44
30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff
];
};
};
&usart1 {
current-speed = <115200>;
status = "okay";
pinctrl-0 = <&usart1_default>;
pinctrl-names = "default";
};
&wdog0 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
};
};
&gpio {
location-swo = <0>;
status = "okay";
};
&gpioa {
status = "okay";
};
&gpiob {
status = "okay";
};
&gpioc {
status = "okay";
};
&burtc0 {
status = "okay";
};
&stimer0 {
status = "okay";
};
&trng {
status = "okay";
};
&pinctrl {
i2c0_default: i2c0_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, D, 2)>,
<GECKO_PSEL(I2C_SCL, D, 3)>,
<GECKO_LOC(I2C_SDA, 3)>,
<GECKO_LOC(I2C_SCL, 3)>;
};
};
};
&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
status = "okay";
si7210@30 {
compatible = "silabs,si7210";
status = "okay";
reg = <0x30>;
};
};
&adc0 {
status = "okay";
};
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/thunderboard.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,077 |
```cmake
#
#
board_runner_args(jlink "--device=EFR32MG24BxxxF1536" "--reset-after-load")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=76800000
CONFIG_CMU_HFCLK_HFXO=y
CONFIG_CMU_HFCLK_LFXO=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_PINCTRL=y
CONFIG_REGULATOR=y
CONFIG_SOC_GECKO_EMU_DCDC=y
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/xg24_dk2601b_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 111 |
```cmake
# SPI is implemented via usart so node name isn't spi@...
list(APPEND EXTRA_DTC_FLAGS "-Wno-spi_bus_bridge")
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/pre_dt_board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```restructuredtext
.. _sltb010a:
EFR32BG22 Thunderboard (SLTB010A)
#################################
SLTB010A is a development kit based on the EFR32BG22 SoC. Early revisions of
the kit (A00 and A01) use a slightly different PCB (BRD4184A) from later
revisions (BRD4184B).
.. image:: ./sltb010a.jpg
:align: center
:alt: SLTB010A board
Hardware
********
- EFR32BG22 Blue Gecko Wireless SoC with upto 76.8 MHz operating frequency
- ARM Cortex M33 core with 32 kB RAM and 512 kB Flash
- Macronix ultra low power 8-Mbit SPI flash (MX25R8035F)
- 2.4 GHz ceramic antenna for wireless transmission
- Silicon Labs Si7021 relative humidity and temperature sensor
- Silicon Labs Si1133 UV index and ambient light sensor (EFR32BG22-BRD4184A)
- Vishay VEML6035 ambient light sensor (EFR32BG22-BRD4184B)
- Silicon Labs Si7210 hall effect sensor
- TDK InvenSense ICM-20648 6-axis inertial sensor
- Two Knowles SPK0641HT4H-1 MEMS microphones with PDM output (EFR32BG22-BRD4184B)
- One LED and one push button
- Power enable signals and isolation switches for ultra low power operation
- On-board SEGGER J-Link debugger for easy programming and debugging, which
includes a USB virtual COM port and Packet Trace Interface (PTI)
- Mini Simplicity connector for access to energy profiling and advanced wireless
network debugging
- Breakout pads for GPIO access and connection to external hardware
- Reset button
- Automatic switch-over between USB and battery power
- CR2032 coin cell holder and external battery connector
For more information about the EFR32BG SoC and Thunderboard EFR32BG22 board:
- `EFR32BG22 Website`_
- `EFR32BG22 Datasheet`_
- `EFR32xG22 Reference Manual`_
- `Thunderboard EFR32BG22 Website`_
- `EFR32BG22-BRD4184A User Guide`_
- `EFR32BG22-BRD4184B User Guide`_
- `EFR32BG22-BRD4184A Schematics`_
- `EFR32BG22-BRD4184B Schematics`_
Supported Features
==================
The sltb010a board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| MPU | on-chip | memory protection unit |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| COUNTER | on-chip | stimer |
+-----------+------------+-------------------------------------+
| SPI(M/S) | on-chip | spi |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
| TRNG | on-chip | true random number generator |
+-----------+------------+-------------------------------------+
| I2C(M/S) | on-chip | i2c |
+-----------+------------+-------------------------------------+
| RADIO | on-chip | bluetooth |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/dev_kits/sltb010a/sltb010a_defconfig`.
Connections and IOs
===================
The EFR32BG22 SoC has four gpio controllers (PORTA, PORTB, PORTC and PORTD).
There are two variants of this board, "A" and "B". Please take a look at your PCB,
to determine which one you have, as the GPIO pin bindings vary between those two.
BRD4184A (SLTB010A revision A00 and A01):
+------+-------------+-----------------------------------+
| Pin | Function | Usage |
+======+=============+===================================+
| PB0 | GPIO | LED0 (YELLOW) |
+------+-------------+-----------------------------------+
| PB1 | GPIO | SW0 Push Button PB0 |
+------+-------------+-----------------------------------+
| PA5 | UART_TX | UART TX Console VCOM_TX US1_TX #1 |
+------+-------------+-----------------------------------+
| PA6 | UART_RX | UART RX Console VCOM_RX US1_RX #1 |
+------+-------------+-----------------------------------+
BRD4184B (SLTB010A revision A02 and newer):
+------+-------------+-----------------------------------+
| Pin | Function | Usage |
+======+=============+===================================+
| PA4 | GPIO | LED0 (YELLOW) |
+------+-------------+-----------------------------------+
| PB3 | GPIO | SW0 Push Button PB0 |
+------+-------------+-----------------------------------+
| PA5 | UART_TX | UART TX Console VCOM_TX US1_TX #1 |
+------+-------------+-----------------------------------+
| PA6 | UART_RX | UART RX Console VCOM_RX US1_RX #1 |
+------+-------------+-----------------------------------+
System Clock
============
The EFR32BG22 SoC is configured to use the 38.4 MHz external oscillator on the
board.
Programming and Debugging
=========================
Flashing an application
-----------------------
Connect your device to your host computer using the USB port.
The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application, then flash it to the device:
BRD4184A:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: sltb010a@0
:goals: flash
BRD4184B:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: sltb010a@2
:goals: flash
.. note::
`west flash` requires `SEGGER J-Link software`_ to be installed on you host
computer.
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:
.. code-block:: console
Hello World! sltb010a
Bluetooth
=========
To use the BLE function, run the command below to retrieve necessary binary
blobs from the SiLabs HAL repository.
.. code-block:: console
west blobs fetch hal_silabs
Then build the Zephyr kernel and a Bluetooth sample with the following
command. The :ref:`bluetooth-observer-sample` sample application is used in
this example.
BRD4184A:
.. zephyr-app-commands::
:zephyr-app: samples/bluetooth/observer
:board: sltb010a@0
:goals: build
BRD4184B:
.. zephyr-app-commands::
:zephyr-app: samples/bluetooth/observer
:board: sltb010a@2
:goals: build
.. _Thunderboard EFR32BG22 Website:
path_to_url
.. _EFR32BG22-BRD4184A User Guide:
path_to_url
.. _EFR32BG22-BRD4184B User Guide:
path_to_url
.. _EFR32BG22-BRD4184A Schematics:
path_to_url
.. _EFR32BG22-BRD4184B Schematics:
path_to_url
.. _EFR32BG22 Website:
path_to_url
.. _EFR32BG22 Datasheet:
path_to_url
.. _EFR32xG22 Reference Manual:
path_to_url
.. _SEGGER J-Link software:
path_to_url
``` | /content/code_sandbox/boards/silabs/dev_kits/sltb010a/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,835 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/printk.h>
#include <zephyr/logging/log.h>
#ifdef CONFIG_SOC_GECKO_DEV_INIT
#include "em_cmu.h"
#endif
LOG_MODULE_REGISTER(efr32xg24_dk2601b, CONFIG_BOARD_EFR32MG24_LOG_LEVEL);
static int efr32xg24_dk2601b_init_clocks(void);
static int efr32xg24_dk2601b_init(void)
{
int ret;
#ifdef CONFIG_SOC_GECKO_DEV_INIT
efr32xg24_dk2601b_init_clocks();
#endif
static struct gpio_dt_spec wake_up_gpio_dev =
GPIO_DT_SPEC_GET(DT_NODELABEL(wake_up_trigger), gpios);
if (!gpio_is_ready_dt(&wake_up_gpio_dev)) {
LOG_ERR("Wake-up GPIO device was not found!\n");
return -ENODEV;
}
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
if (ret < 0) {
return ret;
}
return 0;
}
#ifdef CONFIG_SOC_GECKO_DEV_INIT
static int efr32xg24_dk2601b_init_clocks(void)
{
CMU_ClockSelectSet(cmuClock_SYSCLK, cmuSelect_HFRCODPLL);
#if defined(_CMU_EM01GRPACLKCTRL_MASK)
CMU_ClockSelectSet(cmuClock_EM01GRPACLK, cmuSelect_HFRCODPLL);
#endif
#if defined(_CMU_EM01GRPBCLKCTRL_MASK)
CMU_ClockSelectSet(cmuClock_EM01GRPBCLK, cmuSelect_HFRCODPLL);
#endif
CMU_ClockSelectSet(cmuClock_EM23GRPACLK, cmuSelect_LFRCO);
CMU_ClockSelectSet(cmuClock_EM4GRPACLK, cmuSelect_LFRCO);
#if defined(RTCC_PRESENT)
CMU_ClockSelectSet(cmuClock_RTCC, cmuSelect_LFRCO);
#endif
#if defined(SYSRTC_PRESENT)
CMU_ClockSelectSet(cmuClock_SYSRTC, cmuSelect_LFRCO);
#endif
CMU_ClockSelectSet(cmuClock_WDOG0, cmuSelect_LFRCO);
#if WDOG_COUNT > 1
CMU_ClockSelectSet(cmuClock_WDOG1, cmuSelect_LFRCO);
#endif
return 0;
}
#endif
/* needs to be done after GPIO driver init */
SYS_INIT(efr32xg24_dk2601b_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/board.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 570 |
```yaml
identifier: xg24_dk2601b
name: xG24 Dev Kit (xG24-DK2601B, BRD2601B)
type: mcu
arch: arm
ram: 256
flash: 1536
toolchain:
- zephyr
- gnuarmemb
supported:
- counter
- gpio
- uart
- watchdog
testing:
ignore_tags:
- net
- bluetooth
- pm
- hwinfo
vendor: silabs
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/xg24_dk2601b.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```yaml
board:
name: xg24_dk2601b
vendor: silabs
socs:
- name: efr32mg24b310f1536im48
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```unknown
# EFR32XG24 DK2601B board
config BOARD_XG24_DK2601B
select SOC_PART_NUMBER_EFR32MG24B310F1536IM48
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/Kconfig.xg24_dk2601b | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```unknown
# EFR32XG24 DK2601B board
if BOARD_XG24_DK2601B
config CMU_HFXO_FREQ
default 40000000
config CMU_LFXO_FREQ
default 32768
config FLASH_BASE_ADDRESS
hex
default 0x08000000
if SOC_GECKO_USE_RAIL
config FPU
default y
endif # SOC_GECKO_USE_RAIL
if BT
config FPU
default y
config COMMON_LIBC_MALLOC_ARENA_SIZE
default 8192
config MAIN_STACK_SIZE
default 2304
if SHELL
config SHELL_STACK_SIZE
default 4096
endif # SHELL
endif # BT
endif # BOARD_XG24_DK2601B
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 165 |
```unknown
# EFR32XG24 DK2601B board
if BOARD_XG24_DK2601B
module = BOARD_EFR32MG24
module-str = Board Control
source "subsys/logging/Kconfig.template.log_config"
endif # BOARD_XG24_DK2601B
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```yaml
description: GPIO Wake Up Trigger for EFR32MG24
compatible: "silabs,gecko-wake-up-trigger"
include: base.yaml
properties:
gpios:
type: phandle-array
required: true
description: |
GPIO used as wake up trigger from EM4 sleep
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/dts/bindings/silabs,gecko-wake-up-trigger.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efr32mg24b310f1536im48.dtsi>
#include <silabs/efr32mg24-pinctrl.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "Silicon Labs BRD2601B (xG24 Dev Kit)";
compatible = "silabs,xg24_brd2601b", "silabs,efr32mg24";
chosen {
zephyr,console = &usart0;
zephyr,shell-uart = &usart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,bt-hci = &bt_hci_silabs;
};
aliases {
led0 = &red_led;
led1 = &green_led;
led2 = &blue_led;
sw0 = &button0;
sw1 = &button1;
watchdog0 = &wdog0;
};
leds {
compatible = "gpio-leds";
red_led: led_2 {
gpios = <&gpiod GECKO_PIN(2) GPIO_ACTIVE_LOW>;
};
green_led: led_0 {
gpios = <&gpioa GECKO_PIN(4) GPIO_ACTIVE_LOW>;
};
blue_led: led_1 {
gpios = <&gpiob GECKO_PIN(0) GPIO_ACTIVE_LOW>;
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpiob GECKO_PIN(2) GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
button1: button_1 {
gpios = <&gpiob GECKO_PIN(3) GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_1>;
};
};
wake_up_trigger: gpio-wake-up {
compatible = "silabs,gecko-wake-up-trigger";
gpios = <&gpioa GECKO_PIN(5) GPIO_ACTIVE_LOW>;
};
sensor_enable: gpio_switch_0 {
compatible = "regulator-fixed";
regulator-name = "sensor_enable";
enable-gpios = <&gpioc GECKO_PIN(9) GPIO_ACTIVE_HIGH>;
regulator-boot-on;
};
};
&cpu0 {
clock-frequency = <78000000>;
};
&usart0 {
current-speed = <115200>;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
status = "okay";
};
&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
status = "okay";
veml6035: veml6035@29 {
compatible = "vishay,veml7700";
reg = <0x29>;
status = "okay";
};
si7210: si7210@30 {
compatible = "silabs,si7210";
reg = <0x30>;
status = "okay";
};
si7021: si7021@40 {
compatible = "silabs,si7006";
reg = <0x40>;
status = "okay";
};
};
&gpio {
status = "okay";
};
&gpioa {
status = "okay";
};
&gpiob {
status = "okay";
};
&gpioc {
status = "okay";
};
&gpiod {
status = "okay";
};
&wdog0 {
status = "okay";
};
&se {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Reserve 48 kB for the bootloader */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 0x0000c000>;
read-only;
};
/* Reserve 464 kB for the application in slot 0 */
slot0_partition: partition@c000 {
label = "image-0";
reg = <0x0000c000 0x00074000>;
};
/* Reserve 464 kB for the application in slot 1 */
slot1_partition: partition@80000 {
label = "image-1";
reg = <0x00080000 0x00074000>;
};
/* Reserve 32 kB for the scratch partition */
scratch_partition: partition@f4000 {
label = "image-scratch";
reg = <0x000f4000 0x00008000>;
};
/* Set 528Kb of storage at the end of the 1024Kb of flash */
storage_partition: partition@fc000 {
label = "storage";
reg = <0x000fc000 0x00084000>;
};
};
};
&adc0 {
status = "okay";
};
&stimer0 {
status = "okay";
};
&bt_hci_silabs {
status = "okay";
};
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/xg24_dk2601b.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,183 |
```restructuredtext
.. _starter_kits:
Starter Kits
############
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/boards/silabs/starter_kits/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 33 |
```unknown
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=24000000
CONFIG_CMU_HFCLK_HFXO=y
# Kernel Options due to Low Memory (8k)
CONFIG_MAIN_STACK_SIZE=640
CONFIG_IDLE_STACK_SIZE=200
CONFIG_ISR_STACK_SIZE=512
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3400a/slstk3400a_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efm32hg322f64.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "Silicon Labs EFM32HG SLSTK3400A board";
compatible = "silabs,slstk3400a", "silabs,efm32hg";
chosen {
zephyr,console = &usart1;
zephyr,shell-uart = &usart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
led1 = &led1;
sw0 = &button0;
sw1 = &button1;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpiof 4 0>;
label = "LED 0";
};
led1: led_1 {
gpios = <&gpiof 5 0>;
label = "LED 1";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
/* gpio flags need validation */
gpios = <&gpioc 9 GPIO_ACTIVE_LOW>;
label = "User Push Button 0";
zephyr,code = <INPUT_KEY_0>;
};
button1: button_1 {
/* gpio flags need validation */
gpios = <&gpioc 10 GPIO_ACTIVE_LOW>;
label = "User Push Button 1";
zephyr,code = <INPUT_KEY_1>;
};
};
};
&cpu0 {
clock-frequency = <24000000>;
};
&gpioa {
status = "okay";
board-controller-enable {
gpio-hog;
gpios = <9 GPIO_ACTIVE_HIGH>;
output-high;
};
};
&gpioc {
status = "okay";
};
&gpiof {
status = "okay";
};
&usart1 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(4) GECKO_PORT_A GECKO_PIN(0)>;
location-tx = <GECKO_LOCATION(4) GECKO_PORT_F GECKO_PIN(2)>;
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 4Kb of storage at the end of the 64Kb of flash */
storage_partition: partition@f000 {
label = "storage";
reg = <0x0000f000 0x00001000>;
};
};
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3400a/slstk3400a.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 629 |
```restructuredtext
.. _efr32mg24_dk2601b:
EFR32xG24 Dev Kit (xG24-DK2601B)
################################
Overview
********
The EFR32MG24 Mighty Gecko Board dev kit contains
a Wireless System-On-Chip from the EFR32MG24 family built on an
ARM Cortex-M33F processor with excellent low power capabilities.
.. figure:: ./img/xg24_dk2601b.jpg
:height: 260px
:align: center
:alt: xG24-DK2601B Dev Kit board
xG24-DK2601B (image courtesy of Silicon Labs)
Hardware
********
- EFR32MG24B310F1536IM48-B Mighty Gecko SoC
- CPU core: ARM Cortex-M33 with FPU
- Flash memory: 1536 kB
- RAM: 256 kB
- Transmit power: up to +20 dBm
- Operation frequency: 2.4 GHz
- Crystals for LFXO (32.768 kHz) and HFXO (38.4 MHz).
- On board sensors:
- Silicon Labs Si7021 relative humidity & temperature sensor
- Silicon Labs Si7210 hall effect sensor
- 2x TDK InvenSense ICS-43434 MEMS microphones with I2S output
- TDK InvenSense ICM-20689 6-axis inertial measurement sensor
- Vishay VEML6035 ambient light sensor
- Bosch BMP384 pressure sensor with internal temperature sensor
For more information about the EFR32MG24 SoC and BRD2601B board, refer to these
documents:
- `EFR32MG24 Website`_
- `EFR32MG24 Datasheet`_
- `EFR32xG24 Reference Manual`_
- `BRD2601B User Guide`_
Supported Features
==================
The board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| MPU | on-chip | memory protection unit |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| COUNTER | on-chip | stimer |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial |
+-----------+------------+-------------------------------------+
| TRNG | on-chip | semailbox |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
| I2C(M/S) | on-chip | i2c |
+-----------+------------+-------------------------------------+
| RADIO | on-chip | bluetooth |
+-----------+------------+-------------------------------------+
Other hardware features are currently not supported by the port.
Connections and IOs
===================
In the following table, the column **Name** contains Pin names. For example, PA2
means Pin number 2 on PORTA, as used in the board's datasheets and manuals.
+-------+-------------+-------------------------------------+
| Name | Function | Usage |
+=======+=============+=====================================+
| PA4 | GPIO | LED0 |
+-------+-------------+-------------------------------------+
| PB0 | GPIO | LED1 |
+-------+-------------+-------------------------------------+
| PB2 | GPIO | Push Button 0 |
+-------+-------------+-------------------------------------+
| PB3 | GPIO | Push Button 1 |
+-------+-------------+-------------------------------------+
| PA5 | USART0_TX | UART Console VCOM_TX US0_TX |
+-------+-------------+-------------------------------------+
| PA6 | USART0_RX | UART Console VCOM_RX US0_RX |
+-------+-------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/dev_kits/xg24_dk2601b/xg24_dk2601b_defconfig`
System Clock
============
The EFR32MG24 SoC is configured to use the 39 MHz external oscillator on the
board.
Serial Port
===========
The EFR32MG24 SoC has one USART and two EUSARTs.
USART0 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
from `J-Link-Downloads`_
Flashing
========
The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: xg24_dk2601b
:goals: build
Connect the xg24_dk2601b to your host computer using the USB port and you
should see a USB connection.
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'll see the following message on the corresponding serial port
terminal session:
.. code-block:: console
Hello World! xg24_dk2601b
Bluetooth
=========
To use the BLE function, run the command below to retrieve necessary binary
blobs from the SiLabs HAL repository.
.. code-block:: console
west blobs fetch hal_silabs
Then build the Zephyr kernel and a Bluetooth sample with the following
command. The :ref:`bluetooth-observer-sample` sample application is used in
this example.
.. zephyr-app-commands::
:zephyr-app: samples/bluetooth/observer
:board: xg24_dk2601b
:goals: build
.. _EFR32MG24 Website:
path_to_url#
.. _EFR32MG24 Datasheet:
path_to_url
.. _EFR32xG24 Reference Manual:
path_to_url
.. _BRD2601B User Guide:
path_to_url
.. _J-Link-Downloads:
path_to_url
``` | /content/code_sandbox/boards/silabs/dev_kits/xg24_dk2601b/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,422 |
```yaml
board:
name: slstk3400a
vendor: silabs
socs:
- name: efm32hg322f64
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3400a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```yaml
identifier: slstk3400a
name: EFM32 Happy Gecko Starter Kit (SLSTK3400A)
type: mcu
arch: arm
ram: 8
flash: 64
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- gpio
- nvs
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3400a/slstk3400a.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 96 |
```unknown
# EFM32HG SLSTK3400A board
if BOARD_SLSTK3400A
config CMU_HFXO_FREQ
default 24000000
config CMU_LFXO_FREQ
default 32768
endif # BOARD_SLSTK3400A
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3400a/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```unknown
# EFM32HG SLSTK3400A board
config BOARD_SLSTK3400A
select SOC_PART_NUMBER_EFM32HG322F64
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3400a/Kconfig.slstk3400a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```cmake
board_runner_args(jlink "--device=EFM32GG11B820F2048")
board_runner_args(openocd)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```yaml
identifier: slstk3701a
name: EFM32GG11 Giant Gecko Starter Kit (SLSTK3701A)
type: mcu
arch: arm
ram: 512
flash: 2048
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- i2c
- gpio
- netif:eth
- nvs
testing:
ignore_tags:
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/slstk3701a.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 108 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efm32gg11b820f2048gl192.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "slstk3701a-pinctrl.dtsi"
/ {
model = "Silicon Labs EFM32GG11 SLSTK3701A board";
compatible = "silabs,slstk3701a", "silabs,efm32gg11b";
chosen {
zephyr,console = &usart4;
zephyr,shell-uart = &usart4;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
led1 = &led1;
sw0 = &button0;
sw1 = &button1;
watchdog0 = &wdog0;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpioh 10 GPIO_ACTIVE_LOW>;
label = "LED 0";
};
led1: led_1 {
gpios = <&gpioh 13 GPIO_ACTIVE_LOW>;
label = "LED 1";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
/* gpio flags need validation */
gpios = <&gpioc 8 GPIO_ACTIVE_LOW>;
label = "User Push Button 0";
zephyr,code = <INPUT_KEY_0>;
};
button1: button_1 {
/* gpio flags need validation */
gpios = <&gpioc 9 GPIO_ACTIVE_LOW>;
label = "User Push Button 1";
zephyr,code = <INPUT_KEY_1>;
};
};
};
&usart0 {
current-speed = <115200>;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
status = "okay";
};
&usart4 {
current-speed = <115200>;
pinctrl-0 = <&usart4_default>;
pinctrl-names = "default";
status = "okay";
};
&leuart0 {
current-speed = <9600>;
location-rx = <GECKO_LOCATION(18) GECKO_PORT_D GECKO_PIN(11)>;
location-tx = <GECKO_LOCATION(18) GECKO_PORT_D GECKO_PIN(10)>;
status = "okay";
};
&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
status = "okay";
};
&i2c1 {
pinctrl-0 = <&i2c1_default>;
pinctrl-names = "default";
status = "okay";
};
&rtcc0 {
prescaler = <1>;
status = "okay";
};
&gpio {
location-swo = <0>;
status = "okay";
};
&gpioa {
status = "okay";
};
&gpiob {
status = "okay";
};
&gpioc {
status = "okay";
};
&gpiod {
status = "okay";
};
&gpioe {
status = "okay";
board-controller-enable {
gpio-hog;
gpios = <1 GPIO_ACTIVE_HIGH>;
output-high;
};
};
&gpiof {
status = "okay";
};
&gpiog {
status = "okay";
};
&gpioh {
status = "okay";
};
&gpioi {
status = "okay";
};
ð0 {
/* PHY address = 0 */
phy-address = <0>;
/* PHY management pins */
location-mdio = <GECKO_LOCATION(1)>;
location-phy_mdc = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(14)>;
location-phy_mdio = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(13)>;
/* RMII interface pins */
location-rmii = <GECKO_LOCATION(1)>;
location-rmii_refclk = <GECKO_LOCATION(5) GECKO_PORT_D GECKO_PIN(10)>;
location-rmii_crs_dv = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(11)>;
location-rmii_txd0 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(7)>;
location-rmii_txd1 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(6)>;
location-rmii_tx_en = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(8)>;
location-rmii_rxd0 = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(9)>;
location-rmii_rxd1 = <GECKO_LOCATION(1) GECKO_PORT_F GECKO_PIN(9)>;
location-rmii_rx_er = <GECKO_LOCATION(1) GECKO_PORT_D GECKO_PIN(12)>;
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 12Kb of storage at the end of the 2048Kb of flash */
storage_partition: partition@1fd000 {
label = "storage";
reg = <0x001fd000 0x00003000>;
};
};
};
&wdog0 {
status = "okay";
};
&trng0 {
status = "okay";
};
&cpu0 {
clock-frequency = <72000000>;
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/slstk3701a.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,289 |
```unknown
# EFM32GG11 SLSTK3701A board configuration
config BOARD_SLSTK3701A
select SOC_PART_NUMBER_EFM32GG11B820F2048GL192
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/Kconfig.slstk3701a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```restructuredtext
.. _slstk3400a:
EFM32 Happy Gecko (SLSTK3400A)
##############################
Overview
********
The EFM32 Happy Gecko Starter Kit SLSTK3400A contains a MCU from the
EFM32HG family built on ARM Cortex-M0+ processor with excellent low
power capabilities.
.. figure:: slstk3400a.jpg
:align: center
:alt: SLSTK3400A
SLSTK3400A (image courtesy of Silicon Labs)
Hardware
********
- Advanced Energy Monitoring system for precise current tracking
- Real-time energy and power profiling
- ARM Cortex M0+ with 64 kB Flash and 8 kB RAM
- 128 X 128 pixel Memory LCD
- 2 user buttons, 2 user LEDs and 2 touch buttons
- 20 pin expansion header
- Silicon Labs Si7021 Relative Humidity/Temperature sensor
- USB device interface
- Integrated SEGGER J-Link USB debugger/emulator with debug out functionality
See these documents for more information
- `EFM32HG Website`_
- `EFM32HG Datasheet`_
- `EFM32HG Reference Manual`_
- `SLSTK3400A Website`_
- `SLSTK3400A User Guide`_
- `SLSTK3400A Schematics`_
Supported Features
==================
The efm32hg_slstk3400 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| USART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/starter_kit/slstk3400a/slstk3400a_defconfig`
Other hardware features are currently not supported by the port.
Connections and IOs
===================
The EFM32HG SoC has six GPIO controllers (PORTA to PORTF), but only three are
currently enabled (PORTB, PORTE and PORTF) for the SLSTK3400A board.
In the following table, the column Name contains Pin names. For example, PF4
means Pin number 4 on PORTF, as used in the board's datasheets and manuals.
+-------+-------------+-------------------------------------+
| Name | Function | Usage |
+=======+=============+=====================================+
| PF4 | GPIO | LED0 |
+-------+-------------+-------------------------------------+
| PF5 | GPIO | LED1 |
+-------+-------------+-------------------------------------+
| PC9 | GPIO | Push Button PB0 |
+-------+-------------+-------------------------------------+
| PC10 | GPIO | Push Button PB1 |
+-------+-------------+-------------------------------------+
| PF7 | GPIO | Board Controller Enable |
| | | EFM_BC_EN |
+-------+-------------+-------------------------------------+
| PF2 | USART0_TX | USART Console EFM_BC_TX U0_TX #4 |
+-------+-------------+-------------------------------------+
| PA9 | USART0_RX | USART Console EFM_BC_RX U0_RX #4 |
+-------+-------------+-------------------------------------+
System Clock
============
The EFM32HG SoC is configured to use the 24 MHz external oscillator on the
board.
Serial Port
===========
The EFM32HG SoC has two USARTs, two UARTs and two Low Energy UARTs (LEUART).
USART1 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
from `J-Link-Downloads`_
Flashing
========
The SLSTK3400 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-SLSTK3400A
-------------------------------------------
The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: slstk3400a
:goals: build
Connect the SLSTK3400A to your host computer using the USB port and
you should see a USB connection that exposes a mass storage device (STK3400)
and a USB Serial Port. Copy the generated ``zephyr.bin`` in the STK3400 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 will see this message written to the serial port:
.. code-block:: console
Hello World! slstk3400a
.. _SLSTK3400A Website:
path_to_url
.. _SLSTK3400A User Guide:
path_to_url
.. _SLSTK3400A Schematics:
path_to_url
.. _EFM32HG Website:
path_to_url
.. _EFM32HG Datasheet:
path_to_url
.. _EFM32HG Reference Manual:
path_to_url
.. _J-Link:
path_to_url
.. _J-Link-Downloads:
path_to_url
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3400a/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,325 |
```c
/*
*
*/
#include <zephyr/init.h>
#include "board.h"
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/printk.h>
#include "em_cmu.h"
static int efm32gg_stk3701a_init(void)
{
#ifdef CONFIG_ETH_GECKO
const struct device *cur_dev;
/* Enable the ethernet PHY power */
cur_dev = DEVICE_DT_GET(ETH_PWR_ENABLE_GPIO_NODE);
if (!device_is_ready(cur_dev)) {
printk("Ethernet PHY power gpio port is not ready!\n");
return -ENODEV;
}
gpio_pin_configure(cur_dev, ETH_PWR_ENABLE_GPIO_PIN, GPIO_OUTPUT);
gpio_pin_set(cur_dev, ETH_PWR_ENABLE_GPIO_PIN, 1);
/* Configure ethernet reference clock */
cur_dev = DEVICE_DT_GET(ETH_REF_CLK_GPIO_NODE);
if (!device_is_ready(cur_dev)) {
printk("Ethernet reference clock gpio port is not ready!\n");
return -ENODEV;
}
gpio_pin_configure(cur_dev, ETH_REF_CLK_GPIO_PIN, GPIO_OUTPUT);
gpio_pin_set(cur_dev, ETH_REF_CLK_GPIO_PIN, 0);
CMU_OscillatorEnable(cmuOsc_HFXO, true, true);
/* enable CMU_CLK2 as RMII reference clock */
CMU->CTRL |= CMU_CTRL_CLKOUTSEL2_HFXO;
CMU->ROUTELOC0 = (CMU->ROUTELOC0 & ~_CMU_ROUTELOC0_CLKOUT2LOC_MASK) |
(ETH_REF_CLK_LOCATION << _CMU_ROUTELOC0_CLKOUT2LOC_SHIFT);
CMU->ROUTEPEN |= CMU_ROUTEPEN_CLKOUT2PEN;
/* Release the ethernet PHY reset */
cur_dev = DEVICE_DT_GET(ETH_RESET_GPIO_NODE);
if (!device_is_ready(cur_dev)) {
printk("Ethernet PHY reset gpio port is not ready!\n");
return -ENODEV;
}
gpio_pin_configure(cur_dev, ETH_RESET_GPIO_PIN, GPIO_OUTPUT);
gpio_pin_set(cur_dev, ETH_RESET_GPIO_PIN, 1);
#endif /* CONFIG_ETH_GECKO */
return 0;
}
/* needs to be done after GPIO driver init */
SYS_INIT(efm32gg_stk3701a_init, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/board.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 476 |
```yaml
board:
name: slstk3701a
vendor: silabs
socs:
- name: efm32gg11b820f2048gl192
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
# EFM32GG STK3701A default board configuration
if BOARD_SLSTK3701A
config CMU_HFXO_FREQ
default 50000000
config CMU_HFRCO_FREQ
default 72000000
config CMU_LFXO_FREQ
default 32768
config LOG_BACKEND_SWO_FREQ_HZ
default 875000
depends on LOG_BACKEND_SWO
if NETWORKING
config NET_L2_ETHERNET
default y
endif # NETWORKING
endif # BOARD_SLSTK3701A
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 118 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
CONFIG_CMU_HFCLK_HFRCO=y
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/slstk3701a_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```unknown
/*
*
*/
#include <dt-bindings/pinctrl/gecko-pinctrl-s1.h>
&pinctrl {
/* configuration for usart0 device, default state - operating as UART */
usart0_default: usart0_default {
group1 {
psels = <GECKO_PSEL(UART_TX, A, 0)>,
<GECKO_PSEL(UART_RX, A, 1)>,
<GECKO_LOC(UART_TX, 0)>,
<GECKO_LOC(UART_RX, 0)>;
};
};
usart4_default: usart4_default {
group1 {
psels = <GECKO_PSEL(UART_TX, H, 4)>,
<GECKO_PSEL(UART_RX, H, 5)>,
<GECKO_LOC(UART_TX, 4)>,
<GECKO_LOC(UART_RX, 4)>;
};
};
i2c0_default: i2c0_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, C, 0)>,
<GECKO_PSEL(I2C_SCL, C, 1)>,
<GECKO_LOC(I2C_SDA, 4)>,
<GECKO_LOC(I2C_SCL, 4)>;
};
};
i2c1_default: i2c1_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, C, 4)>,
<GECKO_PSEL(I2C_SCL, C, 5)>,
<GECKO_LOC(I2C_SDA, 0)>,
<GECKO_LOC(I2C_SCL, 0)>;
};
};
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/slstk3701a-pinctrl.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 406 |
```objective-c
/*
*
*/
#ifndef __INC_BOARD_H
#define __INC_BOARD_H
/* Ethernet specific pins */
#ifdef CONFIG_ETH_GECKO
#define ETH_PWR_ENABLE_GPIO_NODE DT_NODELABEL(gpioi)
#define ETH_PWR_ENABLE_GPIO_PIN 10
#define ETH_RESET_GPIO_NODE DT_NODELABEL(gpioh)
#define ETH_RESET_GPIO_PIN 7
#define ETH_REF_CLK_GPIO_NODE DT_NODELABEL(gpiod)
#define ETH_REF_CLK_GPIO_PIN DT_PROP_BY_IDX(DT_INST(0, silabs_gecko_ethernet), location_rmii_refclk, 2)
#define ETH_REF_CLK_LOCATION DT_PROP_BY_IDX(DT_INST(0, silabs_gecko_ethernet), location_rmii_refclk, 0)
#endif /* CONFIG_ETH_GECKO */
#endif /* __INC_BOARD_H */
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/board.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 172 |
```ini
if {[info exists env(OPENOCD_INTERFACE)]} {
set INTERFACE $env(OPENOCD_INTERFACE)
} else {
# By default connect over Debug USB port using the J-Link interface
set INTERFACE "jlink"
}
source [find interface/$INTERFACE.cfg]
transport select swd
set CHIPNAME efm32
source [find target/efm32.cfg]
$_TARGETNAME configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
gdb_breakpoint_override hard
}
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}
$_TARGETNAME configure -rtos auto
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/support/openocd.cfg | ini | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 143 |
```cmake
#
#
#
board_runner_args(jlink "--device=EFM32PG1BxxxF256")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```unknown
# EFM32PG SLSTK3401A board
config BOARD_SLSTK3401A
select SOC_PART_NUMBER_EFM32PG1B200F256GM48
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/Kconfig.slstk3401a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
/*
*
*/
#include <dt-bindings/pinctrl/gecko-pinctrl-s1.h>
&pinctrl {
/* configuration for usart0 device, default state - operating as UART */
usart0_default: usart0_default {
group1 {
psels = <GECKO_PSEL(UART_TX, A, 0)>,
<GECKO_PSEL(UART_RX, A, 1)>,
<GECKO_LOC(UART_TX, 0)>,
<GECKO_LOC(UART_RX, 1)>;
};
};
i2c0_default: i2c0_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, C, 10)>,
<GECKO_PSEL(I2C_SCL, C, 11)>,
<GECKO_LOC(I2C_SDA, 15)>,
<GECKO_LOC(I2C_SCL, 15)>;
};
};
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/slstk3401a-pinctrl.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 224 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "slstk3401a-pinctrl.dtsi"
/ {
model = "Silicon Labs EFM32PG SLSTK3401A board";
chosen {
zephyr,console = &usart0;
zephyr,shell-uart = &usart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
led1 = &led1;
sw0 = &button0;
sw1 = &button1;
watchdog0 = &wdog0;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpiof 4 0>;
label = "LED 0";
};
led1: led_1 {
gpios = <&gpiof 5 0>;
label = "LED 1";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
/* gpio flags need validation */
gpios = <&gpiof 6 GPIO_ACTIVE_LOW>;
label = "User Push Button 0";
zephyr,code = <INPUT_KEY_0>;
};
button1: button_1 {
/* gpio flags need validation */
gpios = <&gpiof 7 GPIO_ACTIVE_LOW>;
label = "User Push Button 1";
zephyr,code = <INPUT_KEY_1>;
};
};
};
&cpu0 {
clock-frequency = <40000000>;
};
&usart0 {
current-speed = <115200>;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
status = "okay";
};
&leuart0 {
current-speed = <9600>;
location-rx = <GECKO_LOCATION(18) GECKO_PORT_D GECKO_PIN(11)>;
location-tx = <GECKO_LOCATION(18) GECKO_PORT_D GECKO_PIN(10)>;
status = "okay";
};
&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
status = "okay";
};
&rtcc0 {
prescaler = <1>;
status = "okay";
};
&gpio {
location-swo = <0>;
status = "okay";
};
&gpioa {
status = "okay";
board-controller-enable {
gpio-hog;
gpios = <5 GPIO_ACTIVE_HIGH>;
output-high;
};
};
&gpiob {
status = "okay";
};
&gpioc {
status = "okay";
};
&gpiod {
status = "okay";
};
&gpiof {
status = "okay";
};
&wdog0 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 6Kb of storage at the end of the 256Kb of flash */
storage_partition: partition@fe800 {
label = "storage";
reg = <0x0003e800 0x00001800>;
};
};
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/slstk3401a-common.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 749 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=40000000
CONFIG_CMU_HFCLK_HFXO=y
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/slstk3401a_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```restructuredtext
.. _efm32gg_stk3701a:
EFM32 Giant Gecko 11 (SLSTK3701A)
#################################
Overview
********
The EFM32 Giant Gecko Starter Kit SLSTK3701A contains an MCU from the
EFM32GG Series 1 family built on an ARM Cortex-M4F processor with excellent
low power capabilities.
.. figure:: slstk3701a.jpg
:align: center
:alt: EFM32GG11 SLSTK3701A
EFM32GG11 SLSTK3701A (image courtesy of Silicon Labs)
Hardware
********
- Advanced Energy Monitoring provides real-time information about the energy
consumption of an application or prototype design.
- Ultra low power 128x128 pixel color Memory-LCD
- 2 user buttons, 2 LEDs and a touch slider
- Relative humidity, magnetic Hall Effect and inductive-capacitive metal sensor
- USB interface for Host/Device/OTG
- 32 Mb Quad-SPI Flash memory
- SD card slot
- RJ-45 Ethernet jack
- 2 digital microphones
- On-board Segger J-Link USB debugger
For more information about the EFM32GG11 SoC and SLSTK3701A board:
- `EFM32GG Series 1 Website`_
- `EFM32GG11 Datasheet`_
- `EFM32GG11 Reference Manual`_
- `SLSTK3701A Website`_
- `SLSTK3701A User Guide`_
- `SLSTK3701A Schematics`_
Supported Features
==================
The slstk3701a board configuration supports the following hardware
features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| MPU | on-chip | memory protection unit |
+-----------+------------+-------------------------------------+
| COUNTER | on-chip | rtcc |
+-----------+------------+-------------------------------------+
| ETHERNET | on-chip | ethernet |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c port-polling |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/starter_kits/slstk3701a/slstk3701a_defconfig`
Other hardware features are currently not supported by the port.
Connections and IOs
===================
The EFM32GG11 SoC has nine GPIO controllers (PORTA to PORTI), all of which are
currently enabled for the SLSTK3701A board.
In the following table, the column **Name** contains pin names. For example, PE1
means pin number 1 on PORTE, as used in the board's datasheets and manuals.
+-------+-------------+-------------------------------------+
| Name | Function | Usage |
+=======+=============+=====================================+
| PH10 | GPIO | LED0 red |
+-------+-------------+-------------------------------------+
| PH11 | GPIO | LED0 green |
+-------+-------------+-------------------------------------+
| PH12 | GPIO | LED0 blue |
+-------+-------------+-------------------------------------+
| PH13 | GPIO | LED1 red |
+-------+-------------+-------------------------------------+
| PH14 | GPIO | LED1 green |
+-------+-------------+-------------------------------------+
| PH15 | GPIO | LED1 blue |
+-------+-------------+-------------------------------------+
| PC8 | GPIO | Push Button PB0 |
+-------+-------------+-------------------------------------+
| PC9 | GPIO | Push Button PB1 |
+-------+-------------+-------------------------------------+
| PE1 | GPIO | Board Controller Enable |
| | | EFM_BC_EN |
+-------+-------------+-------------------------------------+
| PH4 | UART_TX | UART TX Console VCOM_TX US0_TX #4 |
+-------+-------------+-------------------------------------+
| PH5 | UART_RX | UART RX Console VCOM_RX US0_RX #4 |
+-------+-------------+-------------------------------------+
| PI4 | I2C_SDA | SENSOR_I2C_SDA I2C2_SDA #7 |
+-------+-------------+-------------------------------------+
| PI5 | I2C_SCL | SENSOR_I2C_SCL I2C2_SCL #7 |
+-------+-------------+-------------------------------------+
System Clock
============
The EFM32GG11 SoC is configured to use the 50 MHz external oscillator on the
board.
Serial Port
===========
The EFM32GG11 SoC has six USARTs, two UARTs and two Low Energy UARTs (LEUART).
USART4 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
from `J-Link-Downloads`_
Flashing
========
The SLSTK3701A 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 device 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 SLSTK3701A
-------------------------------------
The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: slstk3701a
:goals: build
Connect the SLSTK3701A to your host computer using the USB port and you
should see a USB connection which exposes a mass storage device(STK3701A) and
a USB Serial Port. Copy the generated zephyr.bin to the STK3701A 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'll see the following message on the corresponding serial port
terminal session:
.. code-block:: console
Hello World! slstk3701a
.. _SLSTK3701A Website:
path_to_url
.. _SLSTK3701A User Guide:
path_to_url
.. _SLSTK3701A Schematics:
path_to_url
.. _EFM32GG Series 1 Website:
path_to_url
.. _EFM32GG11 Datasheet:
path_to_url
.. _EFM32GG11 Reference Manual:
path_to_url
.. _J-Link:
path_to_url
.. _J-Link-Downloads:
path_to_url
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3701a/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,626 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efm32pg1b200f256gm48.dtsi>
#include "slstk3401a-common.dtsi"
/ {
model = "Silicon Labs EFM32PG SLSTK3401A board";
compatible = "silabs,slstk3401a", "silabs,efm32pg1b";
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/slstk3401a.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```yaml
identifier: slstk3401a
name: EFM32 Pearl Gecko Starter Kit (SLSTK3401A)
type: mcu
arch: arm
ram: 32
flash: 256
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- i2c
- gpio
- nvs
- watchdog
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/slstk3401a.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 106 |
```unknown
# EFM32PG SLSTK3401A board
if BOARD_SLSTK3401A
config CMU_HFXO_FREQ
default 40000000
config CMU_LFXO_FREQ
default 32768
endif # BOARD_SLSTK3401A
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```yaml
board:
name: slstk3401a
vendor: silabs
socs:
- name: efm32pg1b200f256gm48
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```cmake
#
#
#
board_runner_args(jlink "--device=EFM32PG12BxxxF1024")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=40000000
CONFIG_CMU_HFCLK_HFXO=y
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32pg12b500f1024gl125_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efm32pg12b500f1024gl125.dtsi>
#include "slstk3402a_common.dtsi"
/ {
model = "Silicon Labs EFM32PG12 SLSTK3402A board";
compatible = "silabs,slstk3402a", "silabs,efm32pg12b";
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32pg12b500f1024gl125.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```yaml
identifier: slstk3402a/efm32jg12b500f1024gl125
name: EFM32JG12 SLSTK3402A
type: mcu
arch: arm
ram: 256
flash: 1024
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- i2c
- gpio
- nvs
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32jg12b500f1024gl125.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 115 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=40000000
CONFIG_CMU_HFCLK_HFXO=y
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32jg12b500f1024gl125_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```unknown
/*
*
*/
#include "slstk3402a-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "Silicon Labs EFM32PG12 STK3402A board";
chosen {
zephyr,console = &usart0;
zephyr,shell-uart = &usart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
led1 = &led1;
pwm-led0 = &pwm_led0;
sw0 = &button0;
sw1 = &button1;
watchdog0 = &wdog0;
watchdog1 = &wdog1;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpiof 4 0>;
label = "LED 0";
};
led1: led_1 {
gpios = <&gpiof 5 0>;
label = "LED 1";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
/* gpio flags need validation */
gpios = <&gpiof 6 GPIO_ACTIVE_LOW>;
label = "User Push Button 0";
zephyr,code = <INPUT_KEY_0>;
};
button1: button_1 {
/* gpio flags need validation */
gpios = <&gpiof 7 GPIO_ACTIVE_LOW>;
label = "User Push Button 1";
zephyr,code = <INPUT_KEY_1>;
};
};
pwmleds {
compatible = "pwm-leds";
status = "okay";
pwm_led0: pwm_led0 {
pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
};
&cpu0 {
clock-frequency = <40000000>;
};
&usart0 {
current-speed = <115200>;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
status = "okay";
};
&leuart0 {
current-speed = <9600>;
location-rx = <GECKO_LOCATION(18) GECKO_PORT_D GECKO_PIN(11)>;
location-tx = <GECKO_LOCATION(18) GECKO_PORT_D GECKO_PIN(10)>;
status = "okay";
};
&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
status = "okay";
};
&rtcc0 {
prescaler = <1>;
status = "okay";
};
&timer0 {
status = "okay";
pwm0: pwm {
status = "okay";
pin-location = <GECKO_LOCATION(28) GECKO_PORT_F GECKO_PIN(4)>;
prescaler = <1024>;
};
};
&gpio {
location-swo = <0>;
status = "okay";
};
&gpioa {
status = "okay";
board-controller-enable {
gpio-hog;
gpios = <5 GPIO_ACTIVE_HIGH>;
output-high;
};
};
&gpiob {
status = "okay";
};
&gpiod {
status = "okay";
};
&gpiof {
status = "okay";
};
&wdog0 {
status = "okay";
};
&wdog1 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 6Kb of storage at the end of the 1024Kb of flash */
storage_partition: partition@fe800 {
label = "storage";
reg = <0x000fe800 0x00001800>;
};
};
};
&trng0 {
status = "okay";
};
&adc0 {
status = "okay";
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a_common.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 911 |
```unknown
# EFM32PG12 SLSTK3402A board
config BOARD_SLSTK3402A
select SOC_PART_NUMBER_EFM32PG12B500F1024GL125 if BOARD_SLSTK3402A_EFM32PG12B500F1024GL125
select SOC_PART_NUMBER_EFM32JG12B500F1024GL125 if BOARD_SLSTK3402A_EFM32JG12B500F1024GL125
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/Kconfig.slstk3402a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```restructuredtext
.. _slstk3401a:
EFM32 Pearl Gecko (SLSTK3401A)
##############################
Overview
********
The EFM32 Pearl Gecko Starter Kit SLSTK3401A contains an MCU from the
EFM32PG family built on an ARM Cortex-M4F processor with excellent low
power capabilities.
.. figure:: slstk3401a.jpg
:align: center
:alt: EFM32PG-SLSTK3401A
EFM32PG-SLSTK3401A (image courtesy of Silicon Labs)
Hardware
********
- Advanced Energy Monitoring provides real-time information about the energy
consumption of an application or prototype design.
- Ultra low power 128x128 pixel Memory-LCD
- 2 user buttons, 2 LEDs and 2 capacitive buttons
- Humidity and temperature sensor
- On-board Segger J-Link USB debugger
For more information about the EFM32PG SoC and SLSTK3401A board:
- `EFM32PG Website`_
- `EFM32PG1 Datasheet`_
- `EFM32PG1 Reference Manual`_
- `SLSTK3401A Website`_
- `SLSTK3401A User Guide`_
Supported Features
==================
The slstk3401a board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| MPU | on-chip | memory protection unit |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| COUNTER | on-chip | rtcc |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c port-polling |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/starter_kits/slstk3401a/slstk3401a_defconfig`
Other hardware features are currently not supported by the port.
Connections and IOs
===================
The EFM32PG1 SoC has five GPIO controllers (PORTA to PORTD and PORTF) and
all are enabled for the SLSTK3401A board.
In the following table, the column **Name** contains pin names. For example, PF4
means pin number 4 on PORTF, as used in the board's datasheets and manuals.
+-------+-------------+-------------------------------------+
| Name | Function | Usage |
+=======+=============+=====================================+
| PF4 | GPIO | LED0 |
+-------+-------------+-------------------------------------+
| PF5 | GPIO | LED1 |
+-------+-------------+-------------------------------------+
| PF6 | GPIO | Push Button PB0 |
+-------+-------------+-------------------------------------+
| PF7 | GPIO | Push Button PB1 |
+-------+-------------+-------------------------------------+
| PA5 | GPIO | Board Controller Enable |
| | | EFM_BC_EN |
+-------+-------------+-------------------------------------+
| PA0 | UART_TX | UART TX Console VCOM_TX US0_TX #0 |
+-------+-------------+-------------------------------------+
| PA1 | UART_RX | UART RX Console VCOM_RX US0_RX #0 |
+-------+-------------+-------------------------------------+
| PD10 | UART_TX | EXP12_UART_TX LEU0_TX #18 |
+-------+-------------+-------------------------------------+
| PD11 | UART_RX | EXP14_UART_RX LEU0_RX #18 |
+-------+-------------+-------------------------------------+
| PC10 | I2C_SDA | ENV_I2C_SDA I2C0_SDA #15 |
+-------+-------------+-------------------------------------+
| PC11 | I2C_SCL | ENV_I2C_SCL I2C0_SCL #15 |
+-------+-------------+-------------------------------------+
System Clock
============
The EFM32PG SoC is configured to use the 40 MHz external oscillator on the
board.
Serial Port
===========
The EFM32PG SoC has two USARTs and one Low Energy UART (LEUART).
Programming and Debugging
*************************
.. note::
Before using the kit the first time, you should update the J-Link firmware
from `J-Link-Downloads`_
Flashing
========
The SLSTK3401A 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 device 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 SLSTK3401A
-------------------------------------
The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: slstk3401a
:goals: build
Connect the SLSTK3401A to your host computer using the USB port and you
should see a USB connection which exposes a mass storage device(SLSTK3401A).
Copy the generated zephyr.bin to the SLSTK3401A drive.
Use a USB-to-UART converter such as an FT232/CP2102 to connect to the UART on the
expansion header.
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'll see the following message on the corresponding serial port
terminal session:
.. code-block:: console
Hello World! slstk3401a
.. _SLSTK3401A Website:
path_to_url
.. _SLSTK3401A User Guide:
path_to_url
.. _EFM32PG Website:
path_to_url
.. _EFM32PG1 Datasheet:
path_to_url
.. _EFM32PG1 Reference Manual:
path_to_url
.. _J-Link:
path_to_url
.. _J-Link-Downloads:
path_to_url
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3401a/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,505 |
```yaml
board:
name: slstk3402a
vendor: silabs
socs:
- name: efm32pg12b500f1024gl125
- name: efm32jg12b500f1024gl125
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```yaml
identifier: slstk3402a/efm32pg12b500f1024gl125
name: EFM32PG12 SLSTK3402A
type: mcu
arch: arm
ram: 256
flash: 1024
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- i2c
- gpio
- nvs
- watchdog
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32pg12b500f1024gl125.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efm32jg12b500f1024gl125.dtsi>
#include "slstk3402a_common.dtsi"
/ {
model = "Silicon Labs EFM32JG12 STK3402A board ";
compatible = "silabs,slstk3402a_jg", "silabs,efm32jg12b";
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32jg12b500f1024gl125.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
# EFM32PG12 SLSTK3402A board
if BOARD_SLSTK3402A
config CMU_HFXO_FREQ
default 40000000
config CMU_LFXO_FREQ
default 32768
endif # BOARD_SLSTK3402A
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```unknown
/*
*
*/
#include <dt-bindings/pinctrl/gecko-pinctrl-s1.h>
&pinctrl {
/* configuration for usart0 device, default state - operating as UART */
usart0_default: usart0_default {
group1 {
psels = <GECKO_PSEL(UART_TX, A, 0)>,
<GECKO_PSEL(UART_RX, A, 1)>,
<GECKO_LOC(UART_TX, 0)>,
<GECKO_LOC(UART_RX, 0)>;
};
};
i2c0_default: i2c0_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, C, 10)>,
<GECKO_PSEL(I2C_SCL, C, 11)>,
<GECKO_LOC(I2C_SDA, 15)>,
<GECKO_LOC(I2C_SCL, 15)>;
};
};
};
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/slstk3402a-pinctrl.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 224 |
```cmake
board_runner_args(jlink "--device=EFM32WG990F256")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efm32wg990f256.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "Silicon Labs EFM32WG STK3800 board";
compatible = "silabs,efm32wg_stk3800", "silabs,efm32wg";
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
led1 = &led1;
sw0 = &button0;
sw1 = &button1;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpioe 2 0>;
label = "LED 0";
};
led1: led_1 {
gpios = <&gpioe 3 0>;
label = "LED 1";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
/* gpio flags need validation */
gpios = <&gpiob 9 GPIO_ACTIVE_LOW>;
label = "User Push Button 0";
zephyr,code = <INPUT_KEY_0>;
};
button1: button_1 {
/* gpio flags need validation */
gpios = <&gpiob 19 GPIO_ACTIVE_LOW>;
label = "User Push Button 1";
zephyr,code = <INPUT_KEY_1>;
};
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&gpioa {
status = "okay";
};
&gpiob {
status = "okay";
};
&gpioe {
status = "okay";
};
&gpiof {
status = "okay";
board-controller-enable {
gpio-hog;
gpios = <7 GPIO_ACTIVE_HIGH>;
output-high;
};
};
&uart0 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(1)>;
location-tx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(0)>;
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 6Kb of storage at the end of the 256Kb of flash */
storage_partition: partition@3e800 {
label = "storage";
reg = <0x0003e800 0x00001800>;
};
};
};
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/efm32wg_stk3800.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 638 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000
CONFIG_CMU_HFCLK_HFXO=y
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/efm32wg_stk3800_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```yaml
board:
name: efm32wg_stk3800
vendor: silabs
socs:
- name: efm32wg990f256
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
# EFM32WG STK3800 board
if BOARD_EFM32WG_STK3800
config CMU_HFXO_FREQ
default 48000000
config CMU_LFXO_FREQ
default 32768
endif # BOARD_EFM32WG_STK3800
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
# EFM32WG STK3800 board
config BOARD_EFM32WG_STK3800
select SOC_PART_NUMBER_EFM32WG990F256
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/Kconfig.efm32wg_stk3800 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```yaml
identifier: efm32wg_stk3800
name: EFM32 Wonder Gecko Starter Kit (EFM32WG-STK3800)
type: mcu
arch: arm
ram: 32
flash: 256
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- gpio
- nvs
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/efm32wg_stk3800.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```restructuredtext
.. _slstk3402a:
EFM32 Pearl Gecko 12 (SLSTK3402A)
#################################
Overview
********
The EFM32 Pearl Gecko 12 Starter Kit SLSTK3402A contains an MCU from the
EFM32PG family built on an ARM Cortex-M4F processor with excellent low
power capabilities.
.. figure:: slstk3402a.jpg
:align: center
:alt: SLSTK3402A
EFM32PG12 SLSTK3402A (image courtesy of Silicon Labs)
Hardware
********
- Advanced Energy Monitoring provides real-time information about the energy
consumption of an application or prototype design.
- Ultra low power 128x128 pixel Memory-LCD
- 2 user buttons, 2 LEDs and a touch slider
- Humidity, temperature, and inductive-capacitive metal sensor
- On-board Segger J-Link USB debugger
For more information about the EFM32PG SoC and SLSTK3402A board:
- `EFM32PG Website`_
- `EFM32PG12 Datasheet`_
- `EFM32PG12 Reference Manual`_
- `SLSTK3402A Website`_
- `SLSTK3402A User Guide`_
- `SLSTK3402A Schematics`_
Supported Features
==================
The slstk3402a board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| MPU | on-chip | memory protection unit |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| COUNTER | on-chip | rtcc |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c port-polling |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
| TRNG | on-chip | true random number generator |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32pg12b500f1024gl125_defconfig`
The default configuration when building using this board to develop for the
EFM32JG12 SoC can be found in
:zephyr_file:`boards/silabs/starter_kits/slstk3402a/slstk3402a_efm32jg12b500f1024gl125_defconfig`
Other hardware features are currently not supported by the port.
EFM32 Jade Gecko SoC
--------------------
The EFM32 Pearl Gecko Starter Kit SLSTK3402A can also be used to evaluate
the EFM32 Jade Gecko SoC (EFM32JG12). The only difference between the Pearl
Gecko and the Jade Gecko is their core. The Pearl Gecko contains an ARM
Cortex-M4F core, and the Jade Gecko an ARM Cortex-M3 core. Other features
such as memory and peripherals are the same.
Code that is built for the Jade Gecko also runs on an equivalent Pearl Gecko.
To build firmware for the Jade Gecko and run it on the EFM32 Pearl Gecko Starter
Kit, use the board ``slstk3402a/efm32jg12b500f1024gl125`` instead of
``slstk3402a/efm32pg12b500f1024gl125``.
Connections and IOs
===================
The EFM32PG12 SoC has twelve GPIO controllers (PORTA to PORTL), but only four
are currently enabled (PORTA, PORTB, PORTD and PORTF) for the SLSTK3402A
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 |
+=======+=============+=====================================+
| PF4 | GPIO | LED0 |
+-------+-------------+-------------------------------------+
| PF5 | GPIO | LED1 |
+-------+-------------+-------------------------------------+
| PF6 | GPIO | Push Button PB0 |
+-------+-------------+-------------------------------------+
| PF7 | GPIO | Push Button PB1 |
+-------+-------------+-------------------------------------+
| PA5 | GPIO | Board Controller Enable |
| | | EFM_BC_EN |
+-------+-------------+-------------------------------------+
| PA0 | UART_TX | UART TX Console VCOM_TX US0_TX #0 |
+-------+-------------+-------------------------------------+
| PA1 | UART_RX | UART RX Console VCOM_RX US0_RX #0 |
+-------+-------------+-------------------------------------+
| PD10 | UART_TX | EXP12_UART_TX LEU0_TX #18 |
+-------+-------------+-------------------------------------+
| PD11 | UART_RX | EXP14_UART_RX LEU0_RX #18 |
+-------+-------------+-------------------------------------+
| PC10 | I2C_SDA | ENV_I2C_SDA I2C0_SDA #15 |
+-------+-------------+-------------------------------------+
| PC11 | I2C_SCL | ENV_I2C_SCL I2C0_SCL #15 |
+-------+-------------+-------------------------------------+
System Clock
============
The EFM32PG12 SoC is configured to use the 40 MHz external oscillator on the
board.
Serial Port
===========
The EFM32PG12 SoC has four USARTs and one Low Energy UART (LEUART).
Programming and Debugging
*************************
.. note::
Before using the kit the first time, you should update the J-Link firmware
from `J-Link-Downloads`_
Flashing
========
The SLSTK3402A 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 device 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 SLSTK3402A
-------------------------------------
The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: slstk3402a/efm32pg12b500f1024gl125
:goals: build
Connect the SLSTK3402A to your host computer using the USB port and you
should see a USB connection which exposes a mass storage device(STK3402A).
Copy the generated zephyr.bin to the STK3402A drive.
Use a USB-to-UART converter such as an FT232/CP2102 to connect to the UART on the
expansion header.
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'll see the following message on the corresponding serial port
terminal session:
.. code-block:: console
Hello World! slstk3402a
.. _SLSTK3402A Website:
path_to_url
.. _SLSTK3402A User Guide:
path_to_url
.. _SLSTK3402A Schematics:
path_to_url
.. _EFM32PG Website:
path_to_url
.. _EFM32PG12 Datasheet:
path_to_url
.. _EFM32PG12 Reference Manual:
path_to_url
.. _J-Link:
path_to_url
.. _J-Link-Downloads:
path_to_url
``` | /content/code_sandbox/boards/silabs/starter_kits/slstk3402a/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,855 |
```restructuredtext
.. _efm32wg_stk3800:
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.
.. figure:: efm32wg_stk3800.jpg
:align: center
:alt: EFM32WG-STK3800
EFM32WG-STK3800 (image courtesy of Silicon Labs)
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:
- `EFM32WG Website`_
- `EFM32WG Datasheet`_
- `EFM32WG Reference Manual`_
- `EFM32WG-STK3800 Website`_
- `EFM32WG-STK3800 User Guide`_
- `EFM32WG-STK3800 Schematics`_
Supported Features
==================
The efm32wg_stk3800 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| MPU | on-chip | memory protection unit |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | nested vector interrupt controller |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash memory |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
The default configuration can be found in
:zephyr_file:`boards/silabs/starter_kit/efm32wg_stk3800/efm32wg_stk3800_defconfig`
Other hardware features are currently not supported by the port.
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
from `J-Link-Downloads`_
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 :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: efm32wg_stk3800
:goals: build
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:
.. code-block:: console
Hello World! efm32wg_stk3800
.. _EFM32WG-STK3800 Website:
path_to_url
.. _EFM32WG-STK3800 User Guide:
path_to_url
.. _EFM32WG-STK3800 Schematics:
path_to_url
.. _EFM32WG Website:
path_to_url
.. _EFM32WG Datasheet:
path_to_url
.. _EFM32WG Reference Manual:
path_to_url
.. _J-Link:
path_to_url
.. _J-Link-Downloads:
path_to_url
``` | /content/code_sandbox/boards/silabs/starter_kits/efm32wg_stk3800/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,382 |
```restructuredtext
.. _silabs_radio_boards:
Radio Boards
############
.. toctree::
:maxdepth: 1
:titlesonly:
:glob:
**/*
Overview
********
Radio Boards are used together with a Wireless Mainboard, which is a
development platform for application development and debugging of wireless
products.
There are two main variants of the Mainboard:
- Wireless Starter Kit Mainboard (board BRD4001A, available standalone as SLWMB4001A)
- Wireless Pro Kit Mainboard (board BRD4002A, available standalone as Si-MB4002A)
The Wireless Pro Kit Mainboard is a strict superset of the Wireless Starter Kit,
the two boards are pin compatible for all shared functionality.
Wireless Starter Kits and Wireless Pro Kits are kits that bundle one or more
Radio Boards with one or more Mainboards.
In Zephyr, Radio Boards are used as board targets, irrespective of whether the
board was acquired standalone or as part of a Starter Kit or Pro Kit. The kit
name of the standalone Radio Board is used as the board target.
Hardware
********
Wireless Starter Kit Mainboard:
- Advanced Energy Monitor providing real-time information about energy consumption at up to 10 ksps
- Packet Trace Interface
- Virtual COM port
- On-board Segger J-Link debugger with USB and Ethernet interfaces
- Ultra-low power 128x128 pixel memory LCD
- 2 user buttons and 2 LEDs
- 20 pin 2.54mm expansion header
- Si7021 Relative Humidity and Temperature Sensor
- Breakout pads for Wireless SoC I/O
Wireless Pro Kit Mainboard:
- Advanced Energy Monitor providing real-time information about energy consumption at up to 100 ksps
- Packet Trace Interface
- Virtual COM port
- On-board Segger J-Link debugger with USB and Ethernet interfaces
- Ultra-low power 128x128 pixel memory LCD
- 2 user buttons, joystick and 2 LEDs
- 20 pin 2.54mm expansion header
- Si7021 Relative Humidity and Temperature Sensor
- Breakout pads for Wireless SoC I/O
``` | /content/code_sandbox/boards/silabs/radio_boards/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 450 |
```cmake
# SPI is implemented via usart so node name isn't spi@...
list(APPEND EXTRA_DTC_FLAGS "-Wno-spi_bus_bridge")
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/pre_dt_board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```cmake
board_runner_args(openocd)
board_runner_args(jlink "--device=EFR32BG13PxxxF512")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```unknown
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=38400000
CONFIG_CMU_HFCLK_HFXO=y
CONFIG_SOC_GECKO_EMU_DCDC=y
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/slwrb4104a_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```unknown
# EFR32BG13 BRD4104A
config BOARD_SLWRB4104A
select SOC_PART_NUMBER_EFR32BG13P632F512GM48
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/Kconfig.slwrb4104a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```yaml
boards:
- name: slwrb4104a
socs:
- name: efr32bg13p632f512gm48
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```yaml
identifier: slwrb4104a
name: EFR32BG13 2.4 GHz 10 dBm Radio Board (SLWRB4104A)
type: mcu
arch: arm
ram: 64
flash: 512
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- counter
- gpio
- nvs
- spi
- uart
- watchdog
testing:
ignore_tags:
- net
- bluetooth
vendor: silabs
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/slwrb4104a.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```unknown
# EFR32 radio board
if BOARD_SLWRB4104A
config CMU_HFXO_FREQ
default 38400000
config CMU_LFXO_FREQ
default 32768
config FLASH_BASE_ADDRESS
hex
default 0x0
config LOG_BACKEND_SWO_FREQ_HZ
default 875000
depends on LOG_BACKEND_SWO
if SOC_GECKO_USE_RAIL
config FPU
default n
endif # SOC_GECKO_USE_RAIL
if BT
config FPU
default y
config COMMON_LIBC_MALLOC_ARENA_SIZE
default 8192
config MAIN_STACK_SIZE
default 3072 if PM
default 2304
endif # BT
endif # BOARD_SLWRB4104A
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 162 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efr32bg13p632f512gm48.dtsi>
#include "../common/efr32-series1-common.dtsi"
/ {
model = "Silicon Labs BRD4104A (Blue Gecko 13 Radio Board)";
compatible = "silabs,slwrb4104a", "silabs,efr32bg13p";
chosen {
zephyr,bt-hci = &bt_hci_silabs;
};
};
&cpu0 {
clock-frequency = <38400000>;
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Reserve 32 kB for the bootloader */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 0x00008000>;
read-only;
};
/* Reserve 220 kB for the application in slot 0 */
slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00008000 0x00037000>;
};
/* Reserve 220 kB for the application in slot 1 */
slot1_partition: partition@3f000 {
label = "image-1";
reg = <0x0003f000 0x00037000>;
};
/* Reserve 32 kB for the scratch partition */
scratch_partition: partition@76000 {
label = "image-scratch";
reg = <0x00076000 0x00008000>;
};
/* Set 8Kb of storage at the end of the 512KB of flash */
storage_partition: partition@7e000 {
label = "storage";
reg = <0x0007e000 0x00002000>;
};
};
};
&bt_hci_silabs {
status = "okay";
};
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/slwrb4104a.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 440 |
```ini
if {[info exists env(OPENOCD_INTERFACE)]} {
set INTERFACE $env(OPENOCD_INTERFACE)
} else {
# By default connect over Debug USB port using the J-Link interface
set INTERFACE "jlink"
}
source [find interface/$INTERFACE.cfg]
transport select swd
set CHIPNAME efr32
source [find target/efm32.cfg]
$_TARGETNAME configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
gdb_breakpoint_override hard
}
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4104a/support/openocd.cfg | ini | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 134 |
```cmake
board_runner_args(openocd)
board_runner_args(jlink "--device=EFR32MG12PxxxF1024")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4161a/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```unknown
# EFR32MG12 BRD4161A
config BOARD_SLWRB4161A
select SOC_PART_NUMBER_EFR32MG12P432F1024GL125
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4161a/Kconfig.slwrb4161a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
/*
*
*/
/dts-v1/;
#include <silabs/efr32mg12p432f1024gl125.dtsi>
#include "../common/efr32-series1-common.dtsi"
/ {
model = "Silicon Labs BRD4161A (Mighty Gecko 12 Radio Board)";
compatible = "silabs,slwrb4161a", "silabs,efr32mg12p";
chosen {
zephyr,bt-hci = &bt_hci_silabs;
};
};
&cpu0 {
clock-frequency = <38400000>;
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Reserve 32 kB for the bootloader */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 0x00008000>;
read-only;
};
/* Reserve 220 kB for the application in slot 0 */
slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00008000 0x00037000>;
};
/* Reserve 220 kB for the application in slot 1 */
slot1_partition: partition@3f000 {
label = "image-1";
reg = <0x0003f000 0x00037000>;
};
/* Reserve 32 kB for the scratch partition */
scratch_partition: partition@76000 {
label = "image-scratch";
reg = <0x00076000 0x00008000>;
};
/* Set 8Kb of storage at the end of the 512KB of flash */
storage_partition: partition@7e000 {
label = "storage";
reg = <0x0007e000 0x00002000>;
};
};
};
&pinctrl {
i2c0_default: i2c0_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, C, 11)>,
<GECKO_PSEL(I2C_SCL, C, 10)>,
<GECKO_LOC(I2C_SDA, 16)>,
<GECKO_LOC(I2C_SCL, 14)>;
};
};
};
&usart2 {
compatible = "silabs,gecko-spi-usart";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&usart2_default>;
pinctrl-names = "default";
cs-gpios = <&gpioa 9 GPIO_ACTIVE_LOW>;
status = "okay";
};
&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
status = "okay";
si7021: si7021@40 {
compatible = "silabs,si7006";
reg = <0x40>;
status = "okay";
};
};
&bt_hci_silabs {
status = "okay";
};
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4161a/slwrb4161a.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 694 |
```cmake
# SPI is implemented via usart so node name isn't spi@...
list(APPEND EXTRA_DTC_FLAGS "-Wno-spi_bus_bridge")
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4161a/pre_dt_board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```yaml
boards:
- name: slwrb4161a
socs:
- name: efr32mg12p432f1024gl125
``` | /content/code_sandbox/boards/silabs/radio_boards/slwrb4161a/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.