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

K82F: Add USBDEVICE support #11293

Merged
merged 1 commit into from Aug 28, 2019

Conversation

@mmahadevan108
Copy link
Contributor

commented Aug 22, 2019

Description

Add USBDEVICE support for K82F, test results below:

mbedgt: test suite report:
| target | platform_name | test suite | result | elapsed_time (sec) | copy_method |
|--------------|---------------|---------------------------------|--------|--------------------|-------------|
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | OK | 60.99 | default |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | OK | 21.99 | default |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-msd | OK | 88.64 | default |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | OK | 33.63 | default |
mbedgt: test suite results: 4 OK
mbedgt: test case report:
| target | platform_name | test suite | test case | passed | failed | result | elapsed_time (sec) |
|--------------|---------------|---------------------------------|-------------------------------------------------|--------|--------|--------|--------------------|
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | endpoint test abort | 1 | 0 | OK | 16.46 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | endpoint test data correctness | 1 | 0 | OK | 0.7 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | endpoint test data toggle reset | 1 | 0 | OK | 0.39 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | endpoint test halt | 1 | 0 | OK | 8.86 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | endpoint test parallel transfers | 1 | 0 | OK | 4.42 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | endpoint test parallel transfers ctrl | 1 | 0 | OK | 4.76 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | usb control basic test | 1 | 0 | OK | 0.54 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | usb control sizes test | 1 | 0 | OK | 0.44 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | usb control stall test | 1 | 0 | OK | 0.37 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | usb control stress test | 1 | 0 | OK | 0.46 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | usb device reset test | 1 | 0 | OK | 1.32 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | usb repeated construction destruction test | 1 | 0 | OK | 1.73 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-basic | usb soft reconnection test | 1 | 0 | OK | 1.73 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | Configuration descriptor, generic | 1 | 0 | OK | 0.56 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | Configuration descriptor, keyboard | 1 | 0 | OK | 0.33 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | Configuration descriptor, mouse | 1 | 0 | OK | 0.33 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | HID class descriptors, generic | 1 | 0 | OK | 0.31 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | HID class descriptors, keyboard | 1 | 0 | OK | 0.34 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | HID class descriptors, mouse | 1 | 0 | OK | 0.32 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | Raw input/output, 1-byte reports | 1 | 0 | OK | 0.42 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | Raw input/output, 20-byte reports | 1 | 0 | OK | 0.4 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-hid | Raw input/output, 64-byte reports | 1 | 0 | OK | 0.41 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-msd | mount/unmount and data test - Heap block device | 1 | 0 | OK | 19.65 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-msd | mount/unmount test - Heap block device | 1 | 0 | OK | 49.98 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-msd | storage initialization | 1 | 0 | OK | 0.05 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | CDC RX multiple bytes | 1 | 0 | OK | 3.49 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | CDC RX multiple bytes concurrent | 1 | 0 | OK | 3.36 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | CDC RX single bytes | 1 | 0 | OK | 0.4 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | CDC RX single bytes concurrent | 1 | 0 | OK | 0.41 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | CDC USB reconnect | 1 | 0 | OK | 0.85 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | CDC loopback | 1 | 0 | OK | 1.03 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | Serial USB reconnect | 1 | 0 | OK | 1.04 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | Serial getc | 1 | 0 | OK | 0.39 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | Serial line coding change | 1 | 0 | OK | 0.87 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | Serial printf/scanf | 1 | 0 | OK | 1.64 |
| K82F-GCC_ARM | K82F | mbed-os-tests-usb_device-serial | Serial terminal reopen | 1 | 0 | OK | 0.59 |

Pull request type

[ ] Fix
[ ] Refactor
[X] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
@mmahadevan108

This comment has been minimized.

Copy link
Contributor Author

commented Aug 22, 2019

@ciarmcom ciarmcom requested review from maclobdell and ARMmbed/mbed-os-maintainers Aug 22, 2019
@ciarmcom

This comment has been minimized.

Copy link
Member

commented Aug 22, 2019

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

@0xc0170 0xc0170 added needs: CI and removed needs: review labels Aug 26, 2019
@0xc0170

This comment has been minimized.

Copy link
Member

commented Aug 26, 2019

CI started

@mbed-ci

This comment has been minimized.

