Markus Rudolf <[EMAIL PROTECTED]> wrote:

> BT> BTW, why don't you use objcopy(1) to to convert binary
> BT> data into object files?
> 
> I have no idea how to do that. Could you give me a short example how
> to include my binary data in the flash and how to access it ?

Try

avr-objcopy -I  binary -O elf32-avr tuxlogo.png tuxlogo.o \
--prefix-sections .progmem
   
and

extern uint8_t *_binary_tuxlogo_png_start;
extern uint8_t *_binary_tuxlogo_png_end;


Use the pgm_* functions to read the data.








                
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to