Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. let i = 0;
  2. let sensorData = 0;
  3. while(i<100){
  4. let Tid=Timer.set(500,0,function(){
  5. sensorData = sensorData + this.CalculateResistance();
  6. },null);
  7. Timer.del(Tid);
  8. sensorData = sensorData/100;
  9. sensorData = sensorData/MQ_GasSensor.SensorParameters.ClearAirRatio;
  10. }
  11. return sensorData;
  12. },```
  13.  
  14. somehow it triggers watchdog.
  15. here is the error.
  16. [Jul 19 01:44:42.683] E (30764) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
  17. [Jul 19 01:44:42.694] - mgos (CPU 0/1), backtrace: 0x4000c3f8 0x400f7f35 0x400f7ff4 0x400fb73a 0x400fca1b 0x400fca73 0x400f31e3 0x400f3214 0x400e28a5 0x400e2c08 0x400e67eb 0x40083b04
  18. [Jul 19 01:44:42.708]
  19. [Jul 19 01:44:42.708] E (30764) task_wdt: Tasks currently running:
  20. [Jul 19 01:44:42.713] E (30764) task_wdt: CPU 0: mgos
  21. [Jul 19 01:44:42.717] E (30764) task_wdt: Aborting.
  22. [Jul 19 01:44:42.720] abort() was called at PC 0x400d1350 on core 0
  23. [Jul 19 01:44:42.724]
  24. [Jul 19 01:44:42.725] Backtrace: 0x4008f0db 0x4008f25d 0x400d1350 0x40081686 0x4000c3f5 0x400f7f35 0x400f7ff4 0x400fb73a 0x400fca1b 0x400fca73 0x400f31e3 0x400f3214 0x400e28a5 0x400e2c08 0x400e67eb 0x40083b04
  25. [Jul 19 01:44:42.741]
  26. [Jul 19 01:44:42.741] --- BEGIN CORE DUMP ---
  27. [Jul 19 01:44:42.743] mos: catching core dump
  28. [Jul 19 01:44:45.599] .............[Jul 19 01:45:22.289] mos: core dump aborted
  29. [Jul 19 01:45:22.289]
  30. [Jul 19 01:45:22.289] rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  31. [Jul 19 01:45:22.294] configsip: 0, SPIWP:0xee
  32. [Jul 19 01:45:22.296] clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  33. [Jul 19 01:45:22.302] mode:DIO, clock div:1
  34. [Jul 19 01:45:22.304] load:0x3fff0018,len:4
  35. [Jul 19 01:45:22.306] load:0x3fff001c,len:6188
  36. [Jul 19 01:45:22.309] load:0x40078000,len:9588
  37. [Jul 19 01:45:22.311] load:0x40080400,len:6968
  38. [Jul 19 01:45:22.313] entry 0x40080740
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement