ESP8266 Developer Zone The Official ESP8266 Forum 2019-02-01T02:37:32+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=25689 2019-02-01T02:37:32+08:00 2019-02-01T02:37:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=25689&p=37158#p37158 <![CDATA[Re: mac 985 ?]]>
alex323qp wrote:
Migrating the code is not an option at this stage, would take months.


Dude, No shit.. I feel you on that one :(
I have a bunch I have to convert myself to move to ESP32 to the point where I almost never want to.

I don't know if this will help your situation but are you debugging with that Breakpoint Stub? The issue is I'm not sure if it will disclose the stack trace for the WDT. Hmmmm, Not your kinda just spurred an idea. I'm pretty sure I want to write a Stacktrace tracker in SPI.. if the chip crashes maybe I can emulate a crash dump somehow to track current processes hmmmm.....

Statistics: Posted by AgentSmithers — Fri Feb 01, 2019 2:37 am


]]>
2019-01-30T08:36:34+08:00 2019-01-30T08:36:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=25689&p=37117#p37117 <![CDATA[Re: mac 985 ?]]> Statistics: Posted by alex323qp — Wed Jan 30, 2019 8:36 am


]]>
2019-01-29T17:51:35+08:00 2019-01-29T17:51:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=25689&p=37098#p37098 <![CDATA[Re: mac 985 ?]]> https://github.com/espressif/ESP8266_RTOS_SDK

Statistics: Posted by Her Mary — Tue Jan 29, 2019 5:51 pm


]]>
2019-01-29T14:49:08+08:00 2019-01-29T14:49:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=25689&p=37087#p37087 <![CDATA[Re: mac 985 ?]]>
Thanks for the reply!

Yeah, I do have wrappers in the header files that are used as event handlers for the espconn_xxxx callbacks, but my socket class has a private variable (_protocol) that should be unique between instances:

Code:

// Callback wrapper in the header file (MySocketClass.h)
static void _onDataWrapper(void *args, char *data, unsigned short len) {
      if(NULL != args){
         struct espconn *connection = (struct espconn *) args;
         // "reverse" points to the original object ( _conn.reverse = (void *) this; )
         MySocketClass *obj = static_cast<MySocketClass*>(connection->reverse);
         if(obj->_protocol == SOCKET_TYPE_TCP){
            obj->onTCPDataSent();
         }else if(obj->_protocol == SOCKET_TYPE_UDP){
            obj->onUDPDataSent();
         }
      }
}


Anyway, as I mentioned in my update post, I rolled back to a version of the code without the UDP implementation and the same issue showed up, so it doesn't seem to be related.

Regarding the debug messages, it's a good idea, but I've been reluctant to do it because it would require adding printfs inside ISRs that might affect the behaviour in other unexpected ways, not to mention the full application has dozens of files some with thousands of lines, and since we don't know what's causing the problem It will take a while to debug the whole thing. Will give it a try though.

I'm still hoping someone from espressif will step in and throw some light on this issue.

Thanks again,

A.

Statistics: Posted by alex323qp — Tue Jan 29, 2019 2:49 pm


]]>
2019-01-29T06:02:21+08:00 2019-01-29T06:02:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=25689&p=37083#p37083 <![CDATA[Re: mac 985 ?]]>
Another thing is WDT only kicks off when frozen so I would add os_printf lines to your code to see where the execution pauses before the WDT kicks off. Things can be a bit harder to track down if you have timers kicking off functions too as they can cause a WDT in the background and cause red herrings.

Statistics: Posted by AgentSmithers — Tue Jan 29, 2019 6:02 am


]]>
2019-01-28T11:11:08+08:00 2019-01-28T11:11:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=25689&p=37069#p37069 <![CDATA[Re: mac 985 ?]]>
https://github.com/espressif/ESP8266_NO ... /issues/90
https://bbs.espressif.com/viewtopic.php?f=7&t=10424


A.

Statistics: Posted by alex323qp — Mon Jan 28, 2019 11:11 am


]]>
2019-01-25T15:30:58+08:00 2019-01-25T15:30:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=25689&p=37014#p37014 <![CDATA[mac 985 ?]]>
I started to get this message and a WTD reset after implementing a UDP sender.

I'm sending less than 100 bytes every 20ms or so. The send is triggered by an external interrupt. After the first espconn_send the IRQ is disabled until sent_callback is called, then the IRQ is re-enabled.

Does anyone have any idea of what it means?

Thanks,

A.

Statistics: Posted by alex323qp — Fri Jan 25, 2019 3:30 pm


]]>