I'm having problems using the UARTE in the nRF52840 via Zephyr. I'm watching the TX pin using a logic analyzer and seeing correct data when running at 9600 baud. But if I configure the UART for 115200 baud, the data is garbled (sometimes some later characters are correct). I've tried using the "built-in" Zephyr UART driver and disabling it and using the nrfxlib uarte driver with the same results.
I suspect that there is a clock accuracy issue...
I set:
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=n
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
in prj.conf since my board has a 32.768 KHz crystal. Is there some other configuration option needed to use the UARTE at 115200 baud?
Thanks!