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

[doc] Provide access to the UART via virtual com port #1334

Closed
6 tasks done
srobertjames opened this issue Sep 4, 2023 · 10 comments
Closed
6 tasks done

[doc] Provide access to the UART via virtual com port #1334

srobertjames opened this issue Sep 4, 2023 · 10 comments

Comments

@srobertjames
Copy link

srobertjames commented Sep 4, 2023

  • I made serious effort to avoid creating duplicate or nearly similar issue

In order to allow developers to isolate and target your respective issue, please take some time to select the check boxes below and fill out each of the following items appropriate to your specific request.

  • Programmer/board type: [V2-1] (e.g STLINK /V1, /V2, /V2-onboard, /V2-clone, /V3)
  • Operating system an version: [Linux Ubuntu] (e.g Linux, Windows)
  • stlink tools version and/or git commit hash: [v1.7.0] (e.g v1.6.1/git-d0416149)
  • stlink commandline tool name: [st-util] (e.g st-info, st-flash, st-trace, st-util)
  • Target chip (and board, if applicable): [STM32F446RE NUCLEO-F446] (e.g STM32F103C8T6 (NUCLEO-F103RB))

Is it possible to use st-link to access the virtual COM (serial) port provided by STLink? If so, how do I do that? I do not see any /dev/ttyS being created by st-util, and tio is not able to find it either.

@Nightwalker-87
Copy link
Member

No, this is currently not possible.

@Nightwalker-87 Nightwalker-87 added this to the Longlist milestone Sep 4, 2023
@srobertjames
Copy link
Author

I see. What would be involved in implementing this? I may be able to help, but can find no docs on the ST-Link virtual com port implementation.

@Nightwalker-87 Nightwalker-87 self-assigned this Nov 27, 2023
@Nightwalker-87
Copy link
Member

@srobertjames I found this link that may help. As far as I can see, there is no need for any specific implementation.

@Nightwalker-87 Nightwalker-87 pinned this issue Dec 25, 2023
@neithernut
Copy link

My personal two cents:

...so they tell you to uninstall modemmanager, which is almost always a good idea. But depending on your distro you won't have that problem anyway.
Imo, the more relevant hint hidden in that stackexcahnge was the fact that you need the USB ACM driver.

@Nightwalker-87
Copy link
Member

@neithernut Have you been able to test the latter? Does this likely provide a solution from your point of view?

@neithernut
Copy link

@neithernut Have you been able to test the latter? Does this likely provide a solution from your point of view?

I've confirmed that, if I plug in my (dated) STM32F411 nucleo board, the device does show up (according to dmesg) with the USB ACM driver. I planned playing around with it a bit on the weekend. When I do, I'll report back here, maybe with proposed changes to documentation.

@neithernut
Copy link

neithernut commented Jan 5, 2024

Update: got to play around with my board, and everything works just fine. The device pops up as /dev/ttyACM0 on my machine and at least 9600 8N1 works both ways (I used minicom and a simple toy example on the nucleo board).

But now I struggle a bit with where to put this information. Serial communication doesn't concern any of the tools provided in this repo. Maybe we could add some hints to doc/tutorial.md? Maybe a new file in doc/? Will users even look there?

@Nightwalker-87
Copy link
Member

@neithernut Thanks for the update. I'll think about how to deal with the documentation-related part soon.

@Nightwalker-87
Copy link
Member

Nightwalker-87 commented Jan 20, 2024

@neithernut We can add a new section to our tutorial.md under "Solutions to common problems" and extend the title to "How-To's & Solutions to common problems" or anything alike. Could you knock-up a draft for such a section with your original thoughts?

You may also have a look at cutecom which might be a bit more attractive for some users.
For windows users I'd recommend to use Teraterm.

@Nightwalker-87
Copy link
Member

I've added a description to our project tutorial in order to resolve this issue which is now closed.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Jan 21, 2024
@Nightwalker-87 Nightwalker-87 unpinned this issue Jan 21, 2024
@Nightwalker-87 Nightwalker-87 changed the title [feature] Provide access to the UART via virtual com port [doc] Provide access to the UART via virtual com port Jan 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants