Skip to content
Permalink
Browse files

boards: add jlink runner for efr32_slwstk6061a board

This commit adds J-Link runner for efr32_slwstk6061a board. To use it
it is necessary to install J-Link Software and Documentation Pack.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
  • Loading branch information...
mnkp authored and nashif committed Mar 25, 2019
1 parent d09b91f commit 7cf318b449a7fc36387e4686bef1336798ba29ec
Showing with 17 additions and 24 deletions.
  1. +2 −0 boards/arm/efr32_slwstk6061a/board.cmake
  2. +15 −24 boards/arm/efr32_slwstk6061a/doc/index.rst
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: Apache-2.0

board_runner_args(openocd)
board_runner_args(jlink "--device=EFR32FG1PxxxF256")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
@@ -121,9 +121,6 @@ Programming and Debugging
Before using the kit the first time, you should update the J-Link firmware
from `J-Link-Downloads`_

Flashing
========

The EFR32-SLWSTK6061A includes an `J-Link`_ serial and debug adaptor built into the
board. The adaptor provides:

@@ -132,27 +129,25 @@ board. The adaptor provides:
- A physical UART connection which is relayed over interface USB Serial port.
- An Ethernet connection to support remote debugging.

Flashing an application to EFR32-SLWSTK6061A
--------------------------------------------
It is compatible with the following host debug tools:

The sample application :ref:`hello_world` is used for this example.
Build the Zephyr kernel and application:
- :ref:`openocd-debug-host-tools`
- :ref:`jlink-debug-host-tools`

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: efr32_slwstk6061a
:goals: build
OpenOCD is included in the Zephyr SDK. Refer to the links above for information
on how to install required host debug tools if you are not using the Zephyr SDK.

Connect the EFR32-SLWSTK6061A to your host computer using the USB port and you
should see a USB Serial Port. Use `J-Link`_ or Silicon Labs Simplicity Studio
to flash the generated zephyr.bin. On a Linux host with Zephyr SDK installed you
can run:
Flashing
========

.. code-block:: console
Connect the EFR32-SLWSTK6061A board to your host computer using the USB port.

ninja flash
Here is an example for the :ref:`hello_world` application.

The command is using `OpenOCD`_ runner.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: efr32_slwstk6061a
:goals: flash

Open a serial terminal (minicom, putty, etc.) with the following settings:

@@ -161,12 +156,11 @@ Open a serial terminal (minicom, putty, etc.) with the following settings:
- Parity: None
- Stop bits: 1

Reset the board and you should be able to see on the corresponding Serial Port
the following message:
Reset the board and you should see the following message in the terminal:

.. code-block:: console

Hello World! arm
Hello World! efr32_slwstk6061a


.. _EFR32-SLWSTK6061A Website:
@@ -195,6 +189,3 @@ the following message:

.. _J-Link-Downloads:
https://www.segger.com/downloads/jlink

.. _OpenOCD:
http://openocd.org/

0 comments on commit 7cf318b

Please sign in to comment.
You can’t perform that action at this time.