Hello,
I’m desperately trying to display an image (any format) on my Riverdi display from the SD card using NemaGfx.
I created my project from scratch in STM32CubeIDE, based on the configuration of the GitHub projects riverdi-50-stm32u5-lvgl and lv_port_riverdi_stm32u5.
The goal is to use ThreadX, USBX, FileX, and of course LVGL.
I can display LVGL widgets without any issue — buttons, screens, everything works perfectly.
If I try to display an image stored in a .c file (generated using the LVGLImage.py script), it works.
If I try to display an image from the SD card with NemaGfx disabled (so using the software renderer), it also works.
But as soon as I try to display an image from the SD card with NemaGfx enabled, it no longer works.
Depending on the image format, I either get a black square matching the image dimensions, or the program crashes.
I’m really not used to asking for help on forums, but at this point I am completely stuck.
I should mention that this will eventually become a product for a customer, so smooth display performance is required.
Embedding images in .c files is not an acceptable option.
Thank you in advance for your support!
What do you want to achieve?
Display an image (any format) on the screen using the GPU, with the image read from the SD card.
What have you tried so far?
A lot of things have already been tested:
- Displaying images in various formats
- Trying to force TILE mode
- Manually changing values in the debugger to force execution into fs_read_file_at()
- Trying different configurations in lv_conf.h
Code to reproduce
/*You code here*/
Screenshot and/or video
Environment
- MCU/MPU/Board: stm32u5a9
- LVGL version: 9.4.0 “dev”