This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use two UARTS in ble_app_uart

I'm using the ble_app_uart as my template for Bluetooth and UART communication. I'm on SDK 15.3.0, Segger Embedded Studio and nRF52840.

I would like to send the information I receive from the app via the NUS over UART, and this works already. My issue is that when I use printf() statements, they also go on the UART. I guess this is because UART1 is the USB COM port thing. Is it possible to define UART2 to send the actual infomation I receive and make printf() print to the UART1? How would I go about doing this? UART works differently in ble_app_uart than in the peripheral/serial example so I'm a little bit confused. 

Would appreciate any help to point me in the right direction, thanks!

Related