Plz help me: Low memory available, stability problems may occur.

I’m in trouble now
for the message “Low memory available, stability problems may occur.”

When I click ‘complie’ button,
the message is showed on the screen on compiling

so, I can’t do anything
please help me as soon as possible :frowning:
I’m urgent for next process on my project

I appreciate for correcting my ino file

oh, god!

OpenBCI_8bit_SD.ino (16.3 KB)

Hello,

If you didn't already now this basically means that your sketch is taking up quite a lot of memory. One method to solve this is by getting a bigger board like the mega or even the due.

As I have never encountered the problem I don't really know how to reduce the program memory.

There is a thread I found: http://forum.arduino.cc/index.php?topic=194167.0

And more on memory is here: http://www.arduino.cc/en/Tutorial/Memory

Hope this helps!

Samuel

1 Like

That isn't an error. It's a warning. Your program might run just fine. Try it and see. If it does crash, post your code (in code tags) so that we can see if there's a way to reduce your ram usage.

Pete

At first,

I want to say I really thank samuel123abc & el_supremo a lot.

[u]To. samuel123abc[/u]

Frankly, I use OpenBCI 8 bit Board with Arduino-compatible.

so, I can't change my board.

you can see the information of this at http://www.openbci.com

but, this board has SD Card and I have it now.

then, Do you think I had better use SD CARD?

[u]To. el_supremo[/u]

I know this message means warning.

but, I couldn't do next process since Arduino IDE didn't upload the sketch I attached.

I can't explain more because I don't have my board now.

Compling message was like following message but not mine.

The sketch is usign 23.926 byte (74%) of the total space available to the programs. The max storage available is 32.256 byte. The global variable use 1.699 byte (82%) of dynamic memory, leaving 349 byte free for local variables. The max is 2.048 byte.

Low memory available, stability problems may occur.

Also, I remember the message about "getsync()" was also bounced up.

That message looks like it did upload your code. What error message did you get that says it wasn't.

Post your code.

he did post the code, it’s attached to the first post, and is too long to attach in code tags.

Please post the exact message you get.

If you see a message about getsync() in the errors, that’s a different problem, and that is likely what’s keeping the sketch from being uploaded…

I suspect most of your memory is going into the libraries (probably OpenBCI - I don’t think the other ones use that much SRAM), since your program doesn’t look like it does anything very memory intensive. I see no recklessly large arrays - or any outside of the library, for that matter - F() is used where it should, etc…

dhsyh7:
so, I can’t do anything
please help me as soon as possible :frowning:
I’m urgent for next process on my project

If you don’t need the SD library:

#include <SdFat.h>   // not using SD. could be an option later

then DO NOT INCLUDE THE SD LIBRARY!

Not including will save you more than 500 bytes of RAM, I think.

[u]To. MorganS[/u]

  • Arduino: 1.6.5 (Windows 8.1)

  • Board: "Arduino Uno"

Thank you for your help. :)

The following is the error message I got and you wanted

==============================================================

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

==============================================================

Sketch uses 23,534 bytes (72%) of program storage space. Maximum is 32,256 bytes.

Global variables use 1,556 bytes (75%) of dynamic memory, leaving 492 bytes for local variables. Maximum is 2,048 bytes.

Low memory available, stability problems may occur.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc4

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xc4

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xc4

==============================================================

[u]To. DrAzzy[/u]

Thank you for your advice. :)

Then, What shuold I do if I solve the problem about libraries (probably OpenBCI) ?

Can you load any code into that board?

The IDE is complaining that it can not get the correct responce from your board to load the code. This has nothing to do with your low memory warning.

To. Grumpy_Mike

I appreciate your help, Sir.

Then, What should I do if I solve my uploading problem? :frowning:

So Saaaaaaaaaaaaaaaaaaaaaad, now.

1: Open any example, like the "blink" example. 2: Plug the usb cable into you computer and see what COM port it uses. 3: Select the COM port from Tools-Serial Port. 4: Select the uno from Tools-Board. 5: Press upload.

Do you get the same issues?

Optimize your code, use local variables as much as possible. also if you have constants, use #define instead, group repetitive calls into a function.

Be aware that this thread is (nearly) a year old.