First my configuration : ST32 core version 2.6.0
uC: STM32F103C8 (generic)
USB Support : "None"
USART Support : "Enable generic serial"
Upload Methode : "STM32CubeProgrammer (Serial)"
IDE : Arduino 2 (for a simple situation every body could test)
Well I wrote this ultra simple code (could not be more simple, this is the first thing I learned to my son !) :
Code: Select all
void setup() {
while(!Serial);
Serial.setRx(PA10); // using pin name
Serial.setTx(PA9);
Serial.begin(115200);
}
void loop() {
Serial.println("STM32Duino Forum !!!");
delay(200);
}
Second problem : By default Serial would use usart 1, not ?? so why if I remove pin assignment (SetRx and SetTx) it is not working (even after disconnect/connect)
All this serial stuff, who normally must work from scratch as simple as push a button look very "special" on STM32 !!!!!!
(I spent 4 hours before found I need to connect / unconnect, and I didnt told you all the story, it was a pity!)
So after all of that, Is ther somebody here who could clarify STM32duino serial ??? (Or am I the only one struggling with such a simple thing?)
Thanks Guys !