avr-chat
[Top][All Lists]
Advanced

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

[avr-chat] only initialized variables can be placed into program memory


From: Rick Mann
Subject: [avr-chat] only initialized variables can be placed into program memory area
Date: Sun, 1 Jul 2012 20:45:39 -0700

Hi. I'm trying to use pgmspace with avr-gcc 4.3.3. The archive had this 
question posted (in reference to WinAVR), and some discussion about a thread in 
AVR Freaks, but AVR Freak's search isn't very good (I've never liked phpBBS).

Can anyone tell me if I can safely ignore that warning, and if there's a newer 
version of GCC that doesn't emit it?

I modified a line like

        printf("foo\n");

to
        printf_P(PSTR("foo\n"));

and get that warning.

Thanks,
Rick




reply via email to

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