ARMmbed

UARTSerial baudrate

Hi
I use the UARTSerial to send out a buffer with 23 bytes.
With a baudrate of 480600 b/s it works without a problem. If I try to use 921200 b/s I receive incorret data.
I use the Tiny BLE hardware.

Thanks
Armin

Are you using any flow control? If not, you can see data dropping at higher baud rates. nRF51822 (which Tiny BLE uses) has hardware flow control.

See the set_flow_control() function on Serial object.

It is a bug in the baud rate function. Baud rates above 480600 b/s are set to 1M b/s.
See https://github.com/ARMmbed/mbed-os/issues/5251

Ah! Nice catch!