Skip to main content
Graduate
March 26, 2024
Question

BMPFileLoader not working for me

  • March 26, 2024
  • 1 reply
  • 799 views

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?

 

 

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 7, 2024

    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