Skip to content

Feature request: (optionally) boot into firmware after flashing #112

@abliss

Description

@abliss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions