Custom C code - Debugging help needed
Posted: Fri Oct 02, 2015 5:27 pm
Hi,
can anybody help me debugging my application? I use esphttpclient and in my small test application everything works fine. Now I added some more i2c sensors and also an i2c display. And I set up 3 os_timers to do things like reading the sensors, updating the display and sending data using http(s) to an external server. While reading and sending the data worked before in the test-app, now the module always crashes while sending the data and I cannot figure out the reason for it. The free heap seems not to be the problem as I can track it down until it goes into the connect callback and the heap looks ok. The crash occours on the same position if I switch from https to http. So using SSL also seems not to be the issue. The request never reaches the web-server, it does not show up in the logs there. So I assume it crashes anywhere in the connect procedure. Can anybody point me in the right direction how I can get more information on what went wrong in detail? I am using esp-open-sdk and SDK-1.3.0.
Thank you.
can anybody help me debugging my application? I use esphttpclient and in my small test application everything works fine. Now I added some more i2c sensors and also an i2c display. And I set up 3 os_timers to do things like reading the sensors, updating the display and sending data using http(s) to an external server. While reading and sending the data worked before in the test-app, now the module always crashes while sending the data and I cannot figure out the reason for it. The free heap seems not to be the problem as I can track it down until it goes into the connect callback and the heap looks ok. The crash occours on the same position if I switch from https to http. So using SSL also seems not to be the issue. The request never reaches the web-server, it does not show up in the logs there. So I assume it crashes anywhere in the connect procedure. Can anybody point me in the right direction how I can get more information on what went wrong in detail? I am using esp-open-sdk and SDK-1.3.0.
Thank you.