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

USB TTL UART Capability #12

Open
dbrgn opened this issue Nov 24, 2020 · 4 comments
Open

USB TTL UART Capability #12

dbrgn opened this issue Nov 24, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@dbrgn
Copy link

dbrgn commented Nov 24, 2020

I'm not sure if this is possible over the shared USB port, but: When debugging a device with UART output, it would be fantastic if the hs-probe could also be used as a serial adapter via USB.

Is it possible that a USB device can be used both as a programmer/debugger, and as a separate serial adapter?

Right now I always need to plug in two cables into my computer: The JLink and a generic USB serial adapter... It would be great if those could be merged. (Yes, I'm aware of RTT, but some projects need to use UART...)

@dbrgn dbrgn added the enhancement New feature or request label Nov 24, 2020
@Disasm
Copy link

Disasm commented Nov 24, 2020

hs-probe for sure can be used in this way, but we don't have a firmware support yet. But this is definitely something to be implemented!

@dbrgn
Copy link
Author

dbrgn commented Nov 24, 2020

Ah, awesome! 🎉

What about the hardware? The SWD pinout doesn't have serial RX/TX. But on this rendering...

image

...there are two RX/TX pins on the right side. Could those be used, given firmware support?

Maybe a dedicated 3-pin header (RX/TX/GND) could be added in a future version.

@Disasm
Copy link

Disasm commented Nov 24, 2020

RX/TX signals are also available on the STDC14 connector. The ones on the board edge are the same signals. And yes, these are the signals that will be used by the USB serial port. Actually, it's already present in firmware and available to your host system, but all the data comes directly into the void.

@dbrgn
Copy link
Author

dbrgn commented Nov 24, 2020

RX/TX signals are also available on the STDC14 connector.

Ah, interesting! So far I've mostly used the 10-pin SWD connector in my projects, but that might be a reason to switch to the 14-pin connector.

Actually, it's already present in firmware and available to your host system, but all the data comes directly into the void.

@Yatekii I'm very much looking forward to the first hardware prototypes, I might give this a try 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants