Page 1 of 1

cant open the stm32f401cc serial terminal

Posted: Sat Aug 13, 2022 9:49 am
by leonardo
my board is stm32f401cc,and IDE is PlatformIO in vscode.
Image
When I build and upload the code (via serial port), I open the monitor with serial port but can't see any data, thanks for your help

Code: Select all

#include <Arduino.h>
void setup() {

Serial.begin(9600);

}

void loop() 
{

    Serial.println(" Hello Arduino ");

}
This is what I have after opening the serial monitor

Code: Select all

--- Terminal on /dev/cu.SLAB_USBtoUART | 9600 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H

Re: cant open the stm32f401cc serial terminal

Posted: Sat Aug 13, 2022 10:40 am
by GonzoG
What are your board settings ??
As Serial might be USB Serial, not UART.

Re: cant open the stm32f401cc serial terminal

Posted: Sat Aug 13, 2022 3:34 pm
by leonardo
GonzoG wrote: Sat Aug 13, 2022 10:40 am What are your board settings ??
As Serial might be USB Serial, not UART.
hi,thanks.my board setting is UART.

Re: cant open the stm32f401cc serial terminal

Posted: Sat Aug 13, 2022 9:41 pm
by GonzoG
UART what ??