uart half duplex one line
Posted: Tue May 28, 2024 3:45 am
I am trying to create a updi programmer out of an esp32-c3-mini and I am able to configure the hardware uart like this and I can snoop on UPDI commands sent by things like jtag2updi successfully.
uart_config_t uart_config = {
.baud_rate = UPDI_BAUD,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_EVEN,
.stop_bits = UART_STOP_BITS_2,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.rx_flow_ctrl_thresh = 0,
.source_clk = UART_SCLK_APB,
};
However when I try to send commands and flip the direction to read results I never seem to get anything back.
Without going into too much detail about all the approaches I've taken, does anybody have any insight on what I might be doing wrong or what I need to do?
uart_config_t uart_config = {
.baud_rate = UPDI_BAUD,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_EVEN,
.stop_bits = UART_STOP_BITS_2,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.rx_flow_ctrl_thresh = 0,
.source_clk = UART_SCLK_APB,
};
However when I try to send commands and flip the direction to read results I never seem to get anything back.
Without going into too much detail about all the approaches I've taken, does anybody have any insight on what I might be doing wrong or what I need to do?