Hello, I’ve updated to CAN bridge mode and I see I have a problem with FIRMWARE_RESTART. Firmware version: v0.12.0-8, BTT Octopus plus Fly Mellow SB2040 CAN toolhead. I use canboot mode in 2040 toolhead (no canboot in main board).
my mcu configuration:
[mcu]
canbus_uuid: 0692bed3a983
[mcu SB2040]
canbus_uuid: 40120b79508a
I realized that the problem is with resetting of main MCU. It works on second attempt (sometimes). I played with the python code and found that adding a delay after reset of main CPU solves the problem (not sure if it is proper solution, probably just a workaround only):
file mcu.py:
++ import time
.
.
.
def _firmware_restart(self, force=False):
if self._is_mcu_bridge and not force:
return
if self._restart_method == 'rpi_usb':
self._restart_rpi_usb()
elif self._restart_method == 'command':
self._restart_via_command()
elif self._restart_method == 'cheetah':
self._restart_cheetah()
else:
self._restart_arduino()
++ time.sleep(1)