I believe there are other threads on this, but did you try: ble_trace1("free memory : %d", cfa_mm_MemFreeBytes());
Sorry, the text I provided was for the Bluetooth SDK... I don't know what it is for the WiFi SDK.
You can use the mallinfo( ) function to check the following.
arena: total space allocated from system
ordblks: number of non-inuse chunks
smblks: unused -- always zero
hblks: number of mmapped regions
hblkhd: total space in mmapped regions
usmblks: unused -- always zero
fsmblks: unused -- always zero
uordblks: total allocated space
fordblks: total non-inuse space
keepcost: top-most, releasable (via malloc_trim) space
You can check the usage in command_console_mallinfo.c which is in
Hope this helps.