The below program should blink the built-in LED and and print "Hello, World!" to Serial every two seconds. On a Nucleo L432KC it does blink the built-in LED but it doesn't print "Hello, World!" to Serial. On a Nucleo F303K8 or Nucleo F411RE the program functions correctly, the built-in LED blinks and "Hello, World!" is printed to Serial.
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
}
void loop() {
Serial.println("Hello, World!");
digitalWrite(LED_BUILTIN, HIGH);
delay(50);
digitalWrite(LED_BUILTIN, LOW);
delay(1950);
}
Hi @fivdi
Right, there is an issue with 1.3.0 with serial.
See https://github.com/stm32duino/Arduino_Core_STM32/commit/c322ae509c8b7c116be529d6b168ef917f043d8e
This fix this issue.
@fpistm yes, that fixes it, thanks.
Came here looking for exactly for this. Target date for 1.3.1 at all?
Hi, this will be the 1.4.0 and it should be in one or 2 weeks
It still not working for me, even with all that mentioned changes above:(
Serial communications only works on version 1.2.0
Hi @projetandonoape
With this fix it should work. I guess you have other issue but I can't guess which one without any info.
I will release 1.4.0 next week so I advise to wait and then test.
Most helpful comment
Hi @fivdi
Right, there is an issue with 1.3.0 with serial.
See https://github.com/stm32duino/Arduino_Core_STM32/commit/c322ae509c8b7c116be529d6b168ef917f043d8e
This fix this issue.