-->
Page 2 of 15

Re: pwm_init creates a platform restart

PostPosted: Sun Aug 23, 2015 10:11 am
by limpkin
thanks for the judgement free answer.

I switched the defines to the original values:
Code: Select alluint32 io_info[][3] = {{PERIPHS_IO_MUX_MTDI_U, FUNC_GPIO12, 12},{PERIPHS_IO_MUX_MTCK_U, FUNC_GPIO13, 13},{PERIPHS_IO_MUX_MTMS_U, FUNC_GPIO14, 14},};


but that unfortunately didn't work... any other suggestions?

Re: pwm_init creates a platform restart

PostPosted: Sun Aug 23, 2015 10:34 am
by eriksl
I wasn't meant as a conviction, it was meant as a general hint that may help debugging the code that apparently doesn't work.

Re: pwm_init creates a platform restart

PostPosted: Sun Aug 23, 2015 10:35 am
by eriksl
What happens if you set the pin functions explicitly, before you call the pwm setup code (yes, indeed, the code suggests it isn't necessary...)

Re: pwm_init creates a platform restart

PostPosted: Sun Aug 23, 2015 10:43 am
by limpkin
Code: Select all   PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, FUNC_GPIO13);
   PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDI_U, FUNC_GPIO12);
   PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, FUNC_GPIO14);


didn't help.