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

32MHZ external Clock congiguration with DFU

I have an external 32MHZ crystal on my custom board.I want to configure it to 32 MHZ external crystal to operate the chip. i changed the some register configuration in software side it is working fine with soft device s130 and with my application but when ever i flash the soft device s130 and boot loader it has to advertise the device with "DFU targ".But it is not at all advertising.please give me the suggestion to how to make the code work with boot loader also.Here i am attaching the part of code to configure the external 32MHZ crystal.

NRF_CLOCK->INTENSET = CLOCK_INTENSET_HFCLKSTARTED_Enabled;
NRF_CLOCK->XTALFREQ = 0xFFFFFF00;

NRF_UICR->XTALFREQ = UICR_XTALFREQ_XTALFREQ_32MHz;

Related