This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What's the non-Windows way to flash an nRF51882? (POSIX nrfjprog?)

I'm just getting started with the nRF51 Eval Kit, I have the 5.1 SDK installed, using Mac OS X for development. I also have the GCC ARM toolchain installed. Firstly, I had to hack the Makefile.common to properly pick up the Makefile.posix (rather than Makefile.windows) and was able to build the example(s) I am interested in.

Next, I need to program/flash the pca10000/pca10001 boards. I tried "make flash", but it's looking for a tool called 'nrfjprog' which is not in the SDK. A quick bit of searching in the forums here says that you get it by running the MSI installer ... which is Windows only.

Any ideas? Is the source available for nrfjprog? Is there some alternative?

Thanks.

Parents
  • I got stlink v2 usb dongle ($7) and I can program nrf51822 with it easily at my linux. I think it will work for OSX and Windows too!

    But you probably need to compile openocd v0.8 with --enable-stlink flag at your distro.

    If you want to use JLink adapter, it's also possible with latest openocd patch available at: openocd.zylin.com/ I tried and it's working too! You just need just edit nrf51_stlink.tcl file.

Reply
  • I got stlink v2 usb dongle ($7) and I can program nrf51822 with it easily at my linux. I think it will work for OSX and Windows too!

    But you probably need to compile openocd v0.8 with --enable-stlink flag at your distro.

    If you want to use JLink adapter, it's also possible with latest openocd patch available at: openocd.zylin.com/ I tried and it's working too! You just need just edit nrf51_stlink.tcl file.

Children
Related