Skip to content

K22: Add USBDEVICE support #11284

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

Merged
merged 1 commit into from
Aug 22, 2019
Merged

Conversation

mmahadevan108
Copy link
Contributor

Description

Add USBDevice support. Below is the test result:

target platform_name test suite result elapsed_time (sec) copy_method
K22F-IAR K22F mbed-os-tests-usb_device-basic OK 58.72 default
mbedgt: test suite results: 1 OK
mbedgt: test case report:
target platform_name test suite test case passed failed
---------- --------------- -------------------------------- -------------------------------------------- -------- --------
K22F-IAR K22F mbed-os-tests-usb_device-basic endpoint test abort 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic endpoint test data correctness 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic endpoint test data toggle reset 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic endpoint test halt 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic endpoint test parallel transfers 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic endpoint test parallel transfers ctrl 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic usb control basic test 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic usb control sizes test 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic usb control stall test 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic usb control stress test 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic usb device reset test 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic usb repeated construction destruction test 1 0
K22F-IAR K22F mbed-os-tests-usb_device-basic usb soft reconnection test 1 0
mbedgt: test case results: 13 OK
target platform_name test suite result elapsed_time (sec) copy_method
K22F-IAR K22F mbed-os-tests-usb_device-hid OK 23.3 default
mbedgt: test suite results: 1 OK
mbedgt: test case report:
target platform_name test suite test case passed failed
---------- --------------- ------------------------------ ------------------------------------ -------- --------
K22F-IAR K22F mbed-os-tests-usb_device-hid Configuration descriptor, generic 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid Configuration descriptor, keyboard 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid Configuration descriptor, mouse 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid HID class descriptors, generic 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid HID class descriptors, keyboard 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid HID class descriptors, mouse 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid Raw input/output, 1-byte reports 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid Raw input/output, 20-byte reports 1 0
K22F-IAR K22F mbed-os-tests-usb_device-hid Raw input/output, 64-byte reports 1 0
mbedgt: test case results: 9 OK
target platform_name test suite result elapsed_time (sec) copy_method
K22F-IAR K22F mbed-os-tests-usb_device-serial OK 31.57 default
mbedgt: test suite results: 1 OK
mbedgt: test case report:
target platform_name test suite test case passed failed
---------- --------------- --------------------------------- ---------------------------------- -------- --------
K22F-IAR K22F mbed-os-tests-usb_device-serial CDC RX multiple bytes 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial CDC RX multiple bytes concurrent 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial CDC RX single bytes 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial CDC RX single bytes concurrent 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial CDC USB reconnect 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial CDC loopback 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial Serial USB reconnect 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial Serial getc 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial Serial line coding change 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial Serial printf/scanf 1 0
K22F-IAR K22F mbed-os-tests-usb_device-serial Serial terminal reopen 1 0
mbedgt: test case results: 11 OK

The USB MSD tests uses RAM space to mount a filesystem. K22F does not have enough RAM space to run this test, below are test results when the test was modified to use FlashIAP

target platform_name test suite result elapsed_time (sec) copy_method
K22F-IAR K22F mbed-os-tests-usb_device-msd OK 88.06 default
mbedgt: test suite results: 1 OK
mbedgt: test case report:
target platform_name test suite test case passed failed
---------- --------------- ------------------------------ ------------------------------------------------- -------- --------
K22F-IAR K22F mbed-os-tests-usb_device-msd mount/unmount and data test - Heap block device 1 0
K22F-IAR K22F mbed-os-tests-usb_device-msd mount/unmount test - Heap block device 1 0
K22F-IAR K22F mbed-os-tests-usb_device-msd storage initialization 1 0
mbedgt: test case results: 3 OK

Pull request type

[ ] Fix
[ ] Refactor
[X] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Signed-off-by: Mahesh Mahadevan <[email protected]>
@mmahadevan108
Copy link
Contributor Author

@ciarmcom
Copy link
Member

@mmahadevan108, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested a review from a team August 21, 2019 19:00
Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

One-liner commit but for future, removing spaces should be in separate commit

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 22, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Aug 22, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 3
Build artifacts

@0xc0170 0xc0170 merged commit 1182d1e into ARMmbed:master Aug 22, 2019
@mmahadevan108 mmahadevan108 deleted the K22_Add_USB_Support branch August 22, 2019 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants