Skip to content

STM serial configured in Simplex causes runtime assert #12172

@alkaes

Description

@alkaes

Description of defect

System halts on assert when declaring a serial object that one of the pins is declared as NC (according to official Mbed OS reference)
For example: simple declaration of: Serial tx_only_ser(PE_8, NC);
Hangs on assert at:

MBED_ASSERT(pin != (PinName)NC);

That is called from:
pin_function(pinmap->rx_pin, pinmap->rx_function);

Target(s) affected by this defect ?

STM

Toolchain(s) (name and version) displaying this defect ?

IAR 8.40

What version of Mbed-os are you using (tag or sha) ?

mbed-os-5.15.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli

How is this defect reproduced ?

main()
{
 Serial tx_only_serial(PE_8, NC); // halts here
 tx_only_serial.putc('A');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions