"When UART_SEND_XOFF is set, the transmitter will insert a UART_XOFF_CHAR and send it after the current data transmission is completed." So what is the data they refer to, the entire TX FIFO buffer, just the current byte that's being serially sent out?
Also if I enable software flow control on UART_NUM_0 and use ctrl-s to send xoff from my PC terminal, it stops ESP32 from sending but reboots after a few seconds if I don't do ctrl-q to send xon. There seems to be no error message what's going on. In my app I'm printing analog values:
I used printf() but also tried ESP_LOGI(). Did UART_NUM_0's software buffer run out? Maybe not? The reason for reboot was WDT reset on PRO CPU. Why is WDT triggered? Is PRO CPU hung up in a uart_write_bytes() call while uart controller is waiting for xon? Maybe I should test this with UART1 running on APP CPU without WDT reset?Raw: 4095 Voltage: 3134mV
Raw: 4095 Voltage: 3134mV
Raw: 4095 Voltage: 3134mV
Raw: 4095 Voltage: 3134mV
Raw: 4095 Voltage: 3134mV
Raw: 4095 Voltage: 3134mV
ets Jun 8 2016 00:22:57
rst:0x8 (TG1WDT_SYS_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6432
ho 0 tail 12 room 4
load:0x40078000,len:11624
ho 0 tail 12 room 4
load:0x40080400,len:6700
entry 0x40080768
W (194) boot: PRO CPU has been reset by WDT.
W (194) boot: WDT reset info: PRO CPU PC=0x400861fa
W (194) boot: WDT reset info: APP CPU PC=0x4008670f