Collect useful information

… visits
Parent Previous Next

Show a few useful values on an LED, UART or TFT display. This is often enough to find which step stopped working. Keep the output short so it does not slow or stop USB service.

What to record

Area

Useful observations

General USB

Configured and suspended state, latest API result, receive length, event masks and application counters

Browser mode

Network counters and the input pending mask; see the browser guide

MSC files

Request type, file index, offset, length and completion status

These checks show whether the PC is asking for data and whether your application is handling the right bytes.

If you record USB traffic

Start recording before plugging in the device so the first USB exchange is included. Record the exact firmware, PIC and clock settings used for the test.


A PC-side capture shows driver requests and completions. A hardware analyzer can also show bus tokens, handshakes and timing; the available detail depends on the analyzer.

What to include when asking for help

Change one relevant setting at a time and repeat the test. Changing several unrelated settings together makes it hard to tell which change mattered.

See also

Created with the Personal Edition of HelpNDoc: Effortlessly Create Encrypted, Password-Protected PDFs