I am integrating LVGL into my STM32F103RG project. Everything works fine until I try to write to Flash after loading a screen.
- Before calling
lv_scr_load(), I can successfully write data to a specific Flash location using myflash_writeWordfunction. - After calling
lv_scr_load()to load a new screen, the sameflash_writeWordfunction fails — the data is not written.
I suspect the issue is related to LVGL accessing Flash resources (such as images or fonts) after screen loading, which conflicts with the Flash write operation.
Has anyone encountered a similar issue? How do you safely write to Flash while using LVGL? Should I move my Flash write function to RAM, or is there a better approach?
Thank you for your help!