Closed
Description
Describe the bug
When using both core_debug()
and Serial.println()
for writing to the serial port, some conflict occurs. Serial
output becomes slow, and core_debug()
output gets lost.
To Reproduce
$ cat STM32SerialAndVcoreDebug.ino
#include <core_debug.h>
void setup() {
Serial.begin(115200);
Serial.println("0123456789");
core_debug("FOOBARBAZ");
}
void loop() {
}
Compiled with:
$ arduino-cli compile -v --warnings all --upload --fqbn STMicroelectronics-git:stm32:Nucleo_64:pnum=NUCLEO_WL55JC1,dbg=enable_log,opt=ogstd,upload_method=swdMethod
This results in:
Expected behavior
Both messages should be printed directly.
Environment:
- OS: Linux
- Arduino IDE version: arduino-cli git 2dd8976683f4a9f83fcee478620f1e83d11111b2 (0.25.1 with a few more commits)
- STM32 core version: git e3808a2 (2.3.0 with a bit more commits)
- Board & settings: STMicroelectronics:stm32:Nucleo_64:pnum=NUCLEO_WL55JC1,dbg=enable_log,opt=ogstd,upload_method=swdMethod