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.

  • Hello Asbjorn ...i have nRF51-DK(PCA10028) and i want to program my own board which is based on NRF51822 .. i connect debug out header P19 to my board . can you please tell me what is the requirement that i full fill . and is any change that i want to make.? and if i load code in NnRF board than it automatically load in my board or not?

Reply Children
No Data
Related