Hi, all.
I'm using nRF52833 and trying to communicate ESP8266 using UART.
I already successfully communicate with Dust Sensor with baudrate 9600, so I tried to communicate with WIFI module by changing the setting to 115200.
void wifi_init(void)
{
uint8_t state;
uint32_t err_code;
app_uart_comm_params_t const wf_comm_params =
{
.rx_pin_no = WIFI_RX,
.tx_pin_no = WIFI_TX,
.rts_pin_no = RTS_PIN_NUMBER,
.cts_pin_no = CTS_PIN_NUMBER,
.flow_control = APP_UART_FLOW_CONTROL_DISABLED,
.use_parity = false,
#if defined (UART_PRESENT)
.baud_rate = NRF_UART_BAUDRATE_115200
#else
.baud_rate = NRF_UART_BAUDRATE_115200
#endif
};
APP_UART_FIFO_INIT(&wf_comm_params,
WIFI_RX_BUF_SIZE,
WIFI_TX_BUF_SIZE,
wf_uart_event_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
nrf_gpio_cfg_input(RX_PIN_NUMBER, NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_input(WIFI_RX, NRF_GPIO_PIN_PULLUP);
//...
}
But when I run program, it return 0x04 error, and I knew this is not a MEM problem..

So I make RX pin PULL UP state, but still occur same problem..


How can I solve this problem?
Regards,
lyrics