avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] String in flash


From: E . Weddington
Subject: Re: [avr-gcc-list] String in flash
Date: Tue, 14 Oct 2003 13:17:09 GMT

> Hi,
> Both these put .string into the .data section. How do i 
get it into
> the .text section? (at90s4433, latest CVS avr-libc, avr-
gcc 3.3.2,
> avr-as 2.14, avr-ld 2.14)
> 
>    static PGM_P hex="0123456789abcdef";
>    static const char* hex="0123456789abcdef";


Read the avr-libc docs, IIRC the Program Space Utilities 
section. The header file you need is
<avr/pgmspace.h>.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]