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.
I recommend updating to the latest releases of:
- Keil MDK (today: 5.36, http://www2.keil.com/mdk5 )
- Keil::LPC1700_DFP (2.7.1)
Next, compare i.e. with the HTTP Server project:
For an introduction to Keil MDK 5, see:
https://community.arm.com/support-forums/f/keil-forum/49652/keil-mdk-5-useful-links-that-help-getting-started
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