[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Potential bug with large array of uint16_t in Flashwi
Re: [avr-gcc-list] Potential bug with large array of uint16_t in Flashwith ATMega128 and avr-gcc 3.4.3
Sun, 8 Jan 2006 03:20:34 -0800 (PST)
Markus Rudolf <address@hidden> 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 ?
avr-objcopy -I binary -O elf32-avr tuxlogo.png tuxlogo.o \
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.