Raspberry PI PICO - serial error

Hi,
I have a problem with starting communication between the Raspberry Pi Pico and the Serial Monitor in Arduino 1.8.13.

My settings:

  • official board R Pi Pico
  • Arduino Mbed OS RP 2040 Board v3.0.1 installed

I can program the board without problems: the blink example, SPI display is working.

But I have a problem communicating with Serial Monitor in Arduino.
I'm uploading an example:

void setup() {
Serial.begin(9600);
}
void loop() {
  Serial.write("Hello world!");
  delay(1000);
}

I also tried with:
Serial1.begin(9600);
Serial1.write("Hello world!");

and i have an error opening COM port communication:

processing.app.SerialException: Błąd otwarcia portu szeregowego 'COM6'.
	at processing.app.Serial.<init>(Serial.java:152)
	at processing.app.Serial.<init>(Serial.java:82)
	at processing.app.SerialMonitor$2.<init>(SerialMonitor.java:132)
	at processing.app.SerialMonitor.open(SerialMonitor.java:132)
	at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
	at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2120)
	at processing.app.Editor.access$1300(Editor.java:117)
	at processing.app.Editor$UploadHandler.run(Editor.java:2089)
	at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM6; Method name - openPort(); Exception type - Port not found.
	at jssc.SerialPort.openPort(SerialPort.java:167)
	at processing.app.Serial.<init>(Serial.java:141)
	... 8 more
Błąd otwarcia portu szeregowego 'COM6'.

it is failed to open COM6
is COM6 the correct port? is it already in used by another program?
run the device manager to check what COM ports are working

yes, when I connect the board in device manager the COM6 port shows.
I tried to reset windows (W10) and run only arduino - no effect

I connected the PICO through the external USB-UART FTDI and it works.
Does not work if I connect PICO directly through USB to PC

I tried on another computer and it works...
I reinstalled the arduino, added the raspberry board again and it started working.

what gpio pinout is using for serial tx/rx?

he connected via usb, not using the gpios

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.