need to save an image on avr program memory or eeprom so that later i can add that image to html code as
how can i do it ?
First question is the size of the image. Will it fit into code space? You might get a thumbnail into eeprom, but not much more.
There are a number of utilities that convert a file into C arrays. If you look at how lwip and uip save their webpages, then the images are saved the same way. In the ti stellaris driverlib, there is the source and executable for such a utility. There are plenty of others.
Often the best place to store an image is in flash.
I usually save .bmp files in a resial flash from ATMEL AT45DB081D-SU
Of course you can save it in the AVR EEPROM or even flash memory, but like Kartman says it depends on the image file size.
IAR Embedded Workbench C/C++ Compiler
There are a number of utilities that convert a file into C arrays.
© 2020 Microchip Technology Inc.