Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

force "Reboot device" #194

Open
doniks opened this issue Feb 21, 2020 · 1 comment
Open

force "Reboot device" #194

doniks opened this issue Feb 21, 2020 · 1 comment

Comments

@doniks
Copy link

doniks commented Feb 21, 2020

Feature Request 🚀

Is your feature request related to a problem? Please describe.

When I get the board to hang, then the "Reboot device" is not able to get me out of this. I have to physically find the device on my desk and press the reset button.

As a dummy reproduction, consider the following:

import machine
machine.deepsleep(60000)

The device goes to deep sleep, no more REPL. When I use the "Reboot device" menu button now, it writes "Rebooting device" but otherwise nothing happens. I have to manually reset the device.

Describe the solution you'd like

I know that pycom-fwtool-cli is capable of resetting the device. E.g., pycom-fwtool-cli --port /what/ever chip_id will (print the chip id and) reset the device

It would be great if pymakr could do this. Would obviously only work for usb connections

@peter-pycom
Copy link

I think similarly the upload is a "cooperative" implementation, ie, pymakr expects the device to go into safe boot mode by sending some commands via the terminal, while over USB, I think it should be able to force a safe boot reboot.

@elmasria elmasria reopened this May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants