cancel
Showing results for 
Search instead for 
Did you mean: 

How to store jpeg image in Flash memory of STM32?

JeffSm
Associate II

I have a JPEG image, is there any way to store jpeg image in the internal flash of STM32?

And how to read the image?

6 REPLIES 6
MM..1
Chief II

rename to bin use bin2header file and add as const array to project. You can read as any other array.

But image decoding need lib code. Some graphics software can store as .h or .c file

As a byte array, with a pointer? Or via the array / sizeof(array) to the function processing the data.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
JeffSm
Associate II

Thanks. I am clear with storing the image as a const array using header file.

But not sure how exactly to decode it in JPEG format to read it? Which library to use to decode JPEG image?

MM..1
Chief II

JPEG can be handled with or without hardware accelerating, you need use LIBJPEG . (Part in CubeMX)

May i know how to use libjpeg . As i am working on send an image data from stm32f407zgt6 to phone through bluetooth can you please help me ...