-
Couldn't load subscription status.
- Fork 3k
Closed
Labels
Description
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-os/targets/TARGET_STM/pinmap.c
Line 62 in bacf378
| MBED_ASSERT(pin != (PinName)NC); |
That is called from:
mbed-os/targets/TARGET_STM/serial_api.c
Line 161 in bacf378
| 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');
}