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

tests/subsys/usb/device/ failed on mimxrt1050_evk board. #19763

Closed
chen-png opened this issue Oct 11, 2019 · 2 comments · Fixed by #21175
Closed

tests/subsys/usb/device/ failed on mimxrt1050_evk board. #19763

chen-png opened this issue Oct 11, 2019 · 2 comments · Fixed by #21175
Assignees
Labels
area: Drivers area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug

Comments

@chen-png
Copy link
Collaborator

To Reproduce
Steps to reproduce the behavior:

  1. west build -b mimxrt1050_evk tests/subsys/usb/device/
  2. west flash
  3. See error

Screenshots or console output
***** Booting Zephyr OS build zephyr-v2.0.0-1126-g91384ef01eb6 *****
D: __usb_descriptor_start 0x80002b68
D: __usb_descriptor_end 0x80002bc1
D: Configuration descriptor 0x80002b7a
D: Interface descriptor 0x80002b83
D: Endpoint descriptor 0x80002b8c
D: Fixing EP address 81 -> 81
D: endpoint 0x81
D: Now the wTotalLength is 25
D: idx_max 11, ascii_idx_max 5, buf 0x80002b99
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 0x80002ba7
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: idx_max 7, ascii_idx_max 3, buf 0x80002bb7
D: char 1 : 31, idx 3 -> 7
D: char 0 : 30, idx 2 -> 5
D: char . : 2e, idx 1 -> 3
D: char 0 : 30, idx 0 -> 1
D: attached
D: set cb, ep: 0x81
Running test suite test_device

starting test - test_usb_dc_api_invalid

Assertion failed at ZEPHYR_BASE/tests/subsys/usb/device/src/main.c:124: test_usb_dc_api_invalid: (usb_dc_ep_set_stall(INVALID_EP) equal to TC_PASS)

usb_dc_ep_set_stall(INVALID_EP)
FAIL - test_usb_dc_api_invalid

starting test - test_usb_dc_api
PASS - test_usb_dc_api

starting test - test_usb_dc_api_read_write
E: Wrong endpoint index/address/direction
E: ***** BUS FAULT *****
E: Imprecise data bus error
E: r0/a1: 0x800012f8 r1/a2: 0x00000080 r2/a3: 0x40184000
E: r3/a4: 0x00000001 r12/ip: 0x00000000 r14/lr: 0x60004607
E: xpsr: 0x61000000
E: Faulting instruction address (r15/pc): 0x600055cc
E: >>> ZEPHYR FATAL ERROR 0: CPU exception
E: Current thread: 0x8000136c (unknown)
E: Halting system

Environment (please complete the following information):

  • OS: Fedora29
  • Toolchain: zephyr-sdk-0.10.3
  • Commit ID: 91384ef
@chen-png chen-png added the bug The issue is a bug, or the PR is fixing a bug label Oct 11, 2019
@MaureenHelm
Copy link
Member

@MarkWangChinese please have a look

@MaureenHelm MaureenHelm added area: USB Universal Serial Bus platform: NXP NXP labels Oct 14, 2019
@dleach02 dleach02 self-assigned this Oct 15, 2019
@dleach02 dleach02 added the priority: medium Medium impact/importance bug label Oct 15, 2019
@jfischer-no jfischer-no self-assigned this Nov 22, 2019
@jfischer-no jfischer-no added priority: low Low impact/importance bug and removed priority: medium Medium impact/importance bug labels Nov 22, 2019
@jfischer-no
Copy link
Collaborator

Lower the priority, it is just a parameter check, will take a look at it next days.

jfischer-no added a commit to jfischer-no/zephyr that referenced this issue Feb 13, 2020
Add checks for valid endpoint.
Fix controllerHandle check in usb_dc_detach().

Fixes: zephyrproject-rtos#19763

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
carlescufi pushed a commit that referenced this issue Mar 10, 2020
Add checks for valid endpoint.
Fix controllerHandle check in usb_dc_detach().

Fixes: #19763

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
hakehuang pushed a commit to hakehuang/zephyr that referenced this issue Mar 18, 2020
Add checks for valid endpoint.
Fix controllerHandle check in usb_dc_detach().

Fixes: zephyrproject-rtos#19763

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Drivers area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants