2025-10-22 2:17 PM
Hello, I would like to know if there are any methods to load PNGs/JPGs from a USB for the stm32 (I am on stm32F7). I currently imported lodepng but, it seems the malloc used by it is way too large for the device. The png I am loading is relatively small, 185 x 43.
unsigned err = lodepng_decode24(&img, &w, &h, file, fileSize);
if(err)
{
return MEMORY_ERROR;
}
2025-10-27 3:12 PM
Hello @Priyank ,
My colleague has answered a similar question few months before (same approach for USB and SD card) :
https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/using-sd-card-in-touchgfx-freertos-project/m-p/790174#M42758
I invite you to have a look at his answer.
2025-11-03 7:50 AM
Thank you, would you be able to answer me on this question. https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/dynamicbitmapcreateexternal-for-rgb565/m-p/846849#M45036