Hi, all
My custom board has nRF52833 mcu and wifi module(esp-wroom-02). I'm going to communicate with these two using the uart port.
The problem is, data communication is not possible with each suitable port.
I checked the waveform of each pin using an oscilloscope.
There is no waveform on the TX pin of mcu (i.e., RX pin in the wifi module), and it seems to communicate only with mcu's RX pin. (Only in the TX pin of the wifi module)
I'm not sure, but each of the tx and rx pins seems to be connected well on hardware. and also I set the port correctly and set it correctly.
Is there anything I didn't check yet?
<this is my customboard schematic>

RX2 (G1) is P(0, 26)
TX2 (H2) is P(0, 27)
pca10100.h
//wifi #define WIFI_RST NRF_GPIO_PIN_MAP(0, 4) #define WIFI_EN NRF_GPIO_PIN_MAP(0, 5) #define WIFI_TX NRF_GPIO_PIN_MAP(0, 26) //G1 #define WIFI_RX NRF_GPIO_PIN_MAP(0, 27) //H2
uart initialize
void wifi_init(void)
{
uint8_t state;
uint32_t err_code;
app_uart_comm_params_t const 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
};
NRF_LOG_INFO("%d", &comm_params.baud_rate);
APP_UART_FIFO_INIT(&comm_params,
WIFI_RX_BUF_SIZE,
WIFI_TX_BUF_SIZE,
wifi_event_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
nrf_gpio_cfg_input(WIFI_RX, NRF_GPIO_PIN_PULLUP);
}
BR,
lyrics
+ added)
Because tx and rx can communicate on one port, they cannot receive the correct data due to conflicts. So it doesn't even interrupt with the uart handler.
It just keeps repeating tx and rx communication on one port.