I have a project using printf to send AT commands to a cellular modem. It works well. Yesterday I added Segger_RTT into the project.
With NRF_LOG_USES_RTT=0 defined. SEGGER_RTT_WriteString() has no problem. SEGGER_RTT_printf() won't work because it requires NRF_LOG_USES_RTT = 1.
So I define NRF_LOG_USES_RTT = 1 to get SEGGER_RTT_printf() working. And as I expected, SEGGER_RTT_printf() works like a charm.
But one thing got affected in my software. I had retarget.c included in my project to use "printf()" to send AT commands to my cellular modem. Now it doesn't work anymore.
Did I miss anything when I use SEGGER_RTT_printf() and printf() at the same time?
As a workaround I am using app_uart_put to replace printf().
Thanks
PS. I am using SDK11.0.0, nrf51422