UAER Printf shows noting using nRF52840 dongle and a USB to TTL module (Arduino Uno as the USB to TTL)

Hello,

I am trying to send "Hello" through the UART and the nrf52840 dongle using a USB to TTL approach. The main.c code and the sdk_confg.h are uploaded here. The problem is that neither printf nor the NRF_LOG_INFO command shows nothing at the serial monitor!
Please note that in the configuration, ble, uart, spi, and PWM is enabled since this is the final thing that I need.

I have done the ble+pwm+spi and it works fine. The only problem now is that I need UART to see the SPI data and this simple code for the UART does not work!

BTW, I have checked the USB to ttl and it works fine. I have used to Arduino to send hello using uart with that and it works!

Can you please help me with this part?

Thanks,

Abbas

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "nrf_drv_spi.h"
#include "app_util_platform.h"
#include "nrf_gpio.h"
#include "nrf_delay.h"
#include "boards.h"
#include "app_error.h"
#include <string.h>
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "nrf_log_default_backends.h"
//UART
#include "nrf_uart.h"
#include "app_uart.h"
// I have also added APP_UART_ENABLED and APP_FIFO_Enabled in the sdk_confg
// Also I have added app_fifo and app_uart.h path to the Keil
//UART
#define UART_TX_BUFF_SIZE 128 // TX buffer size
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
50045.sdk_config.h