Trying to run the SDK advertising beacon example: SDK 6.0, S110 7.3.0, device = nRF51822-QFAA(build code: CA/C0) 256kB Flash (rfDuino package) Compiled using gcc-arm-embedded 6.3.1 in FreeBSD, firmware loaded using Bus Blaster v3 in OpenOCD (0.90).
The example compiles and loads fine, but hangs on the sd_app_evt_wait() call. if I comment out the call to sd_app_evt_wait(), the loop runs fine. However, the BLE stack does not appear to run.. no advertisement is transmitted, and no events are generated to trigger the evt_wait.
The only significant change we made to the code was the clock designation in ble_stack_init(): SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM, false);
main.c code included here on pastebin: http://pastebin.com/sZSwxPR8