Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb: mimxrt1180_evk_cm33: some usb cases run failure and console has no output #85266

Open
hakehuang opened this issue Feb 6, 2025 · 1 comment
Assignees
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP

Comments

@hakehuang
Copy link
Collaborator

hakehuang commented Feb 6, 2025

Describe the bug

Please also mention any information which could help others to understand
the problem you're facing:

  • What target platform are you using?
  • mimxrt1180_evk_cm33
  • What have you tried to diagnose or workaround this issue?
  • git bisect
  • Is this a regression? If yes, have you been able to "git bisect" it to a
    specific commit?
  • the usb_device dose not work well since merged.
    #85bdab00decc665a608c49153065557434f0a82b

To Reproduce

west twister -p mimxrt1180_evk/mimxrt1189/cm33  -T tests/subsys/usb/device

same problem with

  • samples/subsys/usb/cdc_acm
  • samples/subsys/usb/audio/headset
  • samples/subsys/usb/audio/headphones_microphone
  • samples/subsys/usb/console
  • samples/subsys/usb/hid-mouse
  • samples/subsys/usb/testusb

Expected behavior

Test PASS

Impact

USB device functions, and CI

Logs and console output

*** Booting Zephyr OS build v4.0.0-4673-g1a18f4bbb03a ***
Running TESTSUITE device_usb
===================================================================
D: lock usb_enable_lock mutex
D: __usb_descriptor_start 0x14005090
D: __usb_descriptor_end 0x14005101
D: Device descriptor 0x14005090
D: Set bMaxPacketSize0 64
D: Configuration descriptor 0x140050a2
D: Interface descriptor 0x140050ab
D: Endpoint descriptor 0x140050b4
D: Fixing EP address 81 -> 81
D: endpoint 0x81
D: Now the wTotalLength is 25
D: idx_max 11, ascii_idx_max 5, buf 0x140050c1
D: char R : 52, idx 5 -> 11
D: char Y : 59, idx 4 -> 9
D: char H : 48, idx 3 -> 7
D: char P : 50, idx 2 -> 5
D: char E : 45, idx 1 -> 3
D: char Z : 5a, idx 0 -> 1
D: idx_max 13, ascii_idx_max 6, buf 0x140050cf
D: char V : 56, idx 6 -> 13
D: char E : 45, idx 5 -> 11
D: char D : 44, idx 4 -> 9
D: char - : 2d, idx 3 -> 7
D: char B : 42, idx 2 -> 5
D: char S : 53, idx 1 -> 3
D: char U : 55, idx 0 -> 1
D: Serial Number
D: 9c 5c f0 96 88 64 f8 00 |.\...d..
D: idx_max 31, ascii_idx_max 15, buf 0x140050df
D: char 0 : 30, idx 15 -> 31
D: char 0 : 30, idx 14 -> 29
D: char 8 : 38, idx 13 -> 27
D: char F : 46, idx 12 -> 25
D: char 4 : 34, idx 11 -> 23
D: char 6 : 36, idx 10 -> 21
D: char 8 : 38, idx 9 -> 19
D: char 8 : 38, idx 8 -> 17
D: char 6 : 36, idx 7 -> 15
D: char 9 : 39, idx 6 -> 13
D: char 0 : 30, idx 5 -> 11
D: char F : 46, idx 4 -> 9
D: char C : 43, idx 3 -> 7
D: char 5 : 35, idx 2 -> 5
D: char C : 43, idx 1 -> 3
D: char 9 : 39, idx 0 -> 1

after failure linkserver can not attached anymore.

Nc: Probe Firmware: MCU-LINK on-board (r0E2) CMSIS-DAP V3.148 (NXP Semiconductors)
Nc: Serial Number:  D02LB5RKBSD1Y
Nc: VID:PID:  1FC9:0143
Nc: USB Path: 0001:003b:00
Nc: Using memory from core 3 after searching for a good core
Ns: redlink server client - failed to receive response (to op 62) from server after 2000ms - Connection timed out (rc 110)
Nc: connection failed - EE(47): Debug Mailbox Request Failed... Retrying
Ns: redlink server client - failed to receive response (to op 12) from server after 2000ms - Connection timed out (rc 110)
Nc: probe 3 TAP 3 failed to read TAP ID - Ee(FF). Redlink interface error 255.
Ed:02: Failed on connect: Ee(FF). Redlink interface error 255.
Et: Probe(0): Connected&Reset. Was: NotConnected. DpID: 5BA02477. CpuID: 00000000. Info: <None>
Nc:   Last stub error 0: OK
Nc:   Last sticky error: 0x0 AIndex: 3
Nc:   Debug bus selected: MemAp 3
Nc:   DAP Speed test unexecuted or failed
Ns: redlink server client - failed to receive response (to op 45) from server after 2000ms - Connection timed out (rc 110)
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Pc: (100) Target Operation Failed
Nc: invalid server read transfer - expect: 1, actual: 0
Nc: invalid server read transfer - expect: 2, actual: 0
Nc: error closing down debug session - Ee(47). Invalid Transfer
CRITICAL: Critical error
ERRMSG: Exception: Flash operation exited with code 1

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows)
  • Toolchain (e.g Zephyr SDK, ...)
  • Commit SHA or Version used

Additional context

@hakehuang hakehuang added bug The issue is a bug, or the PR is fixing a bug area: USB Universal Serial Bus platform: NXP NXP labels Feb 6, 2025
@hakehuang
Copy link
Collaborator Author

if tesing the samples/subsys/usb/dfu it recongaized as Bus 001 Device 094: ID 1fc9:014c NXP Semiconductors OO Blank RT Family, but there is no mcuboot boards for this platform, @mmahadevan108 where can I build bootload to test dfu? do you have any guider? Thanks in advance.

@hakehuang hakehuang changed the title usb: mimxrt1180_evk_cm33: most usb cases run failure and console has no output usb: mimxrt1180_evk_cm33: some usb cases run failure and console has no output Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP
Projects
None yet
Development

No branches or pull requests

2 participants