Skip to content

STM32G4 UART5 reading at low speed not working #15285

Closed
@pilotak

Description

@pilotak

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) ?

88b6bb0

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);
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions