Gast
#3315645
Hallo,
wieder Einer am verzweifeln: Ich versuche meinen LCD-Text in den Flash
des MSP430g2553 mittels CCS Version4 zu schreiben:
Definition:
-----------
const char msg_MainMenue1[] = {"Schreibe etwas"};
Hauptprogramm:
--------------
PrintStr((char*)msg_MainMenue1);
Die Funktion PrintStr:
----------------------
void PrintStr(char *Text)
{
char *c;
c = Text;
while ((c != 0) && (*c != 0))
{
SendByte(*c, TRUE);
c++;
}
}
Leider landen alle Strings im RAM statt im Flash. Was ist denn nur
falsch? HILFE?!?!?!?! Gibt es eine spezielle IDE-Einstellung vielleicht?
Oder muss ich die const-Daten ins Header schreiben?
PS: Selbst die FAQ vom CCS sagt es soll gehen...
http://www.ccsinfo.com/faq.php?page=constant_data