LVGL screen shift on nvs_set
Posted: Tue Apr 04, 2023 2:59 pm
Hi everyone,
I have strange issue using LVGL and NVS library.
I use:
ESP-IDF 5.0
LVGL 8.3.0
FreeRTOS
Board:
ESP32-S3 WROOM 1
I have a some Screens in LVGL and everithing go well (Display and Touchscreen)
but in a Screen where i save a value in NVS, with the code below, the Screen shift a bit, and
everytime I call nvs_set_ all Screens of the GUI have horizontal shifting (like scroll), only rebooting they go back to the right position
No error returned.
I call the nvs_flash_init() on initialization phase, and reading from NVS with nvs_get_u16() doesn't cause any problems.
Anyone can give me suggestions?
I have strange issue using LVGL and NVS library.
I use:
ESP-IDF 5.0
LVGL 8.3.0
FreeRTOS
Board:
ESP32-S3 WROOM 1
I have a some Screens in LVGL and everithing go well (Display and Touchscreen)
but in a Screen where i save a value in NVS, with the code below, the Screen shift a bit, and
everytime I call nvs_set_ all Screens of the GUI have horizontal shifting (like scroll), only rebooting they go back to the right position
- nvs_handle_t my_handle;
- esp_err_t err;
- err = nvs_open("storage", NVS_READWRITE, &my_handle);
- err = nvs_set_u16(my_handle, "screen_lum", val);
- ESP_LOGI(TAG," NVS err:%d",err);
- nvs_commit(my_handle);
- nvs_close(my_handle);
I call the nvs_flash_init() on initialization phase, and reading from NVS with nvs_get_u16() doesn't cause any problems.
Anyone can give me suggestions?