zephyr/samples
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
..
application_development samples: code_relocation_nocopy: update macro to get flash size 2025-03-25 22:15:07 +01:00
arch tests/samples: use integration platforms where possible 2025-03-11 11:35:15 +01:00
basic boards: arduino: uno_r4: Add ADC, PWM, I2C, SPI, and TRNG 2025-03-21 09:51:47 +01:00
bluetooth Bluetooth: ISO: Make setting ISO data explicit 2025-03-19 10:56:57 +01:00
boards samples: boards: Add MCO support for nucleo_wl55jc 2025-03-24 19:23:09 +01:00
cpp boards: espressif: esp32c6: Add LP Core board support 2025-03-21 17:05:20 +01:00
drivers samples: dac: Add DAC support for Renesas RA4 boards 2025-03-25 22:13:12 +01:00
fuel_gauge boards: adafruit: add initial support for esp32s3 feather 2025-03-14 17:53:13 +01:00
hello_world samples: hello_world: set minimum flash requirement to 16K 2025-03-04 17:28:33 +01:00
kernel
modules samples: modules: lvgl: add support for rtk7eka6m3b00001bu shield 2025-03-21 14:17:21 +01:00
net modem: modem_cellular: Configurable MTU for CMUX 2025-03-24 19:33:07 +01:00
philosophers
posix boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00
psa secure_storage: use hybrid key store in samples/tests 2025-03-14 14:51:58 +01:00
sensor drivers: sensor: mpu6050: scale settings to DT, adds sample rate setting 2025-03-25 22:12:49 +01:00
shields tests/samples: use integration platforms where possible 2025-03-11 11:35:15 +01:00
subsys usb: device_next: Do not add serial number without HWINFO 2025-03-26 16:18:56 +01:00
synchronization
sysbuild boards: espressif: esp32c6: Add LP Core board support 2025-03-21 17:05:20 +01:00
tfm_integration samples: tfm_integration: Update regression test dependencies 2025-01-20 11:43:32 +01:00
userspace samples: userspace: prod_consumer: Update API to use DEVICE_API macro 2025-01-24 01:15:19 +01:00
index.rst
sample_definition_and_criteria.rst