openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.33k stars 226 forks source link

SM16703P Driver causing device hang - 1.17.566 #1237

Closed Wolfieeewolf closed 1 month ago

Wolfieeewolf commented 1 month ago

Describe the bug

The device hangs once you toggle the light. Appears to continually reboot but the lights stay on. Have seen up to 200 reboot attempts. Have to reboot into safe mode to restore.

Have tried the latest firmware 1.17.581 and the issue is still there.

Firmware:

Lots of changes to the pixel driver happened in 1.17.566

No pins set

Flag 4 set

LittleFS

autoexec.bat

startDriver SM16703P
SM16703P_Init 30 GRB
again:
SM16703P_SetPixel all $led_enableAll*$led_red*$led_dimmer/255 $led_enableAll*$led_green*$led_dimmer/255 $led_enableAll*$led_blue*$led_dimmer/255
SM16703P_Start
delay_s 1
goto again

have also tried

startDriver DDP
startDriver SM16703P
SM16703P_Init 30 GRB

Both settings have worked on 1.17.565 with no issues.

To Reproduce Steps to reproduce the behavior:

  1. OTA to '1.17.566'
  2. Click on 'Toggle 1'
  3. The device hangs LEDs stay on. Have to reboot to safe mode to fix
openshwprojects commented 1 month ago

I think you don't need that script anymore. It's now integrated into OBK without script. That's why you are getting crash...

Wolfieeewolf commented 1 month ago

Do I need to start the driver?

I just tried

startDriver SM16703P SM16703P_Init 30 GRB

and it still crashes

Wolfieeewolf commented 1 month ago

I deleted the autoexec.bat and it appears to be working now.

Very strange. I did try that before but nothing would light up.

For now, it's working so I'll go ahead and close this issue