Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By ulko
#9938 I have issues with reboots - especially when using DS1820_CONVERT...
Does anybody know the watchdog timeout value?
Or knows how to define the value?
All trials with
Code: Select allvoid user_init(void)
{
   uint32 delay=200000;
   // Configure the UART
   uart_init(BIT_RATE_115200, BIT_RATE_115200);
//   ets_wdt_init(100000);
   ets_wdt_enable();
//   ets_wdt_disable();
   wdt_feed();
   ets_uart_printf("START\r\n");
   wdt_feed();
//   for(;;)   //gets wdt_reset after very short time.
        for(;;)     // no wdt resets at all
   {
      ets_delay_us(delay);
      delay+=200000;
      wdt_feed();
      ets_uart_printf("%d\r\n",delay);
      wdt_feed();
   }

gets wdt_reset after very short time or never wdt_reset
I also tried ets_wdt_init(100000); This function seems to exist as make all sends no error.
But I din't find any doc about the function.
User avatar
By ulko
#10350 thank you for the info.
1s might be sufficiant for most things.
I have eliminated floating point ops, as they seem to be very slow. That helped also to avoid watchdog-resets.