The nRF51822 Bluetooth® low energy/2.4 GHz proprietary Evaluation Kit (EK) provides a complete solution for testing and evaluating the nRF51822 device. The nRF51822 is part of the nRF51 series which offers a range of ultra-low power, System on Chip (SoC) solutions for your 2.4 GHz wireless products.
Evaluation Kit User Guide v1.2 Kit content The nRF51822 Evaluation Kit consists of hardware and access to software components, documentation, and design files from www.nordicsemi.com. nRF51822 Evaluation Kit hardware content 1 x Lithium 3 V battery nRF51822 Evaluation Kit board...
Evaluation Kit User Guide v1.2 Downloadable content The nRF51822 Evaluation Kit includes firmware source code, documentation, hardware schematics, and layout files. To access this information, log in to your My Page account, enter your product key, and download the files. Instructions can be found in Chapter 3 “Quick start” on page 6.
Evaluation Kit User Guide v1.2 Quick start This section shows you how to set up the nRF51822 Evaluation Kit and provides example applications to help you start programming your device. Register, download, and install 1. If you have Keil MDK-ARM Lite already installed, go to step 2. Otherwise, download and install Keil MDK-ARM Lite from https://www.keil.com/demo/eval/arm.htm...
\ARM\Device\Nordic\nRF51822\Board\PCA10001\blinky_example\arm. 2. Open the Blinky project in Keil μVision by double clicking the blinky.uvproj file. 3. Select nRF51822 from the Select Target list and click Build or press F7 to compile the Blinky project. 4. Click the Load icon to download and run the Blinky example firmware. LED 0 and LED 1 on the PCA10001 should now blink sequentially.
Evaluation Kit User Guide v1.2 Bluetooth low energy heart rate monitor demo This section shows you how to program a heart rate monitor demo on top of a SoftDevice that will send data on a Bluetooth link from the heart rate monitor to the Master Control Panel, giving you a simple application to get your device up and running.
Page 9
System Off. 8. To start advertising again press Button 0. Install the Master Control Panel and the nRF51822 Development Dongle (PCA10000) 1. Download and install the Master Control Panel from our website. Make sure to select the version that corresponds to your hardware.
Page 10
Evaluation Kit User Guide v1.2 Scan for available Bluetooth low energy devices 1. Start the Master Control Panel from the Windows Start menu (Start > All Programs > Nordic Semiconductor > Master Control Panel). 2. Make sure the Development Dongle is detected. The Master Emulator item list should show COMnn-xxxxxxxxx (nn gives the COM port number;...
Development environment setup The nRF51822 device can be programmed from several environments. This section shows the development setup using Keil MDK-ARM. The nRF51822 EK can be configured to develop proprietary 2.4 GHz protocol- based applications and Bluetooth 4.0 single-mode applications.
Page 12
SDK Keil µVision IDE Keil µVision IDE Application Programming and Erase (through J-Link) Application Programming and Erase (through J-Link) SAMSUNG PCA10000 Evaluation Board PCA10001 Figure 2 nRF51822 Evaluation Kit configuration for 2.4 GHz based development Page 12 of 51...
Page 13
Evaluation Kit User Guide v1.2 Examples and Applications Examples and Applications written for Keil written for Keil nRF51 SDK Keil µVision IDE PCA10000 SAMSUNG Control Master Control Panel Figure 3 nRF51822 Evaluation Kit configuration for Bluetooth 4.0 single-mode Page 13 of 51...
This chapter describes the nRF51822 Evaluation Kit hardware. nRF51822 Evaluation Kit board (PCA10001) The nRF51822 Evaluation Kit board (PCA10001) is a standalone nRF51822 evaluation board with an integrated debugger from SEGGER. The board is delivered with an unprogrammed nRF51822 chip.
Page 15
5.1.4 Reset button The EK board (PCA10001) is equipped with a reset button (SW3) for the nRF51822. When debugging the nRF51822 using the J-Link OB, you should use the reset functionality built into the computer software. Page 15 of 51...
Page 16
Evaluation Kit User Guide v1.2 5.1.5 Power supply The EK board (PCA10001) has several power options: • USB (see Figure 7) • External power supply through P1 (1.8 V to 3.6 V) • CR2032 coin cell battery (see Figure 8)
Page 17
SWDIO COM1 SW_EN SW_EN 100k T_TMS 100nF Switch SW_EN SWCLK COM2 T_TCK STG3684A Figure 10 SWD disconnect logic Note: To program or debug the nRF51822 using the SEGGER J-Link OB, the SW4 must be switched to Page 17 of 51...
Page 18
Evaluation Kit User Guide v1.2 5.1.7 GPIO interface Access to the nRF51822 GPIOs is available at connectors P3, P4, P5, and P6 on the EK board PCA10001. Figure 11 PCA10001 GPIO pin headers Note: Some pins have default settings.
Page 19
Evaluation Kit User Guide v1.2 5.1.8 Buttons and LEDs The two buttons and two LEDs on EK board PCA10001 are connected to dedicated I/Os on the nRF51822chip. The connections are shown in Table 1. Part GPIO Short Button 0 P0.16...
Page 20
Figure 15 Disconnecting UART lines Note: In order to use the USB to UART bridge, the software on the nRF51822 must enable flow control. For details on how to set up the UART with flow control see the nRF51 Series Reference Manual.
Page 21
5.1.11 Measuring current The current drawn by the nRF51822 device can be monitored on the PCA10001. To measure the current, you must first prepare the board by cutting the shorting of solder bridge SB8. There are two ways of measuring the current consumption: 1.
COM port provided by the SEGGER chip. The PCA10000 can be loaded with Master Emulator firmware, that when combined with the Master Control Panel, gives you a peer device for nRF51822 that you can use to test the wireless connection.
Page 23
Figure 18 PCA10000 block diagram 5.2.4 Multicolor LED The Development Dongle (PCA10000) is equipped with a multicolor RGB LED. The LED is connected to dedicated I/Os on the nRF51822 chip. The connections are shown in Table 3. Color GPIO P0.21 Green P0.22...
Page 24
Note: The UART signals are routed directly to the SEGGER chip. The pins should only be used for UART. In order to use the USB to UART bridge, the software on the nRF51822 has to enable flow control. For details on how to set up the UART with flow control see the nRF51 Series Reference Manual.
In this chapter we describe how to program and erase the S110 nRF51822 SoftDevice or another application HEX file on the nRF51822 chip. If you want to start developing on the nRF51822 chip without using the S110 SoftDevice see Section 6.1.5 “Programming an application” on page 28.
Page 26
6.1.2 Identifying the nRF51822 chip and chip content When you select a board, nRFgo Studio identifies the nRF51822 chip and how its memory is organized. The following chip and memory information is displayed: • nRF51 chip identification - Identifies the chip by name and build code (for example, nRF51822 QFAACA).
Page 27
4. Set the SoftDevice size. This sets the size of the flash region 0 and will not be available if the size is defined by the HEX file. Note: The S110 nRF51822 SoftDevice can be downloaded from www.nordicsemi.com by logging into your MyPage account and entering the product key printed in the Development Kit.
Page 28
Evaluation Kit User Guide v1.2 6.1.5 Programming an application This function lets you program an application onto the chip. Before nRFgo Studio starts programming it verifies that the HEX file matches the actual memory configuration. If it matches, nRFgo Studio continues with the programming, if not it stops the programming and returns an error message.
0x2000 Table 6 SoftDevice memory layout Note: See the nRF51822 Product Specification for details on the total code memory and RAM available in the device. The amount of code memory and RAM used by the SoftDevice is described in the S110 nRF51822 SoftDevice Specification.
Page 30
Evaluation Kit User Guide v1.2 6.2.1.1 Memory layout configuration in Keil IDE To access the Keil IDE memory layout: 1. Click the Project menu and select Options for Target. 2. Select the Linker tab. 3. Check Use memory layout from Target Dialog.
Page 31
Evaluation Kit User Guide v1.2 Figure 22 Memory layout with example SoftDevice Memory Description IROM1 Start Specify the start address for the application code Size Specify available code memory size for the application code IRAM1 Start Specify start address for the application data...
Page 32
Evaluation Kit User Guide v1.2 6.2.2 Shared call stack The user application shares the call stack with the SoftDevice if the SoftDevice is loaded on the chip. The application must reserve enough memory for both itself and the SoftDevice in the call stack. The call stack size required by the SoftDevice varies between devices and protocol stack versions, and is supplied in the S110 SoftDevice Specification.
Page 33
Evaluation Kit User Guide v1.2 6.2.3 Debugger configuration Project files delivered in the SDK are configured and ready for download and debugging. If a new application project is used, the debugger must be properly configured. To configure the debugger: 1.
Page 34
Evaluation Kit User Guide v1.2 Figure 24 Target driver setup 9. Click Start/Stop Debug Session (CTRL+F5) in the Keil IDE to start debugging. Figure 25 Debugger initiation Page 34 of 51...
Page 35
Memory Protection Unit implements a write protection to certain peripherals used by the protocol stack. Protected peripherals are described in the S110 nRF51822 SoftDevice Specification.Configure the debugger and compile and link the application code. Download the application using the Keil IDE download button.
Page 36
Evaluation Kit User Guide v1.2 8. In the Utilities tab, select Use Target Driver for Flash Programming. 9. Choose the available debugger from the list as shown in Figure 27. Figure 27 Debugger selection Page 36 of 51...
Evaluation Kit User Guide v1.2 Debugging the nRF51822 chip For debugging with SEGGER J-Link, see Appendix A on page 45. For general information on how to debug using the Keil μVision IDE, see http://www.keil.com/uvision/debug.asp. The following steps tell how to configure the debugger in Keil.
Evaluation Kit User Guide v1.2 nRF51822 debug features and precautions This section contains information about the System Viewer Windows, debugging an application when a readback protected SoftDevice is present, and setting a breakpoint using a SEGGER J-Link debugger. 7.1.1...
Page 39
Evaluation Kit User Guide v1.2 Figure 30 System viewer window of the RNG peripheral Page 39 of 51...
Page 40
Any values in peripheral registers that are restricted or blocked by the SoftDevice will be invisible to the debugger as well. Information on the SoftDevice configuration and memory resource mapping can be found in the S110 nRF51822 SoftDevice Specification. Note: Avoid single stepping to the protected area. Instead, set the breakpoint right after SVC calls while debugging and run the application to the actual breakpoint, see Figure 32 on page 41.
Page 41
Evaluation Kit User Guide v1.2 Figure 32 Setup with a breakpoint after an SVC call Page 41 of 51...
Control Panel, and/or Custom install. The following describes each installation option: • Keil MDK support - installs Keil μVision example project files, the code memory programming algorithm for the J-Link debugger, and the Nordic nRF51 series device database file for Keil.
I have a problem sending/receiving data using the USB to UART bridge. In order to use the USB to UART bridge the software on nRF51822 has to enable flow control. When reconnecting the PCA10001 (using the USB cable) the terminal program running on your computer has to be restarted (you should wait for it to end before disconnecting).
Page 44
Evaluation Kit User Guide v1.2 The drop-down menu in the Master Control Panel doesn’t display any serial numbers. What has happened? Verify that the Master Control Panel software and the drivers for SEGGER OB (JLinkCDCInstaller) have been installed and that the nRF51 Development Dongle (PCA10000) has been plugged into a USB port on your computer.
Evaluation Kit User Guide v1.2 Appendix A: Installing drivers and configuring KEIL projects for the SEGGER debugger This appendix describes the steps for installing the software and using the SEGGER J-Link Lite debugger with Keil μVision for nRF51 series devices, based on J-Link software version 4.52b or later.
Page 46
Evaluation Kit User Guide v1.2 4. Go to http://www.segger.com/IDE_Integration_Keil.html#knownproblems for MDK v4.54. Download JL2CM3 and copy it to <keil>/ARM/Segger. This patch is necessary for the SEGGER debugger to work. 5. Plug the Evaluation Board (PCA10001) into your computer with a USB cable. The LD3 LED will blink while the driver installation occurs.
Page 47
Evaluation Kit User Guide v1.2 Configuring KEIL projects for the SEGGER debugger for first time use 1. Double-click an example project file to open the Keil μVision IDE. 2. Click Target Options on the toolbar or click Project menu and select Options for Target Figure 35 Keil Target configuration 3.
Page 48
Evaluation Kit User Guide v1.2 Note: If the SEGGER J-Link Lite firmware requires an update you will be prompted with the message “A new firmware version is available for the connected emulator”. In this case, click OK. Figure 37 Segger control panel 5.
Page 49
Evaluation Kit User Guide v1.2 Figure 39 Flash settings 7. If the J-Link serial number appears in the SN field, the device is properly installed. The default settings can be accepted by clicking OK, closing both the SEGGER Control Panel and Keil target Driver Setup.
Page 50
Evaluation Kit User Guide v1.2 Liability disclaimer Nordic Semiconductor ASA reserves the right to make changes without further notice to the product to improve reliability, function or design. Nordic Semiconductor ASA does not assume any liability arising out of the application or use of any product or circuits described herein.
Page 51
Evaluation Kit User Guide v1.2 Revision history Date Version Description August 2013 Updated content to match v2.1 of the hardware. Updated Section 3 on page 6. February 2013 Updated content to match v2.0 of the hardware. Updated hardware information in Section 5 on page 14.
Need help?
Do you have a question about the nRF51822 and is the answer not in the manual?
Questions and answers