-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add support for Arduino boards jump to bootloader via CDC. #8574
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
Conversation
aae3428
to
fa514dd
Compare
Is it specified that it must close the port for it to enter the bootloader? In other words, it won't enter the bootloader unlit the USB port is closed (and was at 1200 baud when closed)? |
The only requirement is jumping to bootloader when a port is opened at 1200bps, the IDE typically closed the port right away. |
fa514dd
to
50d362d
Compare
OK. But see my other comment above, about responding to the USB request to change baud rate. I think it would be good to have a clean disconnect. |
42ae5b7
to
3e79bad
Compare
This can be rebased now that #8590 is merged. |
41c5337
to
817d7a3
Compare
Rebased and retested stm32, rp2 and nrf ports. |
627fff4
to
d2fb2d7
Compare
d2fb2d7
to
387552f
Compare
* Currently this file only includes CDC jump to bootloader helper function.
387552f
to
e04294b
Compare
The 1200 touch commits have been merged in 6c1495b through 425d8fc I did not merge the nrf formatting commit because it's just fixing one file but there are many others that still need reformatting, and also |
That's okay, might be able to get around to that later. |
Original code used uint32_t* so `/ sizeof(size_t)` was needed. It is a uint8_t* now so that division makes it 4x smaller. Whoops! Fixes micropython#8574
This patch adds support for an Arduino IDE feature that resets a board into bootloader mode by opening the serial port with baudrate set 1200bps and then closing the port (aka 1200bps touch). This allows users to seamlessly upload sketches to Arduino boards running Micropython.
NOTE: The NRF changes are mostly code-formatting.
This should be resolved first: