This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to program an nRF51822 using SWDIO/CLK?

Hej,

that might sound like a dumb question, but what is the minimal setup to program an nRF51822 SoC using the SWDIO/CLK ports?

  1. What external hardware is required?
  2. What software is required to built and flash a new firmware?
    • What about the mbed SDK? Can I use it with a minimal setup?

I'm essentially looking for a minimal setup, which allows me to power and flash an nRF51822 based installation.

Sincerely, Oliver

Parents
  • Q1: You need a programmer. We use J-link from Segger, but in theory you could use any Cortex M0 programmer that supports the SWD interface. You need four pins, VDD, GND, SWDIO and SWDCLK to program it.

    Q2: Both the nRF51x22-EK and the nRF51822-mBED kit comes with an onboard programmer so you can get one of those an you'll be ready to test, evaluate and develop code. We have most code examples built for Keil uVision, but there's also some code examples available on mBED and for GCC based platforms. Keil supports compiling application code for up to 32 k for free, so if your application is small, that would be a good place to start.

  • this is a great question. i am looking for an answer for this too. i have not found any resources that explains how to use the nRF51dk to program a custom board.... any help is appreciated.

Reply Children
No Data
Related