Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support commands other than "reset" for non BOOTSEL device with STDIO USB reset interface #14

Closed
kilograham opened this issue Mar 6, 2021 · 1 comment
Assignees
Milestone

Comments

@kilograham
Copy link
Contributor

If a device is not in BOOTSEL mode but is exposing a reset interface along with STDIO USB, then we can potentially run any command by first resetting the device to BOOTSEL mode, and then performing the original intended command.

Open question; if we are performing an operation other than "load -x", what should we do after - the device will be left not running. We can either reset it or expose the USB interface at that point (in which case we may as well expose it as soon as reset if we won't be resetting again after the command)

@lurch
Copy link
Contributor

lurch commented Mar 8, 2021

what should we do after

Perhaps another flag to specify the post-action?
Or maybe trying to collapse a reset; do_command; reset; sequence into a single do_command -f; sequence would be simply better left as separate steps? 🤷 Perhaps the user would be confused by do_command -f; "suddenly" failing if the binary running on the Pico doesn't happen to have the reset vendor interface exposed, whereas just the reset command failing might be more obvious?

What might be even nicer would be a wrapper-script that can do the same actions either via picotool or SWD, but that's probably a discussion for a later day... (and might be something that the community cooks up anyway?)

@kilograham kilograham self-assigned this May 15, 2021
@kilograham kilograham added this to the 1.1.0 milestone May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants