-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi,
I am using the BSP for the ESP32-S3-Touch-AMOLED-1.75 with a very simple implementation :
#include <stdio.h>
#include "esp32_s3_touch_amoled_1_75.h"
#include "ui.h" // Just a bunch of lvgl constructors
lv_display_t *main_display;
extern "C" void app_main(void)
{
main_display = bsp_display_start();
bsp_display_lock(1);
ui_init();
bsp_display_unlock();
while(true)
{
vTaskDelay(pdMS_TO_TICKS(100));
}
}
When attempting to run it, I was getting constant restarts because of line 126 in esp_lvgl_port_touch.c :
/* Read data from touch controller into memory */
ESP_ERROR_CHECK(esp_lcd_touch_read_data(touch_ctx->handle));
I replaced the ESP_ERROR_CHECK with ESP_ERROR_CHECK_WITHOUT_ABORT and the program works, but whenever the screen is not touched the serial monitor is obviously being bombarded with messages :
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0x108 (ESP_ERR_INVALID_RESPONSE) at 0x4200a834
--- 0x4200a834: lvgl_port_touchpad_read at /home/martinroger/Documents/MiniGauge56/managed_components/espressif__esp_lvgl_port/src/lvgl9/esp_lvgl_port_touch.c:126
file: "./managed_components/espressif__esp_lvgl_port/src/lvgl9/esp_lvgl_port_touch.c" line 126
func: lvgl_port_touchpad_read
expression: esp_lcd_touch_read_data(touch_ctx->handle)
I uncommented line 130 of esp_lcd_touch_cst9217.c to get more information about the issue, and whenever the screen is not touched, I get the following error message :
E (4101) CST9217: Invalid ACK: 0x08 vs 0xAB
Unfortunately my understanding of the CST9127 driver stops there ( but I have seen similar errors on drivers for the CST816/820 in other libraries).
To note, if I do that ESP_ERROR_CHECK to ESP_ERROR_CHECK_WITHOUT_ABORT modification on line 126, everything works fine as long as I am not using the serial monitor.
Question : have I missed something in my sdkconfig possibly ? Or is that a known issue ?
Env : ESP-IDF 5.5.1, BSP library version 1.0.2 and CST9127 lib version 1.0.4 (so latest as far as I can tell).