I would like to measure the free RAM on the CC3200 microcontroller while it is running. Is there a function or general methodology to do this? May I execute out of SPI flash?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
What if I were to just use variables on the stack? Then could I make a variable, see what its memory address is, and subtract that from the highest memory address? For example
uint32 freeRam(){
int i = 0;
const int MAX_MEMORY_ADDRESS = 0x40000; /* CC3200 has 256k RAM. Byte addressable? */
return MAX_MEMORY_ADDRESS - &i;
}
Hi Andrew,
Thanks for your reply.
Based on filesystem on CC3200mod we have programmed multi-images(service pack, system configuration, web pages, application image and etc.) into internal SPI flash by uniflash. We have no idea to know how we could obtain information about free size to filesystem?
Will