I have an application using three tx/rx UDP sockets that seems to work fine. I''m trying to add Donatien's httpServer into the code to provide a configuration interface. The application works fine until the web server is accessed whereupon it serves one page, even a simple html file and then the mBed crashes totally.
Now I suspect I have to do something with handling IP buffers better but has anyone any immediate suggestions ? I'd perhaps naively hoped the libraries just did this for me in the reserved extra RAM. Is there anyway I can see how much RAM is being used there and will the compiler warn me if I run out ?
I know example code would be helpful so I'm just reducing my code to the minimal that illustrates the issue. I removed all three UDP sockets and the remaining application code and the
webserver work but as soon as I add one back it crashes. Without the webserver all three UDP sockets and the application are working fine.
I'm mid learning on mBed / C++ , but wrote a similar app on another embedded platform in ANSI C . Without runtime debugging this is proving quite difficult to track down.
K
PS Also noticing that from the webserver larger files are problematic - small jpg OK but larger one kills it.
I have an application using three tx/rx UDP sockets that seems to work fine. I''m trying to add Donatien's httpServer into the code to provide a configuration interface. The application works fine until the web server is accessed whereupon it serves one page, even a simple html file and then the mBed crashes totally.
Now I suspect I have to do something with handling IP buffers better but has anyone any immediate suggestions ? I'd perhaps naively hoped the libraries just did this for me in the reserved extra RAM. Is there anyway I can see how much RAM is being used there and will the compiler warn me if I run out ?
I know example code would be helpful so I'm just reducing my code to the minimal that illustrates the issue. I removed all three UDP sockets and the remaining application code and the webserver work but as soon as I add one back it crashes. Without the webserver all three UDP sockets and the application are working fine.
I'm mid learning on mBed / C++ , but wrote a similar app on another embedded platform in ANSI C . Without runtime debugging this is proving quite difficult to track down.
K
PS Also noticing that from the webserver larger files are problematic - small jpg OK but larger one kills it.