Serial1 seem to work but no output
Posted: Sun Jan 16, 2022 10:50 pm
Hello,
I got my own pcb running with blink example.
CPU: STM32G030K6T6
I have connected a USB to Serial Adpater (for Wemos D1) to TX (PA9) AND RX (PA10)
each Second a Text is send with Serial1.println().
The LED of the Adapter blinks if data is sending (each second)
but in the Serial Monitor (Arduino IDE) There is no output at all (Baud 9600)
Script:
int ledPin = PB5;
HardwareSerial Serial1(PA10, PA9); // RX, TX
void setup() {
pinMode(ledPin, OUTPUT);
Serial1.begin(9600);
while (!Serial1) { }
}
void loop() {
Serial1.println("Test Text ");
delay(1000);
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
}
Can anyone help me?
I got my own pcb running with blink example.
CPU: STM32G030K6T6
I have connected a USB to Serial Adpater (for Wemos D1) to TX (PA9) AND RX (PA10)
each Second a Text is send with Serial1.println().
The LED of the Adapter blinks if data is sending (each second)
but in the Serial Monitor (Arduino IDE) There is no output at all (Baud 9600)
Script:
int ledPin = PB5;
HardwareSerial Serial1(PA10, PA9); // RX, TX
void setup() {
pinMode(ledPin, OUTPUT);
Serial1.begin(9600);
while (!Serial1) { }
}
void loop() {
Serial1.println("Test Text ");
delay(1000);
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
}
Can anyone help me?