Skip to content

initializing UARTserial leads to error when SLEEPTRACE enabled #12593

Closed
@CodingGhost

Description

@CodingGhost

Description of defect

when "MBED_SLEEP_TRACING_ENABLED" Macro is defined, initializing UARTserial leads to an MBEDOS "Not allowed in ISR context" fault.
It is enough to just initialize it with a given baudrade (I tested with 9600) to reproduce this issue.

Target(s) affected by this defect ?

NRF5x Cordio
(maybe more?)

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

PlatformIO 4.2.1

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

5.14.1

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

PlatformIO 4.2.1

How is this defect reproduced ?

UARTSerial *ser = NULL; ser = new UARTSerial(P0_6,P0_8,9600);

add "MBED_SLEEP_TRACING_ENABLED" macro.

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