ERR_MEM on lwip stack
Hello!
I use MCU STM32F429ZIT6. My task is to receive data on UART for several hours and copy them to ethernet.
My function to send data (I generated the code in the CubeMX program with no RTOS):
void sendstring (char* buf_str)
{
tcp_sent (ss->pcb, tcp_server_sent)
tcp_write (ss->pcb, (void*)buf_str, strlen(buf_str), 1);
tcp_recved (ss->pcb, strlen(buf_str));
}
In about half an hour (or 10 minutes, or 60 minutes) I can see, that my transmission is aborted. Вebugger crashes into hardfault. I noticed that tcp_write () function returns ERR_MEM infinitily and the condition
"tsp_sndbuf(ss->pcb) < strlen(buf_str)"
is true.
Do you help me?
Maybe I should change some parameters lake MEM_SIZE or PBUF_POOL_SIZE or something else.
