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

Problem with bootloader, SDK 14.2 and RC LFCLK

I am experiencing a strange issue with the bootloader on my custom board in SDK 14.2.

Symptoms are that the board won't run until given an external kick - all it requires is JLINK to be connected once (not even debugger connected) and then the board runs and can be disconnected from the programmer.

If I flash just the application without the bootloader (so the Softdevice handles clock initialisation) then the board runs fine without the need for the initial JLINK kick.

I have eliminated a clock configuration issue - I've traced through the bootloader initialisation in the debugger and it is pulling the correct values to setup the RC LFCLK source from sdk_config.h when making the call to nrf_drv_clock_init.

My suspicion is that the clock initialisation code in the SDK 14 bootloader is missing a step necessary to start the RC oscillator. This wouldn't be immediately obvious on the DK board as the debug interface chip would generally be active/sending SWDCLK and this seems to be enough to kick the RC into life.

This is driving me crazy - any help would be gratefully received!

Parents Reply Children
Related