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

Automatic restart in DFU Bootloader mode #706

Open
ladyada opened this issue Oct 16, 2019 · 9 comments · May be fixed by #710
Open

Automatic restart in DFU Bootloader mode #706

ladyada opened this issue Oct 16, 2019 · 9 comments · May be fixed by #710
Assignees
Labels
enhancement New feature or request

Comments

@ladyada
Copy link
Contributor

ladyada commented Oct 16, 2019

When using the built in USB DFU bootloader, lets auto-reset into the bootloader mode from USB Serial using something like 1200-baud knocking

@fpistm fpistm added enhancement New feature or request New feature labels Oct 17, 2019
@fpistm fpistm self-assigned this Oct 17, 2019
@fpistm fpistm added this to the 1.8.0 milestone Oct 17, 2019
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Oct 17, 2019
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Oct 17, 2019
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Oct 18, 2019
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@stas2z
Copy link
Contributor

stas2z commented Oct 18, 2019

Uh, that will be great, ive tried to implement smth like this with F401 (using maple "LEAF" sequence as a trigger), but stucked cuz it just reboots instead of running bootloader, seems like BL code checks for BOOT0 not pulling up and jumping to fw stored

@fpistm
Copy link
Member

fpistm commented Oct 18, 2019

I have a first working version 😉

fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Oct 18, 2019
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Oct 18, 2019
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm linked a pull request Oct 18, 2019 that will close this issue
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Oct 18, 2019
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This was referenced Oct 23, 2019
@fpistm fpistm removed this from the 1.8.0🎄 🎅 milestone Nov 27, 2019
@fpistm fpistm added this to the 1.9.0 milestone Dec 20, 2019
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jan 7, 2020
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@akamensky
Copy link

Are there any updates on this issue? I've got this Adafruit feather with stm32 on it, and it is a bit of inconvenience that I cannot just straight work from Arduino IDE

@matthijskooijman
Copy link
Contributor

There is an initial working, but rough, version at #710. I've been using that, along with some custom board files to use dfu-util, for a while now (so I'm not sure if that PR works out of the box yet, but it certainly works).

@fpistm
Copy link
Member

fpistm commented Jan 22, 2020

It works but it is not enough generic and I would avoid the backup register usage.

@fpistm fpistm removed this from the 1.9.0 milestone Jan 31, 2020
matthijskooijman pushed a commit to 3devo/Arduino_Core_STM32 that referenced this issue Sep 3, 2020
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Sep 17, 2020
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Sep 18, 2020
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Sep 18, 2020
Fixes stm32duino#706

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@ramboerik
Copy link
Contributor

Hi @fpistm !

What is the status of this feature? I see that you have pushed some code after your last comment that seems to solve it.

@fpistm
Copy link
Member

fpistm commented May 1, 2021

I have to rebase and test. But IIWR I have some dev to do.

@ramboerik
Copy link
Contributor

Thanks for the info. It would be a nice feature to have 👍

@BCsabaEngine
Copy link

BCsabaEngine commented Jun 23, 2021

It would be a great option for testing (test upload etc) with strange sideeffects too. When production upload, I can press the boot0 button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants