Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented May 19, 2023

Pull Request Overview

As you know, I have a newer variant of the nRF52, and this PR updates the USB driver to handle the newer variant.

Specifically there are now revisions 4 and 5 in the undocumented registers (REVE and REVF) and I went through the errata to ensure 1) there are not new errata and 2) that the old errata still apply.

While I was here I also want to update the commented out code for the debug functions so they are easier to turn on when needed.

Testing Strategy

I have verified I can use the USB stack on the new variant.

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

bradjc added 2 commits May 19, 2023 14:53
This makes debugging easier as the full path is needed without adding
extra "use" statements.
@github-actions github-actions bot added the chips/nrf Change pertains to the nRF5x family of MCUs. label May 19, 2023
@bradjc
Copy link
Contributor Author

bradjc commented Jun 1, 2023

Any issue with this?

@lschuermann
Copy link
Member

Any issue with this?

@bradjc I have an nRF52840DK with me, any advice on how to best test this?

@bradjc
Copy link
Contributor Author

bradjc commented Jun 2, 2023

Any issue with this?

@bradjc I have an nRF52840DK with me, any advice on how to best test this?

Um, well, you can combine #3438, #3440, and #3441, and then use tock/libtock-c#324, and you should be able to plug a usb cable into "nRF USB" and you computer and see a string get typed in.

Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

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

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 8, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bradjc bradjc merged commit 9d2084d into master Jun 8, 2023
@bors bors bot deleted the nrf52-usb-update-new-variant branch June 8, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chips/nrf Change pertains to the nRF5x family of MCUs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants