Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

programming nRF51822 and integrating it on a PCB

Tags:

firmware

I have a basic firmware question. I am looking to program a nRF51822 IC and integrate it on my own PCB. The evaluation kit seems to already have the IC soldered on it. Is it a way I can only program the nRF51822 and getting it ready to use elsewhere?

like image 507
Pok Avatar asked Jan 11 '23 12:01

Pok


2 Answers

Get yourself one of these J-LINK LITE CortexM:

enter image description here

and hook up your connection header like this to your microcontroller (SWDIO, SWCLK, VCC and GND are the only ones needed):

enter image description here.

Then, use Keil or nRFGo Studio to program your device.

like image 171
chwi Avatar answered Jan 14 '23 01:01

chwi


You don't need J-Link at all. Any STLinkv2 board will work, like STM32 dev boards. But even nicer are these cheap Chinese programmers: http://www.aliexpress.com/item/FREE-SHIPPING-ST-Link-V2-stlink-mini-STM8STM32-STLINK-simulator-download-programming-With-Cover/32247200104.html

All you need to do is connect the Vcc, Ground, SDIO, and SWDCLK lines from your board/chip to the programmer, so make sure those pins are broken out and easy to get to. There are some good instructions on how to do that here: https://github.com/RIOT-OS/RIOT/wiki/Board:-yunjia-nrf51822

I've built Linux workstations for workers on assembly lines to use with this method, and it just loops over and over for new boards. So they don't even need to touch the PC, they can just place a board on the jig or connect a header and it's all automatic.

like image 26
nemik Avatar answered Jan 14 '23 02:01

nemik