I don't know how or when I was clumsy, but somehow I broke my user button. See picture showing how the black rubber bit has come half out of the metal frame. I only need to use the button for one purpose: the magic combination of presses that allows me to dfu-util refresh to a newer version of micropython.
Ideas for a workaround?
(I don't want to press hard on the pybd because it's mounted on hone soldered wbus connectors whose strength I don't want to test .....)
Doh! Broken USR button!
-
- Posts: 23
- Joined: Sat Nov 17, 2018 10:04 pm
Re: Doh! Broken USR button!
Ps .. i should add that the device is in hard to reach position (upside down in a ceiling void) and difficult to remove!
Re: Doh! Broken USR button!
If you still have access to REPL, you can activate the dfu mode with:
import pyb
pyb.bootloader()
import pyb
pyb.bootloader()
-
- Posts: 23
- Joined: Sat Nov 17, 2018 10:04 pm
Re: Doh! Broken USR button!
No problem with access to REPL. Indeed, the button may have been broken for months for all I know. So I'll try your suggestion . Great to know that such a nice-sw only method is possible. I had no idea. Thank you!
-
- Posts: 23
- Joined: Sat Nov 17, 2018 10:04 pm
Re: Doh! Broken USR button!
That was perfect. Worked a treat! I wonder if it would be a good idea to add a tiny comment mentioning this other method of flashing on https://micropython.org/download/pybd/ ? I took the instructions there to be the definitive ones for pybd firmware flashing, but they only mention the existence of the Vulcan death grip button presses.
In fact, the docs there say
In fact, the docs there say
(emphasis added by me) which is apparently not true! I guess it should really instead say something like:you must enter the mboot DFU bootloader by holding down the USR button, pressing and releasing the RST button ...
if you have no access to the REPL you must enter the mboot DFU bootloader by holding down [TEXT ABOUT BUTTON PRESSES] ..... otherwise you can simply [INSERT TEXT ABOUT SIMPLE pyb.bootloader() METHOD]