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

Very long discover time connect with hfclk request

Hi!

I am using SDK15.3.0, PCA10056 and Windows10.

I am notice, that if it will be hfclk request before usb launching and WFE in main loop, time for discover usb device by system increase from less second to 5 second.(I mean time after reset, not first launch)

It can be reproduced with usbd_hid_generic example and NRF52840 DK board(in attachment modified example).

Also, it shouldn't use usb event queue.(APP_USBD_CONFIG_EVENT_QUEUE_ENABLE 0)

You can comment:

574: nrf_drv_clock_hfclk_request(NULL);

or:

621: __WFE();
usbd_hid_generic.zip

It will make fast connect.

Parents Reply Children
No Data
Related