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

Microbit development with Segger Embedded Studio & SDK 12.2

All,

I recently acquired a BBC Microbit and have been having a play with trying to setup a development environment using the Segger Embedded Studio and the Nordic 12.2 SDK. I was wondering if anybody else had been down this road before me and had a working setup?

I have something that is almost working but falls over at some point during initialisation when running the ble beacon example. I have been able to successfully run the peripheral blinky example after modifying the LED mapping in the board config.

The high level steps I have followed so far are:

Firstly I flashed the LPC micro on the Microbit with the J-Link firmware as described here: www.segger.com/bbc-micro-bit.html

After this I am able to run the simple examples that Segger provide without any issues.

I then tried following this blog on using the Nordic SDK with Embedded Studio: devzone.nordicsemi.com/.../

I have used the above as a guide but changed targets and so on so that as far as I can tell I am building for the nrf51822 on the Microbit. I imported the ble_app_beacon_pca10028_s130 project as the basis for my experiments. I have the following segment placement macros defined: FLASH_START=0x1b000 SRAM_START=0x200013c8

This downloads without issue to the Microbit and I can step through the init code until it gets to the call to: ble_stack_init()->SOFTDEVICE_HANDLER_INIT()->sd_softdevice_enable()

After this it seems to get stuck and never returns. If I stop the core with the debugger it is normally around 0x91D0.

I haven't touched the settings in pca10028.h and I am wondering if it is something to do with the clock settings?

Any help would be appreciated :).

Jonathan

Related