boards/silabs/dev_kits/sltb004a/doc/index.rst
.. zephyr:board:: sltb004a
Overview
The EFR32MG12 Thunderboard (a.k.a Thunderboard Sense 2) contains an MCU from the EFR32MG12 family built on ARM® Cortex®-M4F processor with low power capabilities.
Hardware
For more information about the EFR32MG12 SoC and Thunderboard Sense 2 board:
EFR32MG12 Datasheet_EFR32MG12 Reference Manual_SLTB004A User Guide_SLTB004A Schematics_.. zephyr:board-supported-hw::
The EFR32MG12 SoC has eight gpio controllers (PORTA, PORTB, PORTC, PORTD, PORTF, PORTI, PORTJ and PORTK).
In the following table, the column Name contains Pin names. For example, PE2 means Pin number 2 on PORTE and #27 represents the location bitfield , as used in the board's and microcontroller's datasheets and manuals.
+------+-------------+-----------------------------------+ | Name | Function | Usage | +======+=============+===================================+ | PD8 | GPIO | LED0 (RED) | +------+-------------+-----------------------------------+ | PD9 | GPIO | LED1 (GREEN) | +------+-------------+-----------------------------------+ | PD14 | GPIO | SW0 Push Button PB0 | +------+-------------+-----------------------------------+ | PD15 | GPIO | Push Button PB1 | +------+-------------+-----------------------------------+ | PA0 | UART_TX | UART TX Console VCOM_TX US0_TX #0 | +------+-------------+-----------------------------------+ | PA1 | UART_RX | UART RX Console VCOM_RX US0_RX #0 | +------+-------------+-----------------------------------+ | PF3 | UART_TX | EXP12_UART_TX LEU0_TX #27 | +------+-------------+-----------------------------------+ | PF4 | UART_RX | EXP14_UART_RX LEU0_RX #27 | +------+-------------+-----------------------------------+ | PC10 | I2C_SDA | EXP16_I2C_SDA I2C0_SDA #15 | +------+-------------+-----------------------------------+ | PC11 | I2C_SCL | EXP15_I2C_SCL I2C0_SCL #15 | +------+-------------+-----------------------------------+ | PB6 | I2C_SDA | CCS811_I2C_SDA I2C1_SDA #6 | +------+-------------+-----------------------------------+ | PB7 | I2C_SCL | CCS811_I2C_SCL I2C1_SCL #6 | +------+-------------+-----------------------------------+ | PK0 | SPI_MOSI | Flash MOSI US2_TX #29 | +------+-------------+-----------------------------------+ | PK2 | SPI_MISO | Flash MISO US2_RX #30 | +------+-------------+-----------------------------------+ | PF7 | SPI_SCLK | Flash SCLK US2_CLK #18 | +------+-------------+-----------------------------------+ | PK1 | SPI_CS | Flash Chip Select (GPIO) | +------+-------------+-----------------------------------+
The EFR32MG12 SoC is configured to use the 38.4 MHz external oscillator on the board.
The EFR32MG12 SoC has four USARTs and one Low Energy UARTs (LEUART with 9600 maximum baudrate). USART0 is configured as the Zephyr console and is connected to the On-Board J-Link Debugger that presents a virtual COM port for general purpose application serial data transfer with this interface.
Programming and Debugging
.. zephyr:board-supported-runners::
.. note:: Before using the kit the first time, you should update the J-Link firmware in Simplicity Studio.
The SLTB004A includes an J-Link_ serial and debug adaptor built into the
board. The adaptor provides:
The sample application :zephyr:code-sample:hello_world is used for this example.
Build the Zephyr kernel and application:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: sltb004a :goals: build
Connect the SLTB004A to your host computer using the USB port and you should see a USB connection which exposes a Mass Storage (TB004) and a USB Serial Port. Copy the generated zephyr.bin in the SLTB004A drive.
Open a serial terminal (minicom, putty, etc.) with the following settings:
Reset the board and you should be able to see on the corresponding Serial Port the following message:
.. code-block:: console
Hello World! sltb004a
.. _SLTB004A User Guide: https://www.silabs.com/documents/public/user-guides/ug309-sltb004a-user-guide.pdf
.. _SLTB004A Schematics: https://www.silabs.com/documents/public/schematic-files/BRD4166A-D00-schematic.pdf
.. _EFR32MG12 Datasheet: https://www.silabs.com/documents/public/data-sheets/efr32mg12-datasheet.pdf
.. _EFR32MG12 Reference Manual: https://www.silabs.com/documents/public/reference-manuals/efr32xg12-rm.pdf
.. _J-Link: https://www.segger.com/jlink-debug-probes.html