Keeping received data for late use
Posted: Wed Apr 22, 2015 7:35 am
Hi,
I'm trying to preserve data received at a callback registered through espconn_regist_recvcb.
So I started from the easiest way by making static buffer in user_main.c like this,
Then I tried to write a data to the buffer like this,
But the moment the app tries to access to the buffer, it stops and after a few seconds, it gives wdt reset message.
Does anyone know what is happening? Is RAM so small that there is no room for making 512 bytes buffer?
Any comment will be appreciated. Thank you.
I'm trying to preserve data received at a callback registered through espconn_regist_recvcb.
So I started from the easiest way by making static buffer in user_main.c like this,
Code: Select all
static char buffer[512];
Then I tried to write a data to the buffer like this,
Code: Select all
for (i = 0; i < 512 ; i++) buffer[i] = i & 0xFF;
But the moment the app tries to access to the buffer, it stops and after a few seconds, it gives wdt reset message.
Does anyone know what is happening? Is RAM so small that there is no room for making 512 bytes buffer?
Any comment will be appreciated. Thank you.