This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL-TCPnet crash when send and get at the same time

Hello everyone,

I'm working on a web service with RL-ARM libraries that I want to send some parameters with AJAX as .cgx file and the same time I want to create socket and then send a lot of data to destination.

but the problem is when my Microcontroller  wants to do these two tasks at the same moment .It crashes .I discover with debug that the process stops at this function  main_TcpNet(); .

and I also realize the process doesn't stop in these function 

U16 cgi_func (U8 *env, U8 *buf, U16 buflen, U32 *pcgi){}

and 

void cgi_process_data (U8 code, U8 *dat, U16 len) {}

I'm beyond confuse because of I don't know what should I do to fix it .

the Microcontroller is : LPC1768

network IC is DP83848VV

Thank in advance.

Parents Reply Children
  • Thank man ,I will do it .Finally I discover my problem probably. But I don't know how should I solve it exactly . the problem is memory overflow . When The program wants to send a lot of datas via socket and  answers to AJAX requests at the same time ,suddenly it crashes .in truth when this couple task works at the same time .it occurs.

    I feel, it's because of the socket keep the datas until getting ACK in its buffer at  this time I have a lot of datas from AJAX to get . and at this point  occurs overflow.

    I tried to solve it via change some parameters of Net_Config.c but I don't know which parameter is solution. 

    so, what should I do .

    Thanks in advance