Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

F("xxx") goes not in PROGMEM

Open caschoff opened this issue 13 years ago • 3 comments

When usig F("xxx) like this:

Serial.begin(SERIAL_SPEED); Serial.println(F("Qlockthree is initializing...")); Serial.flush();

the compiler says:

Qlockthree.ino: In function 'void setup()': Qlockthree.ino:306: warning: only initialized variables can be placed into program memory area

(One has to enable extended informations while compiling in settings dialog).

caschoff avatar Feb 09 '13 11:02 caschoff

Can you provide a sketch with the essential part that demonstrates this error?

Fede85 avatar Apr 16 '13 15:04 Fede85

This is a known bug and have been fixed i later version of gcc. See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734 for more information.

Lauszus avatar Apr 16 '13 16:04 Lauszus

The string is placed in program memory, despite the warning.

cmaglie avatar May 03 '13 11:05 cmaglie