Hi,
I tried several examples on nrf52840 dongle. Each one works well except usbd example. It hangs at the following code:
nrf_drv_clock_hfclk_request(NULL);
nrf_drv_clock_lfclk_request(NULL);
while (!(nrf_drv_clock_hfclk_is_running() &&
nrf_drv_clock_lfclk_is_running()))
{
/* Just waiting */
}
int main(void)
{
uint32_t err_code = NRF_SUCCESS;
APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
NRF_LOG_DEFAULT_BACKENDS_INIT();
err_code = nrf_drv_clock_init();
if ((err_code != NRF_SUCCESS) &&
(err_code != NRF_ERROR_MODULE_ALREADY_INITIALIZED))
{
APP_ERROR_CHECK(err_code);
}
nrf_gpio_cfg_output(LED2_R);
nrf_gpio_pin_clear(LED2_R);
nrf_drv_clock_hfclk_request(NULL);
while (!nrf_drv_clock_hfclk_is_running())
{}
nrf_gpio_cfg_output(LED2_B);
nrf_gpio_pin_clear(LED2_B);
while(true) {
}
}