Issue with NRF52833 uart registers configuration to send data to ESP32

Greetings,

I'm currently working on establishing UART communication between a custom board equipped with an NRF52833 and an ESP32. Although the ESP32 successfully receives data, it doesn't align with my expectations. I suspect that the discrepancy lies in the UART configuration settings of the NRF52833, and I'm having difficulty pinpointing the error. Here is my current configuration:

void initUART(void){
    NRF_UARTE1->BAUDRATE = UARTE_BAUDRATE_BAUDRATE_Baud115200;
    NRF_UARTE1->PSEL.RXD = 24;
    NRF_UARTE1->PSEL.TXD = 22;
    NRF_UARTE1->CONFIG = 0x00;
    NRF_UARTE1->ENABLE = (UARTE_ENABLE_ENABLE_Enabled << UARTE_ENABLE_ENABLE_Pos);
    NRF_UARTE1->RXD.PTR = (uint32_t)((uint8_t *)rxBuffer);
    NRF_UARTE1->RXD.MAXCNT = BUFF_SIZE;
    NRF_UARTE1->EVENTS_RXDRDY = 0;
    NRF_UARTE1->INTENSET = UARTE_INTENSET_RXDRDY_Msk;
    NVIC_EnableIRQ(UARTE1_IRQn);
    }
    
//esp32 config struture

uart_config_t uart_config = {
      .baud_rate = 115200,
      .data_bits = UART_DATA_8_BITS,
      .parity = UART_PARITY_DISABLE,
      .stop_bits = UART_STOP_BITS_1,
      .flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
      .source_clk = UART_SCLK_DEFAULT,
  };

I would greatly appreciate any insights or guidance you can offer to help resolve this issue. Thank you in advance.

Parents Reply Children
No Data
Related