
https://www.lairdconnect.com/
6
© Copyright 2021 Laird Connectivity, Inc.
All Rights Reserved
Americas
: +1-800-492-2320
Europe
: +44-1628-858-940
Hong Kong
: +852 2923 0610
Filename
Function
Checking
swd1mhz.cfg
Sets the SWD maximum clock speed to 1 MHz
After USB mass storage device refresh,
open DETAILS.TXT, check the SWD line
(should be 1 MHz)
swd2mhz.cfg
Sets the SWD maximum clock speed to 2 MHz
After USB mass storage device refresh,
open DETAILS.TXT, check the SWD line
(should be 2 MHz)
swd3mhz.cfg
Sets the SWD maximum clock speed to 3 MHz
After USB mass storage device refresh,
open DETAILS.TXT, check the SWD line
(should be 3 MHz)
swd4mhz.cfg
Sets the SWD maximum clock speed to 4 MHz
After USB mass storage device refresh,
open DETAILS.TXT, check the SWD line
(should be 4 MHz)
swd5mhz.cfg
Sets the SWD maximum clock speed to 5 MHz
After USB mass storage device refresh,
open DETAILS.TXT, check the SWD line
(should be 5 MHz)
swd6mhz.cfg
Sets the SWD maximum clock speed to 6 MHz
After USB mass storage device refresh,
open DETAILS.TXT, check the SWD line
(should be 6 MHz)
By default, the USB-SWD programmer is set to automatically detect if an nRF51/nRF52 device is detected and program it,
with hardware flow control being disabled.
Note:
The nRF51/nRF52 selection is for the USB mass storage programming only. If using pyOCD then this option is
ignored and pyOCD sends the commands to select the correct device as supplied on the command line.
The USB-SWD programmer supports querying the attached device to retrieve information on the device which includes silicon
revision, flash/RAM size, and other details. If readback protection is enabled, then this information cannot be retrieved. To
read module information, follow these steps:
1. Attach the target device to the USB-SWD programmer.
2. Plug the SWD programmer into the PC with a micro USB cable.
3. Ensure the programmer is set to the correct target device, open DETAILS.TXT, and check if it is set for nRF51 or
nRF52 or automatic detection. If it is set to the wrong device then create an empty file on the host computer named
nrf51.cfg,
nrf52.cfg
, or
nrfauto.cfg
(depending on target device). Copy this file and paste it in the USB-SWD programmer
mass storage device drive
4. Create an empty file on the host computer named
device.act
. Copy this file and paste it in the USB-SWD programmer
USB mass storage device.
5. The USB-SWD programmer queries the attached device and refresh the USB mass storage device.
6. Once complete, open LASTDEV.TXT from the USB mass storage device.
7. If the module information could be read correctly then the information about the device is displayed here.
The Variant field displays the revision of silicon in the module (nRF52 only). This information can be used to check SDK
support details and errata listings. Refer to the Nordic documentation for your part for details on this information.
Note:
If this feature is enabled with the last_on.cfg option then any flash erase/program on the target module also
generates the LASTDEV.TXT file information. The information returned during this time is the configuration values
prior to programming and may have changed during the erase/program process.