These are chat archives for SmingHub/Sming

9th
Nov 2017
bbourdel
@bbourdel
Nov 09 2017 11:58
New issue :
My code restarts every 1 hours and 10 minutes. The heap size is good.
After few research, I've found that 1h+10min = 4201000000uS that is close to 2^32 (32 bits overflow value).
I use HardwareTimer and SoftwareTimer in my code, and also millis(). SDK 2.0.0 / Sming 3.4.0
Any idea ?
bbourdel
@bbourdel
Nov 09 2017 13:11
Here my log after 1h12min :
heap = 19776
HttpConnection::onReadyToSendData: waitingQueue.count: 0
Nothing in the waiting queue
heap = 19776
HttpConnection::onReadyToSendData: waitingQueue.count: 0
Nothing in the waiting queue
heap = 19776
HttpConnection::onReadyToSendData: waitingQueue.count: 0
Nothing in the waiting queue

 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset
bbourdel
@bbourdel
Nov 09 2017 13:24
Sounds to be linked to HardwareWatchDog... hum....
bbourdel
@bbourdel
Nov 09 2017 15:23
I've tried to execute wdt_feed(); every second but it still failed after 1h 10 min.
Any ideas ?
bbourdel
@bbourdel
Nov 09 2017 17:09
I've also try to stop and restart HardwareTimer after 1 hours (so 10 minutes before WDT reset) but it doesn't change anything. Still resetting 10 minutes latter. :-(