Closed
Description
Description of defect
Reading an UART5 either in loop or via IRQ is not working at 2400 or 1200, with 4800 and above it works fine.
The result is always 0x00, 0x00, 0x00
per character regardless what i send from other device. Please see below an example for you to try.
Target(s) affected by this defect ?
STM32G4 specifically G484VE
Toolchain(s) (name and version) displaying this defect ?
GCC ARM 9.3.1
What version of Mbed-os are you using (tag or sha) ?
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.1
How is this defect reproduced ?
UnbufferedSerial serial(NC, PD_2); // UART5
int main() {
serial.baud(2400);
while (1) {
while (serial.readable()) {
char rec = 0;
serial.read(&rec, 1);
printf("data: %02X\n", rec);
}
}
}