boards/silabs/starter_kits/slstk3400a/doc/index.rst
.. zephyr:board:: 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.
Hardware
See these documents for more information
EFM32HG Website_EFM32HG Datasheet_EFM32HG Reference Manual_SLSTK3400A Website_SLSTK3400A User Guide_SLSTK3400A Schematics_.. zephyr:board-supported-hw::
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 | +-------+-------------+-------------------------------------+
The EFM32HG SoC is configured to use the 24 MHz external oscillator on the board.
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
.. zephyr:board-supported-runners::
.. note:: Before using the kit the first time, you should update the J-Link firmware in Simplicity Studio.
The SLSTK3400 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: 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:
Reset the board and you will see this message written to the serial port:
.. code-block:: console
Hello World! slstk3400a
.. _SLSTK3400A Website: https://www.silabs.com/products/development-tools/mcu/32-bit/efm32-happy-gecko-starter-kit
.. _SLSTK3400A User Guide: https://www.silabs.com/documents/public/user-guides/ug255-stk3400-user-guide.pdf
.. _SLSTK3400A Schematics: https://www.silabs.com/documents/public/schematic-files/BRD2012A-B01-schematic.pdf
.. _EFM32HG Website: https://www.silabs.com/products/mcu/32-bit/efm32-happy-gecko
.. _EFM32HG Datasheet: https://www.silabs.com/documents/public/data-sheets/EFM32HG322.pdf
.. _EFM32HG Reference Manual: https://www.silabs.com/documents/public/reference-manuals/EFM32HG-RM.pdf
.. _J-Link: https://www.segger.com/jlink-debug-probes.html