Code: Select all
static QueueHandle_t xQueueAIFrame = NULL;
static QueueHandle_t xQueueLCDFrame = NULL;
static QueueHandle_t xQueueEventLogic = NULL;
extern SemaphoreHandle_t sem_handle;
extern "C" void app_main()
{
esp_err_t ret;
app_wifi_main();
xQueueAIFrame = xQueueCreate(5, sizeof(camera_fb_t *));
xQueueLCDFrame = xQueueCreate(5, sizeof(camera_fb_t *));
xQueueEventLogic = xQueueCreate(1, sizeof(int *));
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
register_button_events(xQueueEventLogic);
register_human_face_recognition(xQueueAIFrame, xQueueEventLogic, NULL, xQueueLCDFrame, true);
register_lcd(xQueueLCDFrame, NULL, true);
}
但是当我同时把摄像头、人脸识别、LCD显示、wifi任务同时开启时。
LCD就无法正常显示,只能显示一部分区域。
同时会报如下的错误
===================================================================================================
E (24560) lcd_panel.io.spi: panel_io_spi_tx_color(387): spi transmit (queue) color failed
E (24640) lcd_panel.io.spi: panel_io_spi_tx_color(387): spi transmit (queue) color failed
E (24720) lcd_panel.io.spi: panel_io_spi_tx_color(387): spi transmit (queue) color failed
E (24800) lcd_panel.io.spi: panel_io_spi_tx_color(387): spi transmit (queue) color failed
E (24880) lcd_panel.io.spi: panel_io_spi_tx_color(387): spi transmit (queue) color failed
E (24960) lcd_panel.io.spi: panel_io_spi_tx_color(387): spi transmit (queue) color failed
E (25040) lcd_panel.io.spi: panel_io_spi_tx_color(387): spi transmit (queue) color failed
=====================================================================================================
但是其他任务都是可以正常运行的。
当我把WiFi任务关掉。其他所有任务都可以正常运行。
或者我把AI任务关掉,其他任务都可以正常执行。
这种情况是可能出什么问题了