Copy link

commented Aug 27, 2019

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_greentea-test
@mmahadevan108

This comment has been minimized.

Copy link
Contributor Author

commented Aug 27, 2019

@0xc0170 Not clear on the failure.

@0xc0170

This comment has been minimized.

Copy link
Member

commented Aug 27, 2019

Internal CI failure, will restart once fixed

@0xc0170

This comment has been minimized.

Copy link
Member

commented Aug 27, 2019

I restarted client test however this was an error:

[2019-08-27T16:21:17.322Z] + mkdir cloud-client-test-sources

[2019-08-27T16:21:17.322Z] + cd cloud-client-test-sources

[2019-08-27T16:21:17.322Z] + git clone git@github.com:ARMmbed/mbed-cloud-client-example.git

[2019-08-27T16:21:17.322Z] Cloning into 'mbed-cloud-client-example'...

[2019-08-27T16:21:19.208Z] + cd mbed-cloud-client-example

[2019-08-27T16:21:19.208Z] + rm mbed-os.lib

[2019-08-27T16:21:19.208Z] + rm mbed_app.json

[2019-08-27T16:21:19.208Z] + mv ../../mbed_app.json .

[2019-08-27T16:21:19.208Z] + python -m mbed deploy

[2019-08-27T16:21:19.208Z] Traceback (most recent call last):

[2019-08-27T16:21:19.208Z]   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main

[2019-08-27T16:21:19.208Z]     "__main__", mod_spec)

[2019-08-27T16:21:19.208Z]   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code

[2019-08-27T16:21:19.208Z]     exec(code, run_globals)

[2019-08-27T16:21:19.208Z]   File "/usr/local/lib/python3.6/dist-packages/mbed/__main__.py", line 1, in <module>

[2019-08-27T16:21:19.208Z]     from mbed import main

[2019-08-27T16:21:19.208Z] ImportError: cannot import name 'main'

cc @ARMmbed/mbed-os-test

@0xc0170

This comment has been minimized.

Copy link
Member

commented Aug 27, 2019

tests are going to fail, so far there's failure unrelated to this PR:

[1566925685.25][CONN][INF] found KV pair in stream: {{reason_raw;14000000}}, queued...
[1566925685.25][HTST][INF] TEST FAILED: The raw reset reason is not unique. '14000000' is already present in {'14000000'}.

this looks like that test did not even start and fail with this key value not valid.

@mbed-ci

This comment has been minimized.

Copy link

commented Aug 27, 2019

Test run: FAILED

Summary: 2 of 11 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_cloud-client-test
  • jenkins-ci/mbed-os-ci_greentea-test
@0xc0170 0xc0170 merged commit 7e0fb8f into ARMmbed:master Aug 28, 2019
25 checks passed
25 checks passed
continuous-integration/jenkins/pr-head This commit looks good
Details
jenkins-ci/build-ARM Success
Details
jenkins-ci/build-GCC_ARM Success
Details
jenkins-ci/build-IAR Success
Details
jenkins-ci/cloud-client-test Success
Details
jenkins-ci/dynamic-memory-usage RTOS ROM(-1556 bytes) RAM(-64 bytes)
Details
jenkins-ci/exporter Success
Details
jenkins-ci/greentea-test Success
Details
jenkins-ci/mbed2-build-ARM Success
Details
jenkins-ci/mbed2-build-GCC_ARM Success
Details
jenkins-ci/mbed2-build-IAR Success
Details
jenkins-ci/unittests Success
Details
travis-ci/astyle Success!
Details
travis-ci/docs Success!
Details
travis-ci/doxy-spellcheck Success!
Details
travis-ci/events Success! Runtime is 8669 cycles.
Details
travis-ci/gitattributestest Success!
Details
travis-ci/include_check Success!
Details
travis-ci/licence_check Success!
Details
travis-ci/littlefs Success! Code size is 8464B.
Details
travis-ci/psa-autogen Success!
Details
travis-ci/tools-py2.7 Success!
Details
travis-ci/tools-py3.5 Success!
Details
travis-ci/tools-py3.6 Success!
Details
travis-ci/tools-py3.7 Success!
Details
@mmahadevan108 mmahadevan108 deleted the NXPmicro:K82F_Add_USBDevice branch Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.