Programing: BLE400 (NRF51822 module) using RaspberryPI 2 using OpenOCD 

 

Overview

 

The BLE400 is a nRF51822 development/evaluation kit designed for the wireless module Core51822. 

 

BLE400-size

BLE400 Mother board and Core51822

 

Hardware connection

 

 

Raspberry PI And BLE400 Connected

 

ConnectionDiagram:


                  RaspberryPI               BLE400
SWD data I/O:     GPIO PIN 24 <-----------> SWDIO (SWD, pin7)
SWD clock:        GPIO PIN 25 <-----------> SWD   (SWD, pin9)
common ground:           GND  <-----------> GND   (SWD, pin18)

Install the latest OpenOCD software using:

cd ~/Downloads

sudo bash

apt-get install -y libtool libusb-dev libusb-1.0 autoconf automake texinfo

git clone git://git.code.sf.net/p/openocd/code openocd-code

cd openocd-code/

./bootstrap

./configure --enable-sysfsgpio --enable-bcm2835gpio

make

make install

 

Runnign OpenOCD on RaspberryPI2

 

sudo openocd -f interface/raspberrypi2-native.cfg -c "transport select swd; set WORKAREASIZE 0" -f target/nrf51.cfg