Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple serial terminal example to run on Pico#69

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
brianddk wants to merge2 commits intoraspberrypi:master
base:master
Choose a base branch
Loading
frombrianddk:pico_terminal

Conversation

@brianddk
Copy link

@brianddkbrianddk commentedOct 9, 2023
edited
Loading

Pico serial terminal

A simple example to allow a Pico to act as a serial terminal into another Raspberry Pi computer.
Useful for setting up a Pi when network setup fails for some reason.
Should work for Windows, Linux, or Mac host machines.

  1. Addenable_uart=1 to the Raspberry Pi computerconfig.txt and boot it.
  2. Connect pinspico:{1,2,3} topi:{10,8,6}
  3. Connect to Pico usingThonny
  4. From Thonny, runterminal.py on Pico, then power up the Pi

You should now have a serial terminal to your Raspberry Pi computer through your Pico.

Errata / Bugs

  • Input is only taken a whole line at a time after the EOL character.
  • Line input is ALWAYS echoed back to the terminal as a new line, even passwords
  • Control characters are dropped so no curses tools (likeraspi-config) work

@lurch
Copy link
Contributor

So basically a MicroPython version of the UART -> USB CDC already included inhttps://github.com/raspberrypi/picoprobe/ ?

Add reference to picoprobe.
@brianddk
Copy link
Author

@lurch , Corrected the spelling and added a reference to picoprobe for anyone wanting a more robust solution. I hadn't seen picoprobe, and didn't realize it could be used as a generic USB to UART. Since I'm not using OpenOCD, should I tiepicoA:{GP2, GP3} to GND or 3V3?

But yes... I suppose this is a VERY simple micropython sample to do the same thing.

@lurch
Copy link
Contributor

If you're not using OpenOCD, simply leave the SWD-related pins unconnected.

brianddk reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lurchlurchlurch left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@brianddk@lurch

[8]ページ先頭

©2009-2025 Movatter.jp