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!!

Parents
  • If the device keeps resetting, an error code have most likely put it in the error handler. Have you tried debugging using this method, to see what function call is returning an error? What version of the beacon firmware are you using?

Reply
  • If the device keeps resetting, an error code have most likely put it in the error handler. Have you tried debugging using this method, to see what function call is returning an error? What version of the beacon firmware are you using?

Children
No Data