Serial.println not visible in ide

I'm new to Arduino, so sorry for the basic question but I think I've done all the searching I could at this point. I installed Arduino 2.1 on my Mac, and I'm using it with 'Raspberry pi pico w'.

I can build and upload just fine, but the serial monitor is not available. I get the error "No monitor available for the port protocol serial. Could not connect to /dev/cu.usbmodem14101 serial port."

this is my mildly updated blink sketch.

#include "Adafruit_TinyUSB.h"
#include "hardware/pio.h"


void setup() {
  Serial.begin(115200);
  
  while (!Serial);
  delay(100); 

  Serial.println("Startup");
  pinMode(LED_BUILTIN, OUTPUT);
}


void loop() {
  Serial.println("Looping...");
  digitalWrite(LED_BUILTIN, HIGH); 
  delay(1000);   
  digitalWrite(LED_BUILTIN, LOW); 
  delay(1000); 
}

if I comment out the while loop it starts but without any output. Any advice would be greatly appreciated.

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