Any suggestions for the simplest lightest way to add basic printf to a debug uart?
nRF52840, SDK 17.0.2, Nordic SES 5.30a, using nrfx_* drivers
I've looked at app_uart_fifo.c/h (as used in SDK UART example) but it seems overkill, and uses the legacy nrf_drv_uart drivers. When I tried implementing it in my app, I hit silly problems such as compiler couldn't see nrf_uarte_baudrate_t etc. I'm sure I could sort it given time, but seems messy.
I'm trying to keep my code clean and simple, and am already using the nrfx_uart drivers elsewhere, don't really want to bring in legacy stuff as well.
I also looked at nrf_libuarte but again seems complete overkill for a simple debug UART, I just want to send simple data to a terminal
I have the basic uart running using nrfx_uart drivers, simples.
I'm tempted to just write my own putchar and printf, maybe using nrf_fprintf.
But wanted to check first, is there a better/simpler way?
Many thanks