claudeheintz / LXESP32DMX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hang on power up

macdroid53 opened this issue · comments

Sometimes, when power is applied to the ESP32 the call to .startInput() never returns.

I have not found a way to make it happen every time the ESP32 is powered, but every time it does, it on power up and it is on the call to .startInput().

In this case, the call is the last line of code of the start() function. Before that in setup(), some PWM registers are configured, some other pins are toggled to shift in some values. The shift pins are never used again and are not the used by ESP32DMX. The PWM registers and associated output pins are also not used by ESP32DMX.

Most times power on is fine and the in coming DMX values are used to adjust the PWM output and works as expected. When it hangs on .startInput(), the pwm is at it's default value and appear to be working as expected, but .startInput() never returns and DMX value changes are not processed (I assume never received).

Any ideas what is happening, pointers to trouble shooting, or how to fix it???