Currently, at least with my Spike Prime hub, after running pybricks dev flash, the device stays in DFU mode, and the only way I've found to restart it is to hold the power button for several seconds. It would be nice if it could reboot automatically to speed up dev cycles.
I have found that currently my pybricsdev is calling out to dfu-util with a command like ['dfu-util', '--device', ',0694:0008', '--alt', '0', '--reset', '--download', '/tmp/tmpskjwf028/firmware.dfu']. I have also found that if I replace "--download" with "--dfuse-address", f"{FIRMWARE_ADDRESS}:leave" , it seems to work great and reboots right away into the micropython firmware. However, I'm not sure if this will work for everybody or not.
Currently, at least with my Spike Prime hub, after running
pybricks dev flash, the device stays in DFU mode, and the only way I've found to restart it is to hold the power button for several seconds. It would be nice if it could reboot automatically to speed up dev cycles.I have found that currently my pybricsdev is calling out to
dfu-utilwith a command like['dfu-util', '--device', ',0694:0008', '--alt', '0', '--reset', '--download', '/tmp/tmpskjwf028/firmware.dfu']. I have also found that if I replace"--download"with"--dfuse-address", f"{FIRMWARE_ADDRESS}:leave", it seems to work great and reboots right away into the micropython firmware. However, I'm not sure if this will work for everybody or not.