cancel
Showing results for 
Search instead for 
Did you mean: 

BMPFileLoader not working for me

I_ve_got_a_problem
Associate III

Hi

So, I want to load images at runtime from the flash memory, I have just started testing this and I found the official post on how to load BMP files at runtime, I copy pasted the BMPFileLoader.hpp and .cpp files, and called them like this:

I_ve_got_a_problem_0-1711468162041.png

It's like that because i have 21 elements and for now I just wanna change the 2nd one for testing.

 

The problem is i execute it with no errors, but when i execute it i get an empty image like this:

I_ve_got_a_problem_1-1711468327045.png

The text and the 3 images are because the image is inside a container with those elements too

The image i load is the default poly.png image from touchgfx assets, but i turned it to bmp. Just in case I also tried converting it to jpg, as for some reason in the example of the official post it appears to be calling a file named image.jpg instead of bmp but it did'nt work either, any ideas on what I am messing up?

 

 

 

1 REPLY 1
MOEZBEJ
ST Employee

Hello @I_ve_got_a_problem , 

Could you please first precise the STM32 product you are using and wish example are you tested ?

Thank you 

BeST regards

MB