Skip to content

Can we disable STDIO printf but keep DEVICE_SERIAL #10327

@LMESTM

Description

@LMESTM

Description

In https://github.com/ARMmbed/mbed-os/blob/master/platform/mbed_retarget.cpp#L277, as soon as DEVICE_SERIAL is supported, an STDIO serial will be created for printf support.

Could there be an option for disabling STDIO console and select SINK one instead, without disabling DEVICE_SERIAL which may be needed by peripherals drivers.

Could be something like:
#if (DEVICE_SERIAL && !MBED_CONF_PLATFORM_STDIO_SINK))

This could be useful when switching to release mode or to improve low power consumption.
Maybe there is already an alternative method that I am not aware of.

Issue request type

[x ] Question
[ ] Enhancement
[ ] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions