Webserver Crashes

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I'm experiencing stability problems with my first webserver application. I'm running on a Murata SN8200EVK+ from Wiced on Windows 7 (64-bit). To track down the problem, I've stripped my system down to what I think is the smallest possible example and have attached the source files to this post.

The enclosed project serves only a single web page: an HTML index file that uses some jQuery Javascript. The jQuery library is pulled from Google's website. The C code is very basic.

The Javascript code loads the HTML file over and over, once per second, and puts some simple information on the screen.

I can compile, download, and connect to the device with my PC. I can pull up the web page with the latest version of Chrome -- sometimes. Sometimes the device will crash immediately. By crash, I mean that I have to power cycle the device or re-download to it to make it do anything. I can't pull up a web page. If I disconnect my PC from the WIFI connection, I will not be able to re-establish. I suspect the C code has fallen into an infinite loop or HALTed.

Sometimes the browser will pull the code up correctly and will load the page over and over. Usually, hitting F5 (refresh) on the browser will kill it immediately. Sometimes I have to hit it a bunch of times. Very rarely will refreshing not be able to kill it, but I've seen that happen too.

Regardless, such a simple program should be rock-solid stable and it's most definitely not. I need to know what I've done wrong before we can design this device into our product.

Thank you for looking into this!

0 Likes
1 Solution
Anonymous
Not applicable

I tried your new HTML and the code still crashes when I hit refresh.


Yes, the problem is in the C code since that's what's actually crashing. That's what I wanted you to look at. I have no idea why you would even focus on the HTML.

View solution in original post

0 Likes
7 Replies