pwm_init creates a platform restart
Posted: Fri Aug 21, 2015 8:50 am
Hey everyone,
Using sdk1.3.0, cnlhor's makefile from https://github.com/cnlohr/esp8266ws2812i2s I'm getting a platform restart everytime I call pwm_init.
The code I use is exactly the same one as in the IOT_demo:
Funny thing is that that code works perfectly when embedded in the httpd project.... any ideas?
Thanks!
Using sdk1.3.0, cnlhor's makefile from https://github.com/cnlohr/esp8266ws2812i2s I'm getting a platform restart everytime I call pwm_init.
The code I use is exactly the same one as in the IOT_demo:
Code: Select all
uint32 io_info[][3] = {{PWM_0_OUT_IO_MUX,PWM_0_OUT_IO_FUNC,PWM_0_OUT_IO_NUM},{PWM_1_OUT_IO_MUX,PWM_1_OUT_IO_FUNC,PWM_1_OUT_IO_NUM},{PWM_2_OUT_IO_MUX,PWM_2_OUT_IO_FUNC,PWM_2_OUT_IO_NUM}};
uint32 pwm_duty_init[PWM_CHANNEL] = {0};
pwm_init(PWM_PER, pwm_duty_init, PWM_CHANNEL, io_info);
set_pwm_debug_en(0);
Funny thing is that that code works perfectly when embedded in the httpd project.... any ideas?
Thanks!