2009-04-16 02:56 AM
Load bitmap images to Flash
2011-05-17 04:09 AM
Dear All,
I'm using the STM3210E-EVAL board. I would like to know how to load bitmap files (like the icons shown in the LCD demo application and in the EVAL_Demonstration_Software). I already know that there is a utility such as DfUse but don't know how to use it for loading my own bitmaps. If there is another way i will be happy to here it. If someone realy did it i will be happy to here the solution. Thanks. Beja2011-05-17 04:09 AM
Not quite the solution, just pointers:
You could use ie. gimp and save image as .c or .h Or, for bigger images, export image as raw, flash it to some fixed position, and use that in your program. Or maybe I missunderstood it all :p2011-05-17 04:09 AM
Dear DOMEN ...
First,Let me thank you for your response. After digging a bit i found that the easiest way loading bitmaps into the NOR Flash component, will be through the DFU mechanism supplied by ST. For achieving this goal, few steps are needed: 1. The bitmap (i used xxx.bmp files) file should be saved as 16-bits per pixel and R5 G6 B5 (Red 5 bits, Green 6 bits, Blue 5 bits). Using photoshop is one option for doing that. 2. Change the extension of the bmp file to bin (xxx.bmp -> xxx.bin). 3. Use the DFU supplied by ST for downloading the generated dfu file into the NOR Flash (as explained in application note 'an0424_USB'). That it.2015-10-07 12:03 AM
Hi bejanissim! how now get it from memory in main program ?
2015-10-07 12:37 PM
This thread is from over six years ago, and went through a crash of the forum in 2011.
May be you can better state your question. The memory in the STM32 is byte addressable. If you put an image in NOR at 0x64000000 you'd just pass that as an address (pointer) to whatever you have that wants to process or handle the image, not materially different from if you have it in RAM or FLASH. void *p = (void *)0x64000000; //??