[En-Nut-Discussion] gcc, large programs, corrupted variable or memory space? :( --> :)
Stephen Noftall
stephenn at lcsaudio.com
Wed Apr 23 18:14:52 CEST 2003
Hi Jelle;
> // takes 20 bytes of sram memory (and not flash as wanted)
> static prog_char *states2[] = { "String3", "String4" };
> }
I think this is telling the compiler to place the two string pointers in
FLASH, yet keep the initialization constants in SRAM.
Maybe
static prog_char state1[] = "string3";
static prog_char state2[] = "string4";
Will work.
Stephen Noftall
More information about the En-Nut-Discussion
mailing list