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

Is it possible to flash S110 from Linux or OS X?

We're working on a project with the nRF51822, but most of our developers are working from OS X and Linux. Is it possible to flash the softdevice from these platforms? Also, how does debugging work on these platforms?

Parents
  • Yes, this is most definitely possible. Segger deliver their tools for both OS X and Linux, so you first have to install them, available here.

    Having done this, you should be able to use the flash targets in the attached Makefile to flash both the softdevice and an application. You will have to do tweak the path to the J-Link tools, but afterwards you should be able to do

    
    make flash-softdevice SOFTDEVICE=../path/to/softdevice/without/spaces.hex
    
    

    to flash the softdevice.

    Debugging is also possible, by starting the J-Link GDB server with the -if swd command line argument, and then using either command line GDB or GDB integrated into Eclipse or similar to connect to the server, by doing a "target remote localhost:2331". How to set this up for Eclipse is described in nAN-29, and even though it is written for Windows, the Eclipse setup should be very similar on OS X and Linux.

    Makefile.posix.txt

  • Thanks Ole. Why not include the Makefile.posix (it's mentioned, but commented out in Makefile.common too), and the above information in the official SDK; even if under experimental 'label', ?

Reply Children
No Data
Related