-->
Page 1 of 1

PWM causing watchdog reset.

PostPosted: Sun Nov 08, 2015 12:27 pm
by Haemish Kyd
Hi all,

I have been trying for a week or so now to get the PWM working on the ESP8266. My code currently is very basic.
Code: Select allpwm_duty_init[0] = 100;
   pwm_duty_init[1] = 100;
   pwm_duty_init[2] = 100;
   uart0_sendStr("\r\nDoor Unlocker\r\n");
   pwm_init(3000, pwm_duty_init, PWM_CHANNEL, io_info);
   uart0_sendStr("\r\nPWM Initialised\r\n");
   pwm_start();
   uart0_sendStr("\r\nPWM Started\r\n");

The output I get is:
Screenshot from 2015-11-08 19-21-31.png


I have attached my whole user_main.c file as well in case there is a clue in there.
I am doing this all in very 1.4 of the SDK.

I am really lost here. I have gone through the few other discussions on this topic and there really seems to be no solution.

Any thoughts would be appreciated.

Haemish

Re: PWM causing watchdog reset.

PostPosted: Sun Nov 15, 2015 3:17 pm
by kolban
Unfortunately I don't have any solutions for you ... but I too am finding that when I start PWM on SDK 1.4, I also end up with a watchdog reset.

Re: PWM causing watchdog reset.

PostPosted: Fri Apr 22, 2016 3:14 pm
by anszom
For anyone googling for the problem, see here for the solution: viewtopic.php?f=6&t=4675&start=48#p46002