Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 9 months ago.
memory issue
Hi all, I am running a web server application on my mbed K64f microcontroller. I have used the following link to create my web application
http://processors.wiki.ti.com/index.php/CC3000_HTTP_Server_Demo_Session
The problem is i am facing some memory issues, i am using two char arrays to store data, i observed that if i increase the array size from array[3][17] to array[4][17] the programs gets crash. I am using memcpy to copy my data from source to this array. Issue is the program crashes without calling the memcpy function.
According to build details I am using 76kb of ram (1MB is total flash of frdm-k64f) and 58kb of ram (512KB total size).
can any one help me out, what are main reason for server crashing
I figured it out, I declared my global variables in local functions, global variables takes fix part of memory. Check memory model of mbed for further details
posted by zain aftab 18 Nov 2014