Josverl / micropython-stubber

Generate and maintain stubs for different MicroPython ports to use with VSCode and Pylance, PyRight, Thonny, PyCharm or pylint
https://micropython-stubber.readthedocs.io
Other
166 stars 14 forks source link

Mpflash - : use 1200 Bd to reset boards to bootloader #571

Closed Josverl closed 6 days ago

Josverl commented 1 month ago

https://github.com/micropython/micropython/discussions/14395#discussioncomment-9532681

And

https://forums.raspberrypi.com/viewtopic.php?t=350680 https://forums.raspberrypi.com/viewtopic.php?p=2091679#p2091679

pico code: #define PICO_STDIO_USB_RESET_MAGIC_BAUD_RATE 1200 https://github.com/raspberrypi/pico-sdk/blob/6a7db34ff63345a7badec79ebea3aaef1712f374/src/rp2_common/pico_stdio_usb/reset_interface.c#L101-L113

Arduino IDE reset : https://github.com/arduino/Arduino/blob/89539b1131f8cde9f7a83225f21c811071af53a8/arduino-core/src/processing/app/Serial.java#L98-L117

Josverl commented 1 month ago

Sample scripts:

Josverl commented 1 week ago

Discussion: https://github.com/orgs/micropython/discussions/15306

Arduino - AVR: https://arduino.stackexchange.com/questions/32736/how-is-the-bootloader-activated-when-device-is-running