Difference between revisions of "nRF51 Series Devices"

From SEGGER Wiki
Jump to: navigation, search
(Using J-Link SWD Isolator)
m (Kai moved page NRF51 Series Devices to nRF51 Series Devices: Spelling correction)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
  +
__TOC__
blabla
 
   
 
==SWDIO behavior on early batches==
 
==SWDIO behavior on early batches==
 
The SWDIO line on the nRF51822 series can be configured to also function as a reset pin if the SWDIO line is pulled LOW for more than 100us. After power on, the device is in '''normal mode''' where the reset functionality of the pin is enabled. As soon as activity on the SWCLK line is recognized, the device will enter '''debug interface mode''' where the reset functionality of SWDIO is disabled. For further information about the different modes, please refer to the reference manual of the device.
 
The SWDIO line on the nRF51822 series can be configured to also function as a reset pin if the SWDIO line is pulled LOW for more than 100us. After power on, the device is in '''normal mode''' where the reset functionality of the pin is enabled. As soon as activity on the SWCLK line is recognized, the device will enter '''debug interface mode''' where the reset functionality of SWDIO is disabled. For further information about the different modes, please refer to the reference manual of the device.
 
On early batches of the nRF51822 series, the reset functionality was not correctly disabled when entering '''debug interface mode'''.
 
On early batches of the nRF51822 series, the reset functionality was not correctly disabled when entering '''debug interface mode'''.
===huhu===
 
blablabla
 
 
==Using J-Link SWD Isolator==
 
Read [https://wiki.segger.com/NRF51_Series_Devices#SWDIO_behavior_on_early_batches SWDIO behavior on early batches] first.
 
 
As the J-Link SWD Isolator can only keep the last level of the SWDIO pin that was driven by one side, SWDIO may stay 0 between SWD sequences. This makes it impossible to use the J-Link SWD Isolator with these early batches of the device. Unfortunately, it is also not possible to disable the pin reset functionality manually on these early devices.
 
   
 
To check if a specific device is affected, the device printing needs to be checked. It is of the following format:
 
To check if a specific device is affected, the device printing needs to be checked. It is of the following format:
Line 19: Line 12:
 
y = Year or production
 
y = Year or production
 
zz = week of production
 
zz = week of production
Only devices produced at yy = 12, zz = 30 or later can be used with the J-Link SWD Isolator. Some very early devices do not even have N1822 or any date code on them. These are also affected by the pin reset problem.
 
   
  +
Devices produced before yy = 12, zz = 30 are affected by this problem.
===hehe===
 
  +
blablabla
 
  +
===Using J-Link SWD Isolator===
  +
As the J-Link SWD Isolator can only keep the last level of the SWDIO pin that was driven by one side, SWDIO may stay 0 between SWD sequences. This makes it impossible to use the J-Link SWD Isolator with these early batches of the device. Unfortunately, it is also not possible to disable the pin reset functionality manually on these early devices. Only devices produced at yy = 12, zz = 30 or later can be used with the J-Link SWD Isolator. Some very early devices do not even have N1822 or any date code on them. These are also affected by the pin reset problem.
  +
  +
===Debugging===
  +
Debugging on affected devices is only possible without using a J-Link SWD Isolator and when selecting the proper device in the debugger. Specifying the core only (Cortex-M0) won't work!

Latest revision as of 10:35, 15 May 2019

SWDIO behavior on early batches

The SWDIO line on the nRF51822 series can be configured to also function as a reset pin if the SWDIO line is pulled LOW for more than 100us. After power on, the device is in normal mode where the reset functionality of the pin is enabled. As soon as activity on the SWCLK line is recognized, the device will enter debug interface mode where the reset functionality of SWDIO is disabled. For further information about the different modes, please refer to the reference manual of the device. On early batches of the nRF51822 series, the reset functionality was not correctly disabled when entering debug interface mode.

To check if a specific device is affected, the device printing needs to be checked. It is of the following format:

N51822
xxxxxx
yyzzxx
x = do not care
y = Year or production
zz = week of production

Devices produced before yy = 12, zz = 30 are affected by this problem.

Using J-Link SWD Isolator

As the J-Link SWD Isolator can only keep the last level of the SWDIO pin that was driven by one side, SWDIO may stay 0 between SWD sequences. This makes it impossible to use the J-Link SWD Isolator with these early batches of the device. Unfortunately, it is also not possible to disable the pin reset functionality manually on these early devices. Only devices produced at yy = 12, zz = 30 or later can be used with the J-Link SWD Isolator. Some very early devices do not even have N1822 or any date code on them. These are also affected by the pin reset problem.

Debugging

Debugging on affected devices is only possible without using a J-Link SWD Isolator and when selecting the proper device in the debugger. Specifying the core only (Cortex-M0) won't work!