-
Notifications
You must be signed in to change notification settings - Fork 3k
nRF52840 USB Device Implementation #10689
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
nRF52840 USB Device Implementation #10689
Conversation
… Ready event isn't ever getting triggered
…BD from starting up
…c EP0STATUS task triggering at end of DMA transfer
…e hardware expects. First working example!
…he soft reset test.
…ccess state information.
…aring the Nordic HW for the status stage of a control transfer would sometimes cause the HW to automatically ACK an "invalid" command during the control stall test. This would cause the test to fail (because an invalid request was not stalled).
…bort would not be called on ISO endpoints (this currently causes an ASSERT in the Nordic driver
…ded in data from usb event
…ndpoints in nordic driver to prevent an ASSERT when it is called on ISO endpoints
…hanges to fail. Endpoints were not being removed properly in the Nordic driver
…terrupt. Not entirely sure this is appropriate.
…for Nordic driver calls
…le and then reenable when USBPhyHw::endpoint_unhalt() is called.
This should get into 5.13.1 (will reschedule CI once rc3 completes) . I reached out to @maciejbocianski to get review complete but should not block this any longer |
@AGlass0fMilk |
@maciejbocianski The preview DK chips have so many USB-related errata that one Nordic employee said: Can you try the tests on a production-quality nRF52840 DK? |
CI started |
@AGlass0fMilk |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
There's fix proposed in #10833, will restart CI after |
Unfortunately I don't have access to non-Preview version of the board to run the tests |
We can probably get one sent to you. See @Loverdeg for my email. |
Correction @loverdeg-ep for my email |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just wonder how to prevent running the USB stuff on nRF52840-Preview-DK board
We literally destroyed all our PDK's. That solved most of our problems. |
Yes. In case that did not come through; I recommend anybody who reads this to destroy your NRF52840-PDK. Preview Development Kit QSPI is irreparably broken, USB as well, among many other erratas. Don't let somebody suffer by letting them borrow it or by giving it to them. Literally snap it in half or sledge it and recycle it at an appropriate facility. |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Lots of random failures over the weekend. Restarting CI. |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
@adbridge I'm having trouble viewing the details of why the greentea test failed. Is there any way the logs can be made public? |
@AGlass0fMilk the current failures we think are internal to the CI. A fix has been applied and we are waiting to see if it has fixed things. If it has then I will restart the tests on here. |
@AGlass0fMilk Sounds like we need to make an issue for publication of the tests. |
Hooray! Resolves #7674 |
I found an issue when updating to Initially, I updated to After some troubleshooting, it turned out that cherry picking the commits from this PR re-enabled the UART RX. |
5.13.1 will be release in a week so should have the fix ! |
Description
Implemented USBPhy on the Nordic nRF52840 target.
nrf_drv_usbd.*
)usb/device/targets/TARGET_NORDIC/...
Extensive testing has been done and the basic USB test suite has passed hundreds of times. Admittedly, I have only been building with the
GCC_ARM
toolchain.See comments on #7674 for test results
See original PR here: https://github.com/TacoGrandeTX/mbed-os/pull/10
This is a rebased version of this PR here: #10457
This is a rebased version (after SDK15 changes were pulled into master) of this PR here: #10526
Pull request type
Reviewers
@0xc0170
@c1728p9