nRF52 DK
Vendor: Nordic Semiconductor
nRF52 DK (PCA10040)
Program Target: nRF52: nRF52832
Sample firmware
zephyr-sample-blinky.hex
: Example “blinky” firmware for nRF52DKnrf52832_xxaa.hex
: ble_app_hrs firmware (nRF5 SDK example)s132_nrf52_6.0.0_softdevice.hex
(Available from Nordic)zephyr-sample-blinky-200ms.hex
: “blinky” firmware for nRF52DK, with 200ms duty cycle
References
Program nRF52832 (JLink)
Connection
Use a USB 2.0 Type-A to micro-USB cable to connect the nRF52DK micro-USB port to any of the USB ports of the PLT.
YAML test plan
suite-nrf52_pca10040-sample.yaml
: PLT test plan forzephyr-sample.hex
title: "Program: blinky sample"
suite:
- ident: DEV-T1
title: Identify DUT
steps:
- command: identify nRF52_JLink
- ident: DEV-T2
title: Erase nRF52 through USB JLink
steps:
- command: erase nRF52_JLink
- ident: DEV-T3
title: Program nRF52 though USB JLink
steps:
- command: program nRF52_JLink zephyr-sample-blinky.hex
suite-nrf52_pca10040-sample-200ms.yaml
: PLT test plan forzephyr-sample-200ms.hex
title: "Program: blinky sample (200ms)"
suite:
- ident: DEV-T1
title: Identify DUT
steps:
- command: identify nRF52_JLink
- ident: DEV-T2
title: Erase nRF52 through USB JLink
steps:
- command: erase nRF52_JLink
- ident: DEV-T3
title: Program nRF52 though USB JLink
steps:
- command: program nRF52_JLink zephyr-sample-blinky-200ms.hex
Zephyr Shell Interaction
Uses Zephyr ‘shell’ sample firmware image for nRF52DK
Firmware is programmed using nRF52DK built-in Segger-OB SWD programmer
UART interaction using the Segger USB CDC UART bridge
title: "Zephyr Shell Interaction (nRF52DK)"
suite:
- ident: DEFINE
steps:
- command: |
define FIRMWARE.elf "zephyr-shell-nrf52dk_nrf52832-3.3.0.elf"
- command: define DUT.target "nRF52_JLink"
- command: define DUT.uart "UART2"
- ident: POWER
steps:
- command: ground all
- command: usb power on
- command: sleepms 100
- ident: JLINK
steps:
- command: usb detect
id: "1366:1015"
- command: uartCfg %DUT.uart% 115200
id: "1366:1015"
- command: sleepms 500
- ident: PROG
steps:
- command: identify %DUT.target%
- command: program %DUT.target% %FIRMWARE.elf%
- command: sleepms 100
- ident: SHELL
steps:
- command: uart %DUT.uart%
send: "\r\nkernel version\r\n"
extract: "\r\n(.*) version (.*)\r\n"
extractkey: KERNEL_NAME KERNEL_VERSION
- command: uart %DUT.uart%
send: "\r\nhwinfo devid\r\n"
extract: "\r\n(.*)devid(.*)\r\n"
extractkey: HWINFO_DEVID_A HWINFO_DEVID_B
Program nRF52832, Test BLE (JLink)
Connection
Use a USB 2.0 Type-A to micro-USB cable to connect the nRF52DK micro-USB port to any of the external USB ports of the back of the PLT.
YAML test plans
suite-hrs-BLE.yaml
title: "Program and Test nRF52DK"
suite:
- ident: ICT-T1
title: Identify nRF52 through USB JLink
steps:
- command: identify nRF52_JLink
- ident: ICT-T2
title: Erase nRF52 through USB JLink
steps:
- command: erase nRF52_JLink
- ident: ICT-T3
title: Program nRF52 through USB JLink
steps:
- command: program nRF52_JLink s132_nrf52_6.0.0_softdevice.hex,nrf52832_xxaa.hex
- ident: ICT-T4
title: BLE discovery
steps:
- command: bledis %BLEMAC% 5
See also