PDA

View Full Version : Memory full message



Cogburn
11-18-2009, 09:26 AM
I was playing around trying to put rc time readings in an array so I could average them to smooth the values. I suppose I loaded up the eeprom because I cannot get the stamp to work now and get an error message memory full. Is there a command I can send to dump or erase the memory?

Mike Green
11-18-2009, 09:39 AM
The memory automatically gets erased as needed when you download a new program. You don't need to separately erase it. Remember that the Stamps have only 2K bytes of memory for your program and DATA statements. There are multiple 2K "slots" in some Stamps, but the BS2 has only one 2K "slot". Your "memory full" message may be referring to more than 2K of program and EEPROM data.

Tracy Allen
11-19-2009, 12:52 AM
You might also have filled up the RAM memory. You say you are putting the rc time readings in an array. Do you mean an array of variables, such as myarray(idx)? The Stamp has only 13 words of general purpose memory for variables, which can also be addressed as 26 bytes, 52 nibs, or 208 bits.

Back off on the size of the array and see what happens. You know, if you are using STAMPW.EXE, you can use the "memory map" to see exactly how the Stamp memory is allocated. It shows both the EEPROM and the RAM usage.

You may have to resort to a less memory intensive smoothing algorithm, such as a IIR pass filter.

The multi-slot stamps such as the BS2p have additional RAM memory that can be useful for arrays.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com (http://www.emesystems.com)