52833 esb+usbd use together issue

I use SDK17.10, when I send radio data using the esb,At this time, insert the usb, it takes a long time to enumerate the usb successfully;  when I disable the esb,I plugged in the usb and soon the enumeration was successful.I wonder what causes USB enumeration to be slow?  I used nrf52833DK board to do the experiment

Parents
  • Hi 

    Approximately how many packets are you sending through ESB every second, and how large is the payload? 

    For every packet sent there will be some interrupts firing and some code that has to be run in order to handle packet buffering etc, and this will take away CPU cycles that could otherwise have been used by the USB stack.

    You are making sure to call app_usbd_event_queue_process() repeatedly from the main loop, even when ESB is running?

    Best regards
    Torbjørn

Reply
  • Hi 

    Approximately how many packets are you sending through ESB every second, and how large is the payload? 

    For every packet sent there will be some interrupts firing and some code that has to be run in order to handle packet buffering etc, and this will take away CPU cycles that could otherwise have been used by the USB stack.

    You are making sure to call app_usbd_event_queue_process() repeatedly from the main loop, even when ESB is running?

    Best regards
    Torbjørn

Children
Related