Sketch uses 21,920 bytes (76%) of program storage space. Maximum is 28,672 bytes.
Global variables use 2,294 bytes (89%) of dynamic memory, leaving 266 bytes for local variables. Maximum is 2,560 bytes.
Low memory available, stability problems may occur.
do i miss understand the usage of the sdcard somehow? can i not solve the low memory with a sdcard?
novski:
do i miss understand the usage of the sdcard somehow?
Yes, you have.
can i not solve the low memory with a sdcard?
No, you cannot.
The SD card represents a different kind of memory. There are two processors on the Yun: one is an '32U4 which runs the sketch, the other is an AR3391 which runs Linux.
The '32U4 has 2.5 kBytes of RAM (data memory, which is what you are running out of) and 32 kBytes of flash (program storage memory, which is also getting low.) There is nothing you can do about either limit.
The AR3391 has LOTS more RAM and flash - it runs a Linux variant out of RAM, and uses the on-board flash like a disk drive. The SD card is connected to the AR3391, and is used to expand the disk storage space available to the Linux system. While this processor has lots more RAM and flash (and an SD card) none of that memory can be used to expand the memory of the '32U4 processor.
The AR3391 processor is much more powerful than the '32U4. One option for you is to move some of your program logic to that processor, which should move some of the memory requirements over there as well. Minimize the processing that you do in the sketch, and you minimize the usage of the limited '32U4 processor.
Do you know about a tutorial how to store Text on the AR3391 Linux side, and use it on 32U4 in the sketch?
@novski,
there are many tutorials on the website that work with the Bridge Library for the Yun. NOTE, do not use other libraries with the Yun - like the Ethernet Shield Library. On the Yun you already have the Ethernet builtin, and it uses a different library. (See Bridge Library)
You want to try:
Datalogger: Store sensor information on a SD card.
File Write Script: Demonstrates how to write and execute a shell script with Process.