ST


A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.

You are viewing an older revision! See the latest version

STDIO

Choose the UART pins for debug

With the default STM32 MBED configuration, STDIO RX and TX pins are set with the virtual COM pins from ST-Link.

If you want to use some other pins,

- for a custom board

- if you don't use/removed ST-Link part

- ...

You are able to redefine STDIO RX and TX pins in the json config files.

Here is an example of mbed_app.json :

"target_overrides": {
        "NUCLEO_F411RE": {
            "target.stdio_uart_tx": "D8",
            "target.stdio_uart_rx": "D3",
        }
}

Choose UART baud rate

Default baudrate values for STDIO and other UART are set in platform config file: https://github.com/ARMmbed/mbed-os/blob/master/platform/mbed_lib.json

Default value is 9600.

You can change the value for your setup in your mbed_app.json file:

{
    "target_overrides": {
        "MBED_CONNECT_ODIN": {
            "platform.stdio-baud-rate": 115200,
            "platform.default-serial-baud-rate": 115200
        }
    }
}

All wikipages