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
Thingy91 USB-UART bridge #1011
Thingy91 USB-UART bridge #1011
Conversation
I wonder if this should be in |
@carlescufi It was developed for the Thingy:91, but the code itself is generic, as long as the device is Nordic, and has a UART and USB device. It should be configurable for something like the nRF52840 DK or dongle down the line. |
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.
Have been proven to work on the Thingy:91 for a while now.
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.
Looks okay, left a few comments. If this can indeed run on other boards, I think it should be put under /samples
rather than /applications
.
fad97f5
to
78d5d3c
Compare
@lemrey could you revisit? |
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.
Looks better, left a few comments (remember to squash the commits).
You should add a yml
file to the project directory and we should decide on the location.
If you say this will support more than one board in the future it would make sense to move it under samples
, otherwise we can leave it here. I think it would be useful to have it run on another board.
0a58f7d
to
d464df9
Compare
@lemrey All right, handled the comments. Regarding the location in NCS, these are my thoughts after some deliberation: I see two development paths for this app:
There is value in both options, but I propose we start with applications/thingy91/thingy91_interface for now. That will allow the Thingy:91 project to start building product releases for the nRF52 from a consistent location in the NCS. Since a UART bridge is generally useful for other projects or a standalone sample, maybe we should over time make a configurable subsystem for it (not unlike the at_host library) with its own sample. Would be great with some input from @jtguggedal and/or @joakimtoe as well on this. |
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.
I am fine with leaving it under /applications
if we don't want to support other boards for now.
Do you plan to move this to /applications/thingy91/...
?
d464df9
to
7b73783
Compare
All checks are passing now. Review history of this comment for details about previous failed status. |
7b73783
to
ba617a6
Compare
@lemrey Handled comments and moved to Also increased the power management thread stack up a bit (to |
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.
Thank you for addressing all the comments 👍
Added entry to changelog. |
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.
Looks fine, one nitpick to fix.
ba617a6
to
ec96c44
Compare
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.
This requires a bit of documentation, a bare minimum at least.
Also I would move it to applications/usb/usb_uart_bridge
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.
One question about license, otherwise looks good to me.
I've been running the application reliably for several hours without issues. MCUboot part of it has not been tested, though.
ec96c44
to
dd55987
Compare
Added doc and moved to samples, as per internal discussion |
dd55987
to
143830a
Compare
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, thanks for your patience
One last nit: After moving it to samples, the commit title could be changed to reflect that |
143830a
to
768a5e3
Compare
a207fd7
to
a622751
Compare
Adjust board configurations to be similar to PCA10059, which also uses MCUboot over CDC ACM. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
Adds USB to UART bridge intended for PCA20035. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no> Signed-off-by: Bernt Johan Damslora <bernt.johan.damslora@nordicsemi.no>
a622751
to
295ea55
Compare
Fixed missing entry in TOC and commit name. Should be ready to merge now |
This PR contains the firmware intended to run on the nRF52840 on the Thingy:91, and updated board support for the same.