Conversation

brianddk

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. Add enable_uart=1 to the Raspberry Pi computer config.txt and boot it.
  2. Connect pins pico:{1,2,3} to pi:{10,8,6}
  3. Connect to Pico using Thonny
  4. From Thonny, run terminal.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 (like raspi-config) work

@lurch

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

Add reference to picoprobe.
@brianddk

@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 tie picoA:{GP2, GP3} to GND or 3V3?

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

@lurch

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

Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.