Start Software Portenta without IDE software

Hello, my program run on a portenta board. When i used IDE Arduino, it's ok , and i can send command by serial monitor of arduino IDE.
But when i want to use my smal Qt program, my software made a good detection on Portenta Board. But the software on Portenta, don't run.
All the command don't work ... also all the LEDs don't Blink.

If i start IDE Arduino and also deconnect serial monitor. After i run my QT software on my PC.
All are ok, and all my command is run on arduino portenta.

Have you some informations about it ? Thanks a lot

If your software writes to the Serial port, it may be hung waiting to complete the Serial.print.

Open a Putty window with a serial connection to your serial port to see if it starts to work when that is done.

Hello, thanks for your answer.
Now i test with putty, thanks, and the Arduino software start, and work very well, all the time.
I will verify in my Qt software, if i have problem .

Thanks for all

What i do is add a #defne PRODUCTION_COMPILE

flag. When set, it removes all the serial prints. See how some of the libraries do this (like the asyncwebserver library). They variably output data on the serial port, depending on the debug level.

1 Like

Hello, i find my problem with C with QT5.13, you must add
ArduinoSerial.clearError();
ArduinoSerial.setDataTerminalReady( true);
after open serial port with QT

thansk for all