Skip to content

Flow control fails on STM32L476 #9525

@cwq9999

Description

@cwq9999

Description

Flow control fails when the following commands are called in mbed-os 5.11.2 (a8f0c33).

_serial(tx, rx, ESP32_DEFAULT_BAUD_RATE)
_serial.set_flow_control(SerialBase::Disabled);
_serial.set_flow_control(SerialBase::RTSCTS, _rts, _cts); // where tx = PB_10, rx = PB_11, rts = PB_14, cts = PB_13

The error that is given is shown below:

++ MbedOS Error Info ++
Error Status: 0x80FF0144 Code: 324 Module: 255
Error Message: Assertion failed: obj_s->uart != (UARTName)NC
Location: 0x800CE7B
File: /extras/mbed-os.lib/targets/TARGET_STM/TARGET_STM32L4/serial_device.c+682
Error Value: 0x0
Current Thread: main Id: 0x200026F0 Entry: 0x800D449 StackSize: 0x1000 StackMem: 0x200016F0 SP: 0x20002610
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF0144
-- MbedOS Error Info

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

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