Cannot get any HW serial interface working on STM32F407VG Discovery
Posted: Mon Mar 01, 2021 3:07 pm
Hello,
I'm trying to get at least of one HW U(S)ART interfaces working, but oscilloscope doesn't show anything.
Have tried several different snippets, but not one of them gives any results.
SoftwareSerial object on same pins gives normal output, default Serial object on USB CDC works ok.
But none of HW serial interfaces ...
What am I doing wrong ? PA9 even shows 5V steady on output ?
Thanks, regards.
I'm trying to get at least of one HW U(S)ART interfaces working, but oscilloscope doesn't show anything.
Have tried several different snippets, but not one of them gives any results.
SoftwareSerial object on same pins gives normal output, default Serial object on USB CDC works ok.
But none of HW serial interfaces ...
What am I doing wrong ? PA9 even shows 5V steady on output ?
Thanks, regards.
Code: Select all
// RX TX
//HardwareSerial SerialTest(PB7, PB6);
//HardwareSerial SerialTest(PA10, PA9);
//HardwareSerial SerialTest(PA_10, PA_9);
//#define GPS_UART_TX PA9
//#define GPS_UART_RX PA10
//HardwareSerial SerialTest(GPS_UART_RX, GPS_UART_TX);
// RX TX
HardwareSerial Serial1(PA10, PA9);
void setup() {
// SerialTest.begin(9600);
Serial1.begin(9600);
// Serial.begin(115200);
}
void loop() {
// SerialTest.println("Hello World!");
Serial1.println("Hello World!");
// Serial.println("Hello World!");
delay(1000);
}