nRF5 SDK v17.1.0
USB Device Example
This information applies to the following SoCs: nRF52820, nRF52833, and nRF52840.

This is a simple example based on USBD driver - legacy layer. The example emulates a HID mouse.

Setup

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\usbd

LED assignments:

Button assignments:

Testing

Test the USB Device Example application by performing the following steps:

  1. Compile and program the application.
  2. Connect the development kit to the host computer through the J-Link port.
  3. Connect the nRF USB to the host computer.
  4. Press Button 1 and observe that the mouse cursor moves.
    Note
    An "Unknown descriptor requested" error might appear on the console when a non-handled descriptor appears.

Documentation feedback | Developer Zone | Subscribe | Updated