zephyr/samples/subsys/usb
Tomasz Moń 75109707e3 usb: device_next: Do not add serial number without HWINFO
For many devices iSerialNumber is not required. The only device class
currently supported in Zephyr that requires iSerialNumber is MSC. If the
serial number is not available then iSerialNumber must be 0. Failure to
read the string descriptor for non-zero iSerialNumber fails USB Command
Verifier Chapter 9 tests.

When USBD_DESC_SERIAL_NUMBER_DEFINE() was used without CONFIG_HWINFO
then it did lead to runtime failure when requesting the string (thus
failing certification).

Fail USBD_DESC_SERIAL_NUMBER_DEFINE() at build-time if CONFIG_HWINFO is
not set to prevent the surprise at runtime. Only define serial number
descriptors if CONFIG_HWINFO is enabled.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-03-26 16:18:56 +01:00
..
audio
cdc_acm samples: doc: drop obsolete modemanager notice 2025-02-19 18:48:15 +01:00
common usb: device_next: Do not add serial number without HWINFO 2025-03-26 16:18:56 +01:00
console samples: usb: clean up legacy USB CDC ACM console sample 2025-02-12 02:22:18 +01:00
console-next samples: usb: add console sample for the new USB device stack 2025-02-12 02:22:18 +01:00
dfu sample: usb_dfu: Exclude NXP RT700 board 2025-03-07 19:48:38 +01:00
dfu-next samples: usb: dfu-next: make the sample testable 2025-03-04 12:17:34 +00:00
hid-keyboard
hid-mouse
inf
mass
midi
shell
testusb boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00
uac2_explicit_feedback samples: usb: uac2: Warn about Windows driver issues 2025-03-05 21:52:00 +00:00
uac2_implicit_feedback samples: usb: uac2: Warn about Windows driver issues 2025-03-05 21:52:00 +00:00
webusb boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00
webusb-next
usb.rst