Hi there,
i have the same problem, i use this https://os.mbed.com/cookbook/Serial-Interrupts to.
And a side note, dot examples doesn’t have a serial (uart) communication example.
Chears