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
  • Well it all comes down to what you mean by minimal: minimal effort or minimal cost/hardware.

    I'm using an NRF51822 as a supervisory micro + BTLE link for a system with the main application processor running Linux.

    I use two GPIO lines to hook up to the NRF51822 SWD lines which is how the NRF firmware is loaded/updated.

    This link implements the ARM SWD interface, which is a bit cryptic. This allows me to access all the address space of the NRF including being able to read/write GPIOs/ADCs etc and, of course, write the flash.

    If you just want to get a low cost debugger going, then there are many examples on the web that use FTDI chips, eval boards or low-cost SWDs. eg. www.gniibe.org/.../diy-swd-debugger-ftdi2232.html

Reply
  • Well it all comes down to what you mean by minimal: minimal effort or minimal cost/hardware.

    I'm using an NRF51822 as a supervisory micro + BTLE link for a system with the main application processor running Linux.

    I use two GPIO lines to hook up to the NRF51822 SWD lines which is how the NRF firmware is loaded/updated.

    This link implements the ARM SWD interface, which is a bit cryptic. This allows me to access all the address space of the NRF including being able to read/write GPIOs/ADCs etc and, of course, write the flash.

    If you just want to get a low cost debugger going, then there are many examples on the web that use FTDI chips, eval boards or low-cost SWDs. eg. www.gniibe.org/.../diy-swd-debugger-ftdi2232.html

Children
Related