https://github.com/espressif/esp-idf/bl ... 4-L1531C54 You could add the `ESP_INTR_FLAG_IRAM` flag when calling `uart_driver_install()` or just ignore it.homedad Posts: 9 Joined: Sun Jan 23, 2022 2:53 am Re: UART ISR in IRAM config?Quote by...
#if CONFIG_UART_ISR_IN_IRAM intr_alloc_flags = ESP_INTR_FLAG_IRAM; #endif ESP_ERROR_CHECK(uart_driver_install(ECHO_UART_PORT_NUM, BUF_SIZE * 2, 0, 0, NULL, intr_alloc_flags)); ESP_ERROR_CHECK(uart_param_config(ECHO_UART_PORT_NUM, &uart_config)); ESP_ERROR_CHECK(uart_set_pin...
= NULL) { xTimerStart(Time_3000_Handle, 0); //开启定时器 } } void UART0_Task_Function(void *arg) { int intr_alloc_flags = 0; #if CONFIG_UART_ISR_IN_IRAM intr_alloc_flags = ESP_INTR_FLAG_IRAM; #endif ESP_ERROR_CHECK(uart_driver_install(UART_NUM_0, 1024, 0, 0, NULL, ...
#if CONFIG_UART_ISR_IN_IRAM intr_alloc_flags=ESP_INTR_FLAG_IRAM; #endif ESP_ERROR_CHECK(uart_driver_install(ECHO_UART_PORT_NUM, BUF_SIZE*2,0,0,NULL, intr_alloc_flags)); ESP_ERROR_CHECK(uart_param_config(ECHO_UART_PORT_NUM,&uart_config)); ...
#if CONFIG_UART_ISR_IN_IRAM intr_alloc_flags = ESP_INTR_FLAG_IRAM; #endif ESP_ERROR_CHECK(uart_driver_install(ECHO_UART_PORT_NUM, BUF_SIZE * 2, 0, 0, NULL, intr_alloc_flags)); ESP_ERROR_CHECK(uart_param_config(ECHO_UART_PORT_NUM, &uart_config)); ESP_ERROR_CHECK(uart_set_pin...
UART interrupt processing is completely implemented by the application itself: When the default UART interrupt processing flow cannot meet the application requirements, such as the UART of the application is implemented by a third-party code, you can use ‘bk_interrupt_Register(xx, isr, arg)’ re...
这里没有设置ESP_intr_FLAG_IRAM * (驱动程序的ISR处理程序不在IRAM中) * @return * - ESP_OK成功 * - ESP_FAIL参数错误 */ esp_err_t uart_driver_install(uart_port_t uart_num, int rx_buffer_size, int tx_buffer_size, int queue_size, QueueHandle_t* uart_queue, int intr_alloc_flags);...
CONFIG_UART_ISR_IN_IRAM=y (see attached sdkconfig file) Debug Logs Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed). Core 1 register dump: PC : 0x401be638 PS : 0x00060035 A0 : 0x8008bedf A1 : 0x3ffbeec0 0x401be638: prvCheckItemFitsByteBuffer...
LOG 就是从 UART0 输出的。在 BOOT 程序里,把 UART0 映射到 IO1(RX0)和 IO3(TX0)上。
#ifndef CONFIG_UART_ISR_IN_IRAM //Only log if ISR is not in IRAM ESP_EARLY_LOGV(UART_TAG, "UART event queue full"); #endif @@ -1039,6 +1055,7 @@ static void UART_ISR_ATTR uart_rx_intr_handler_default(void *param) UART_ENTER_CRITICAL_ISR(&uart_selectlock); ...