Series 2 DCI and SWD Programming

This example uses a Wireless Starter Kit (WSTK) with the BRD4182A Radio Board (EFR32MG22C224F512IM40) to program the Series 2 device through DCI and SWD interface.

The example redirects standard I/O to the virtual serial port (VCOM) of the kit. By default, the serial port setting is 115200 bps and 8-N-1 configuration.

The example has been instrumented with code to count the number of clock cycles spent in SWD programming operations. The results are printed on the VCOM serial port console.

DCI Programming

The following DCI operations are supported in this example:

SWD Programming

The following SWD operations are supported in this example:

Getting Started

  1. Upgrade the kit’s firmware to the latest version (see Adapter Firmware under General Device Information in Simplicity Studio 5 Users Guide).
  2. Open any terminal program and connect to the kit’s VCOM port.
  3. Create this alpha platform example project in the Simplicity IDE (see Examples in Simplicity Studio 5 Users Guide, check ALPHA() checkbox to browse the alpha examples).
  4. Build the example and download it to the kit (see Simple Build and Flash Programmer in Simplicity Studio 5 Users Guide).
  5. Run the example and follow the instructions shown on the console.

Additional Information

  1. The default clock source is 80 MHz HFRCODPLL.
  2. The default optimization level is Optimize for debugging (-Og) on Simplicity IDE and None on IAR Embedded Workbench.

Resources

AN1190: Series 2 Secure Debug

AN1218: Series 2 Secure Boot with RTSL

AN1222: Production Programming of Series 2 Devices

AN1247: Anti-Tamper Protection Configuration and Use

AN1303: Series 2 DCI and SWD Programming