Lesto ...
... preso questo codice :
#include <avr/pgmspace.h>
void setup() {
Serial.println(F("TEST"));
}
void loop() {
}
... mi da già errore :
C:\arduino-1.0.4-new\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=104 -IC:\arduino-1.0.4-new\hardware\arduino\cores\arduino -IC:\arduino-1.0.4-new\hardware\arduino\variants\standard C:\Users\gpb01\AppData\Local\Temp\build7822850351586823830.tmp\sketch_may08a.cpp -o C:\Users\gpb01\AppData\Local\Temp\build7822850351586823830.tmp\sketch_may08a.cpp.o
sketch_may08a.ino: In function 'void setup()':
sketch_may08a.ino:5:17: error: variable '__c' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
... quindi ... il problema sembra essere nella pgmspace e non nel mio codice. Oppure ... ho sbagliato io qualche cosa nel sostituire la ToolChain, ma ho rifatto tutti i passaggi svariate volte ed ottengo sempre lo stesso risultato ...
Guglielmo
Edit : la macro F è definita : #define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal))) ... quindi cosa altro deve essere "const" ?