I am trying everything.
In sdk_config: #define UART_DEFAULT_CONFIG_HWFC 0 In the nrf_cli_uart.c I changed it to APP_UART_FLOW_CONTROL_DISABLED,
in the pca10040.h I changed the pins to: #define CTS_PIN_NUMBER 0xFF #define RTS_PIN_NUMBER 0xFF
Please help!