Arduino Q not connecting with IDE monitor

This is frustrating and I have tried lots of things. I have done numerous things on the Q but i wont talk to the monitor. It will blink a led etc so it is working but cant send a single character to the IDE monitor even like "Hello World".
Has anyone else had this?

Show your code.

Thanks. See below. Very basic. I used this code but also includding an led blink. and the blinked worked but nothing in the monitor. have matched up the baud rate

void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("Hello from the Uno Q!");
}

void loop() {
delay(1000);
}

Hi @tflahvin. The Serial object is associated with the UART interface of the UNO Q's STMicroelectronics STM32U585 microcontroller, which is accessed via pins 0 and 1 on the headers.

If you instead want to communicate with the Arduino App Lab Serial Monitor, or via the USB CDC serial port the UNO Q produces via its USB connection to a host computer, then you must use the Monitor object instead of the Serial object, as is documented in the UNO Q user manual:

https://docs.arduino.cc/tutorials/uno-q/user-manual/#from-serial-to-monitor

The reason for this is difference is that Arduino App Lab (when using UNO Q in single-board computer (SBC) mode), as well as the USB interface used in "hosted mode" are both on the UNO Q's Qualcomm Dragonwing QRB2210 microprocessor that runs the Linux machine. So the sketch program running on the microcontroller must use a special communication channel to communicate with the Linux machine running on the microprocessor.

The equivalent of your sketch is:

#include <Arduino_RouterBridge.h>
void setup() {
  Monitor.begin();
  delay(5000);
  Monitor.println("Hello from the Uno Q!");
}

void loop() {
  delay(1000);
}

Please give that a try and then let us know if you still have any problems.

Thanks so much. I couldnt tell if you were saying I had to run this on AppLabs or that it could still be run on the IDE via a USB but change to to reference to "Monitor" and leave out the reference to baud rate.
Also the IDE doesnt recognize "include <Arduino_RouterBridge.h>"
Sorry I know im missing obvious....
thanks

It works in the sketch components of Arduino Apps you run via Arduino App Lab, and also in standalone sketches you upload from Arduino IDE.

You can leave in the baud rate if you like. It doesn't have any effect though (as is also the case with traditional Arduino boards that use a USB CDC serial port instead of a UART interface in its communication with the host PC).

Make sure you have the correct board selected.

Select Tools > Board > Arduino UNO Q Board > Arduino UNO Q from the Arduino IDE menus and then try uploading the sketch to your board once again.

Hey there and thanks. I followed your advice and it’s now working!

You are welcome. I'm glad it is working now.

Regards, Per