Hello: Im using SDK 10 with softdevice V130. Im opening UART:
uint32_t err_code;
const app_uart_comm_params_t comm_params =
{
RX_PIN_NUMBER,
TX_PIN_NUMBER,
RTS_PIN_NUMBER,
CTS_PIN_NUMBER,
APP_UART_FLOW_CONTROL_DISABLED,
false,
UART_BAUDRATE_BAUDRATE_Baud38400
};
APP_UART_FIFO_INIT(&comm_params,
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
NULL,
APP_IRQ_PRIORITY_LOW,
err_code);
APP_ERROR_CHECK(err_code);
To communicate with another microcontroller. NRF has the control to switch on and off the second microcontroller, and I have the following problem: If the slave microcontroller is switched off, the RX pin of the NRF has low state and NRF go to loop while (1). I have solved it with the following instruction after the uart init: nrf_gpio_cfg_input(RX_PIN_NUMBER, NRF_GPIO_PIN_PULLUP); But I guess that it is not the best way to solve it. should I disable uart interrupt? (I don't need uart interrupt on my program) how must I do it?
I can't put an external pull up.
Thank you.