9 years, 10 months ago.

how do I enable mbed for a nrf51822 breakout board ?

hi guys, I'm working on a nrf51822 breakout board sourced from alibaba.com . I want to enable this breakout board to be programmed through mbed. Ordinarily, the way to program and debug this is through a JLink+Keil platform (that comes packaged with the kit) or to use an mbed enabled mkit (https://mbed.org/forum/platform-39-Nordic-nRF51822-community/topic/4849/?page=1#comment-25003)

Some people have used the Arch-ble (https://mbed.org/users/yihui/notebook/nrf51822-with-pyocd-and-arch/) to do it. Some people have used the STLink/STM32F103 (https://github.com/RIOT-OS/RIOT/wiki/Board:-yunjia-nrf51822) through OpenOCD. A few others look like they have used the LPCXpresso (http://bril-tech.blogspot.co.uk/2014/06/bluetoothsmartmbed-3.html), but I cant be sure since I cant read/translate chinese that well.

Can I use the stlink as an mbed interface to program the nrf51822 ? If someone has done something similar, it would be really helpful to understand the wiring as well as the build. Currently, I'm using https://github.com/sandys/mbed-nrf51-gcc-test/ to use cmake to build the app.

thanks!

Hi Sandeep ss,

I am looking for a nRF51822 breakout board. Couldn't find any in alibaba or aliexpress. Could you provide any link/reference to the one you are referring to?

Thanks!

posted by Tech Geek 06 Mar 2015

1 Answer

9 years, 6 months ago.

You can always export from mbed to an offline toolchain and use that toolchain to do whatever you want. The default settings for an offline project are CMSIS-DAP, so you'll need to change that to Jlink, or Ulink or whatever you're using. This is one option. Also keep in mind that if you're using a tweaked version of the chip you'll need to make the appropriate tweaks in the project settings, (flash space, stack pointer...etc)

Good luck!