Skip to content

Conversation

nordic-segl
Copy link
Contributor

@nordic-segl nordic-segl commented Jul 24, 2025

Enable USB samples on nrf54lm20dk board.

nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Jul 24, 2025
Include:
Nrfx 7936 enable usb testing on nrf54lm20dk
nrfconnect/sdk-zephyr#3082
zephyrproject-rtos/zephyr#93667

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
@carlescufi carlescufi changed the title Nrfx 7936 enable usb testing on nrf54lm20dk nordic: enable usb testing on nrf54lm20dk Jul 24, 2025
@nordic-segl
Copy link
Contributor Author

Depends on #92842

@nordic-segl nordic-segl force-pushed the NRFX-7936_Enable-USB-testing-on-nrf54lm20dk branch 2 times, most recently from c650b7c to eb06702 Compare August 18, 2025 06:37
@nordic-segl nordic-segl marked this pull request as ready for review August 18, 2025 07:00
@zephyrbot zephyrbot added platform: nRF Nordic nRFx area: USB Universal Serial Bus area: Samples Samples labels Aug 18, 2025
@nordic-segl nordic-segl force-pushed the NRFX-7936_Enable-USB-testing-on-nrf54lm20dk branch 2 times, most recently from 153a94a to 27432e6 Compare August 18, 2025 08:35
- "HS bNumConfigurations 1"
- "FS bNumConfigurations 1"
- "Actual device speed 2"
- "s-in-status finished"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs USBD INF level logs and connection to host that will perform enumeration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will set USBD INF log level. Otherwise there is nothing usable in the console.

With INF enabled, I see that with/without Host connected, following logs are printed

        - "HS bNumConfigurations 1"
        - "FS bNumConfigurations 1"

Does these logs indicate that the sample works (f.e. USB stack works)? Or there is no value added by extending sample.yaml with these two regexps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without connection to Host I get on the console:

*** Booting nRF Connect SDK v3.1.99-d7b0f5b8d864 ***
*** Using Zephyr OS v4.1.99-53824876e356 ***
[00:00:00.002,198] <inf> usbd_init: interface 0 alternate 0
[00:00:00.002,213] <inf> usbd_init:     ep 0x81 mps 0x0040 interface ep-bm 0x00020000
[00:00:00.002,218] <inf> usbd_init: Instance iface-bm 0x00000001 ep-bm 0x00020000
[00:00:00.002,229] <inf> usbd_init: Init class node 0x200001d8, descriptor length 25
[00:00:00.002,235] <inf> usbd_init: bNumInterfaces 1 wTotalLength 34
[00:00:00.002,242] <inf> usbd_init: HS bNumConfigurations 1
[00:00:00.002,247] <inf> usbd_init: interface 0 alternate 0
[00:00:00.002,258] <inf> usbd_init:     ep 0x81 mps 0x0040 interface ep-bm 0x00020000
[00:00:00.002,263] <inf> usbd_init: Instance iface-bm 0x00000001 ep-bm 0x00020000
[00:00:00.002,270] <inf> usbd_init: Init class node 0x200001d8, descriptor length 25
[00:00:00.002,276] <inf> usbd_init: bNumInterfaces 1 wTotalLength 34
[00:00:00.002,281] <inf> usbd_init: FS bNumConfigurations 1
[00:00:00.027,447] <wrn> udc_dwc2: Experimental DMA enabled

@nordic-segl nordic-segl marked this pull request as draft August 18, 2025 09:14
@nordic-segl nordic-segl force-pushed the NRFX-7936_Enable-USB-testing-on-nrf54lm20dk branch 3 times, most recently from 1eb3fdb to 2cf1852 Compare August 19, 2025 06:15
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Aug 19, 2025
Include:
Nrfx 7936 enable usb testing on nrf54lm20dk
nrfconnect/sdk-zephyr#3082
zephyrproject-rtos/zephyr#93667

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Aug 19, 2025
Include:
Nrfx 7936 enable usb testing on nrf54lm20dk
nrfconnect/sdk-zephyr#3082
zephyrproject-rtos/zephyr#93667

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
@nordic-segl
Copy link
Contributor Author

Works in internal CI

09:03:33  INFO    -  1/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usbd.hid-keyboard.large-out-report      PASSED (device: 1051888449, 3.170s <zephyr>)
09:03:33  INFO    -  2/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usbd.dfu                                PASSED (device: 1051853457, 3.366s <zephyr>)
09:03:33  INFO    -  3/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usbd.mass_ram_fat                       PASSED (device: 1051889462, 4.578s <zephyr>)
09:03:35  INFO    -  4/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.subsys.usb.uvc                          PASSED (device: 1051888449, 4.875s <zephyr>)
09:03:36  INFO    -  5/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.subsys.usb.uvc.camera                   FILTERED (runtime filter)
09:03:54  INFO    -  6/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usb_device_next.cdc-acm-workqueue       PASSED (device: 1051853457, 3.203s <zephyr>)
09:04:00  INFO    -  7/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usb_device_next.cdc-acm                 PASSED (device: 1051853457, 3.210s <zephyr>)
09:04:01  INFO    -  8/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usbd.hid-keyboard.large-report          PASSED (device: 1051888449, 3.012s <zephyr>)
09:04:05  INFO    -  9/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usbd.hid-keyboard                       PASSED (device: 1051853457, 3.241s <zephyr>)
09:04:26  INFO    - 10/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usb_device_next.hid-mouse               PASSED (device: 1051853457, 3.313s <zephyr>)
09:04:26  INFO    - 11/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usb_device_next.midi                    PASSED (device: 1051888449, 4.392s <zephyr>)
09:04:29  INFO    - 12/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usbd.mass_ram_none                      PASSED (device: 1051853457, 4.341s <zephyr>)
09:04:29  INFO    - 13/13 nrf54lm20dk/nrf54lm20a/cpuapp sample.usbd.hid-keyboard.out-report            PASSED (device: 1051888449, 3.230s <zephyr>)

nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Aug 19, 2025
Include:
Nrfx 7936 enable usb testing on nrf54lm20dk
nrfconnect/sdk-zephyr#3082
zephyrproject-rtos/zephyr#93667

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Aug 19, 2025
Include:
Nrfx 7936 enable usb testing on nrf54lm20dk
nrfconnect/sdk-zephyr#3082
zephyrproject-rtos/zephyr#93667

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Aug 19, 2025
Include:
Nrfx 7936 enable usb testing on nrf54lm20dk
nrfconnect/sdk-zephyr#3082
zephyrproject-rtos/zephyr#93667

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
@nordic-segl nordic-segl marked this pull request as ready for review August 19, 2025 10:11
Add 'usbd' to the list of supported peripherals on nrf54lm20dk.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Use console logs to determine if sample operates correctly.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Use console logs to determine if sample operates correctly.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
@nordic-segl nordic-segl force-pushed the NRFX-7936_Enable-USB-testing-on-nrf54lm20dk branch from 2cf1852 to eff4002 Compare August 22, 2025 12:36
@zephyrbot zephyrbot requested a review from JarmouniA August 22, 2025 12:37
Copy link

nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Aug 25, 2025
Include:
Nrfx 7936 enable usb testing on nrf54lm20dk
nrfconnect/sdk-zephyr#3082
zephyrproject-rtos/zephyr#93667

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples area: USB Universal Serial Bus platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants