In Serialx.print("string"), where is the "string" stored as - Flash or Ram in the Maple?
In the Arduino, there is the "painful" command PROGMEM - Store data in flash (program) memory instead of SRAM.
In Serialx.print("string"), where is the "string" stored as - Flash or Ram in the Maple?
In the Arduino, there is the "painful" command PROGMEM - Store data in flash (program) memory instead of SRAM.
I might end up being corrected for this, but i believe string constants are stored in the .data section, which eventually ends up in RAM at runtime, regardless of which target you compiled to. We support static allocation to flash as well (ala progmem) however, the syntax is nasty, requiring __attribute__ tags. We'll be cleaning that up and adding some sort of progmem decorator in the next rev of the library.
Double check on this ... your interactive hardware test took up over 21K of flash/ram ?
and it had many print statements in the code.
You must log in to post.