I'm using SDK 7.1, SD310 2.0.1, MCP 3.8.0.7
I have two versions of a board with the nRF51. Some of them have the 32kHz crystal and some don't. In my application I have a #define that tells the application to use either: NRF_CLOCK_LFCLKSRC_XTAL_20_PPM or NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_4000MS_CALIBRATION
I had to had the #define, because it seems the stack hangs, waiting for the crystal to start. If there's no crystal it won't start. Is there anyway to get the stack to return an error instead of hanging if there's no crystal?
The idea would be call softdevice_handler_init() with NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, if the crystal doesn't start, the stack returns an error, and then I call softdevice_handler_init() with NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_4000MS_CALIBRATION - and let nRF51run on the internal oscillator.
This would prevent me from having to to have two support separate versions of my app - one that uses the crystal and one that doesn't.