Part 1
요약·해설
두 SoC용 defconfig·board qualifier, Jade binary의 Pearl 실행 호환성과 pin 11개를 설명합니다.
Cortex-M4F
Cortex-M3
40MHz
STK3402A
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
EE56BF9EC7F4948174AAAFF535FEA4C3B57AF7C4D105824B298C880CB81171D3
.. _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:: ../../../../../../../../boards/silabs/starter_kits/slstk3402a/doc/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:
https://www.silabs.com/products/development-tools/mcu/32-bit/efm32-pearl-gecko-pg12-starter-kit
.. _SLSTK3402A User Guide:
https://www.silabs.com/documents/public/user-guides/ug257-stk3402-usersguide.pdf
.. _SLSTK3402A Schematics:
https://www.silabs.com/documents/public/schematic-files/BRD2501A-A01-schematic.pdf
.. _EFM32PG Website:
https://www.silabs.com/products/mcu/32-bit/efm32-pearl-gecko
.. _EFM32PG12 Datasheet:
https://www.silabs.com/documents/public/data-sheets/efm32pg12-datasheet.pdf
.. _EFM32PG12 Reference Manual:
https://www.silabs.com/documents/public/reference-manuals/efm32pg12-rm.pdf
.. _J-Link:
https://www.segger.com/jlink-debug-probes.html
.. _J-Link-Downloads:
https://www.segger.com/downloads/jlink
Part 3
한국어 전문 번역
개요
EFM32 Pearl Gecko 12 Starter Kit SLSTK3402A에는 저전력 특성이 뛰어난 ARM Cortex-M4F 기반 EFM32PG family MCU가 탑재됩니다.

하드웨어
- Application 또는 prototype의 energy consumption을 실시간 제공하는 Advanced Energy Monitoring
- Ultra-low-power 128×128 pixel Memory-LCD
- 사용자 button 2개, LED 2개, touch slider
- Humidity·temperature·inductive-capacitive metal sensor
- Onboard SEGGER J-Link USB debugger
상세 자료:
- EFM32PG 웹사이트
- EFM32PG12 Datasheet
- EFM32PG12 Reference Manual
- SLSTK3402A 웹사이트
- SLSTK3402A User Guide
- SLSTK3402A schematic
지원 기능
slstk3402a board configuration은 다음 기능을 지원합니다.
| 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 |
Pearl Gecko 기본 설정은 slstk3402a_efm32pg12b500f1024gl125_defconfig, EFM32JG12 개발용 기본 설정은 slstk3402a_efm32jg12b500f1024gl125_defconfig입니다. 그 밖의 hardware 기능은 현재 port에서 지원하지 않습니다.
EFM32 Jade Gecko SoC
SLSTK3402A는 EFM32 Jade Gecko EFM32JG12 평가에도 사용할 수 있습니다. Pearl Gecko와 Jade Gecko의 유일한 차이는 core입니다. Pearl Gecko는 ARM Cortex-M4F, Jade Gecko는 ARM Cortex-M3이며 memory와 peripheral 등 다른 기능은 같습니다. Jade Gecko용으로 build한 code는 동등한 Pearl Gecko에서도 실행됩니다.
Jade Gecko firmware를 이 kit에서 실행할 때는 slstk3402a/efm32pg12b500f1024gl125 대신 slstk3402a/efm32jg12b500f1024gl125 board를 사용합니다.
연결과 I/O
EFM32PG12에는 PORTA~PORTL GPIO controller 12개가 있지만 이 board에서는 PORTA·PORTB·PORTD·PORTF만 활성화됩니다. 표의 Name은 pin 이름입니다.
| 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
EFM32PG12 SoC는 board의 40MHz external oscillator를 사용합니다.
Serial port
EFM32PG12 SoC에는 USART 4개와 Low Energy UART(LEUART) 1개가 있습니다.
Programming and debugging
Flashing
SLSTK3402A의 Onboard J-Link serial/debug adapter는 mass storage와 USB serial port를 노출하는 host USB 연결, USB flash-disk storage를 구현하는 serial flash, USB serial port로 relay되는 physical UART를 제공합니다.
hello_world를 Pearl Gecko target으로 build합니다.
west build -b slstk3402a/efm32pg12b500f1024gl125 samples/hello_worldUSB로 연결하면 STK3402A mass-storage device가 나타납니다. 생성된 zephyr.bin을 STK3402A drive에 복사합니다. Expansion header UART에는 FT232/CP2102 같은 USB-to-UART converter를 연결합니다. Serial terminal은 115200 baud, data 8 bit, parity 없음, stop bit 1로 설정합니다. Reset 후 다음 메시지가 표시됩니다.
Hello World! slstk3402a
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.