You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I had an opportunity to port some of (my custom) firmware to a BK7231N-based device -- I only have one of these devices, a Tuya CB2S, that I pulled out of the IOT device, and it's kind of in a janky setup on the bench with lots of bodge wires and serial adapters tacked on since I don't have the proper programmer board. So it was helpful to develop & test application code for it remotely.
We can cause the device to enter the bootloader without any physical interaction now (at least after the initial flash of PlatformIO) using LibreTiny's auto-download-reboot, but the only way I've found to get back to application code is by uploading new firmware with pio run -e cb2s --target upload which auto-reboots the device after flashing. Most other embedded tools I've seen have a "boot" command to get out of the bootloader without modifying anything.
ltchiptool seems to be calling in to bk7231tools as an optional dependency to do this restart, so I added a "boot" command to bk7231tools so I could restart the device/get out of the bootloader if I ever wanted to without flashing any new firmware.
I'm not going to clone the repo and make a PR for such a small thing, but I did want to share the patch in case it's interesting to others. You can also run "bk7231tools boot" while the device is in application code to do a software reboot by taking it into bootloader then back out.
Recently I had an opportunity to port some of (my custom) firmware to a BK7231N-based device -- I only have one of these devices, a Tuya CB2S, that I pulled out of the IOT device, and it's kind of in a janky setup on the bench with lots of bodge wires and serial adapters tacked on since I don't have the proper programmer board. So it was helpful to develop & test application code for it remotely.
We can cause the device to enter the bootloader without any physical interaction now (at least after the initial flash of PlatformIO) using LibreTiny's
auto-download-reboot
, but the only way I've found to get back to application code is by uploading new firmware withpio run -e cb2s --target upload
which auto-reboots the device after flashing. Most other embedded tools I've seen have a "boot" command to get out of the bootloader without modifying anything.ltchiptool seems to be calling in to bk7231tools as an optional dependency to do this restart, so I added a "boot" command to bk7231tools so I could restart the device/get out of the bootloader if I ever wanted to without flashing any new firmware.
I'm not going to clone the repo and make a PR for such a small thing, but I did want to share the patch in case it's interesting to others. You can also run "bk7231tools boot" while the device is in application code to do a software reboot by taking it into bootloader then back out.
The text was updated successfully, but these errors were encountered: