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

nRF51822 beacon example on custom board

Hi there,

I'm trying to run the beacon s130 pca20006 example on a custom board. There are 2 main differences between the pca20006 and my board:

  • There is a 32 Mhz oscillator on my board
  • There is no LF oscillator on my board

To make the example run on hardware, I did 3 changes:

(#1) Change oscillator frequency from Keil Target Options: image description

(#2) Setup oscillator frequency at the very begin of the main function:

NRF_CLOCK->XTALFREQ &= 0xFFFFFF00;

(#3) Setup LF oscillator to work from internal RC:

SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION , NULL);

###My question is - I'm missing something else? The reason I'm asking this is because with the changes I mentioned the code is still not working. It's difficult to explain what is going on, the behavior weired - running with debugger it looks to reset itself all the time.

I double checked I'm using the right softdevice version (same hex provided with the example)

Any advice / through is appreciated!!

Related