I am having problems getting serial.print to work on the genericSTM32F405RG. My hardware is a flight controller, but otherwise just a normal F405. Below is the PFIO .ini and main. The LED blinks fine, but no matter what I try to do with serial and setting pins I cant get an output. Serial upload works so I know the uart is ok.
Is someone able to confirm the genericSTM32F405RG target is working, or point out if Ive made a silly mistake

Cheers
Code: Select all
[env:genericSTM32F405RG]
platform = ststm32@14.0.1
framework = arduino
board = genericSTM32F405RG
upload_protocol = serial
Code: Select all
#include <Arduino.h>
#define LEDPIN PA8
void setup()
{
Serial.setTx(PA9);
Serial.setRx(PA10);
Serial.begin(9600);
pinMode(LEDPIN, OUTPUT);
}
void loop()
{
Serial.println("loop");
digitalWrite(LEDPIN, HIGH);
delay(250);
digitalWrite(LEDPIN, LOW);
delay(250);
}