Yes, I see the whole debug output on my UART[1].
It starts with "(2264) cpu start: starting.)".. That is, what I can trigger. Unforchenetly, I don't know how to trigger more data in single mode...
Here is my UART init code:
Code: Select all
UART::UART(const UART_InitTypeDef* uart_conf) {
//this->num = DEFAULT_UART_num;
//this->buffer_size = DEFAULT_UART_buffer_size;
this->num = uart_conf->num;
this->buffer_size = uart_conf->buffer_size;
this->err = ESP_OK;
receiveBuffer = (uint8_t*) malloc(buffer_size);
receiveBuffer_len = 0;
uart_config_t uart_config;
uart_config.baud_rate = uart_conf->baud_rate;
uart_config.data_bits = uart_conf->data_bits;
uart_config.parity = uart_conf->parity;
uart_config.stop_bits = uart_conf->stop_bits;
uart_config.flow_ctrl = uart_conf->flow_ctrl;
uart_config.rx_flow_ctrl_thresh = uart_conf->rx_flow_ctrl_thresh;
if (!UART_driverInstalled[num]) {
sprintf(debugTag, "uart[%d]", (uint8_t) num);
sprintf(_taskName, "%s_eventTask", debugTag);
esp_log_level_set(debugTag, ESP_LOG_INFO);
//Configure UART1 parameters
uart_param_config(num, &uart_config);
//Set UART pins
uart_set_pin(num, uart_conf->tx_pin, uart_conf->rx_pin,
uart_conf->rts_pin, uart_conf->cts_pin);
uart_driver_install(num, buffer_size * 2, buffer_size * 2, 10,
&uart_queue, 0);
//Set uart pattern detect function.
//uart_enable_pattern_det_intr(num, '+', 3, 10000, 10, 10);
//Create a task to handler UART event from ISR
xTaskCreatePinnedToCore(&uart_taskfunwrapper, _taskName, 2048, this, 12,
NULL, 0);
UART_driverInstalled[num] = true;
}
}
I hope, that you can help me!