Hi all! I'm a beginner developer. I start my work with nrf51822, download examples e.t.c Now I try to download my code in real PCB with external 16MHz crystal. Code worked on a kit but doesnot work on a real PCB. I think this is due to incorrect CLK. If I get datasheet right, NRF have 2 CLK generator LF and HF, In my situation, HF it is external generator 16MHz and LF generator it is should be Internal RC oscillator or a synthesized 32.768 kHz clock What should I change in the code?
code in nrf_drv_config.h file:
enter code here #define CLOCK_CONFIG_XTAL_FREQ NRF_CLOCK_XTALFREQ_16MHz #define CLOCK_CONFIG_LF_SRC NRF_CLOCK_LF_SRC_RC #define CLOCK_CONFIG_LF_RC_CAL_INTERVAL RC_2000MS_CALIBRATION_INTERVAL #define CLOCK_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
And what should add in main.c for activate external clock?
Thank you for your responses!)