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

User avatar
By Haemish Kyd
#33465 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
You do not have the required permissions to view the files attached to this post.
User avatar
By kolban
#34102 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.