Hi,
I modified template example and now I am trying to add usb cdc. The applicaton results in Fatal error.I found that nrf_drv_clock_init() works fine but nrf_drv_clock_lfclk_request(NULL); gives Fatal error.
ret_code_t err_code = nrf_drv_clock_init();
APP_ERROR_CHECK(err_code);
nrf_drv_clock_lfclk_request(NULL);
while(!nrf_drv_clock_lfclk_is_running())
{
/* Just waiting */
}
I have included
#include "nrf_drv_clock.h" #include "nrf_drv_power.h"in header , enabled
#ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 1 #endif // <0=> RC // <1=> XTAL // <2=> Synth // <131073=> External Low Swing // <196609=> External Full Swing #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 1 #endif #ifndef NRF_CLOCK_ENABLED #define NRF_CLOCK_ENABLED 1 #endif // <o> CLOCK_CONFIG_LF_SRC - LF Clock Source // <0=> RC // <1=> XTAL // <2=> Synth // <131073=> External Low Swing // <196609=> External Full Swing #ifndef CLOCK_CONFIG_LF_SRC #define CLOCK_CONFIG_LF_SRC 1 #endif #ifndef POWER_ENABLED #define POWER_ENABLED 1 #endif
among other parameters as in usb cdc example but still gets error (I compared sdk_config.h and project includes with usb_cdc_acm example).
Could you please let me know why is it happening?
nRF52840 - Raytac Corporation MDBT50Q Module. (has 32.768 kHz crystal) image attached.
SDK 15.2

Edit: Can you please make it a public case?