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

Config Reset and DFU on the same Switch #14

Open
MicroMarty opened this issue Jan 12, 2025 · 1 comment
Open

Config Reset and DFU on the same Switch #14

MicroMarty opened this issue Jan 12, 2025 · 1 comment

Comments

@MicroMarty
Copy link

Is it possible, without changing the code, to combine the two functions of resetting the configuration and entering DFU mode on the same tactile switch?
If pressed during boot, it starts in DFU mode; if pressed while the system is running, the configuration is restored.
I made a quick diagram to illustrate this, and I'll try to test it with what I have.
Thanks!

SCH_STM32_DualRoleSwitch

@CShark
Copy link
Owner

CShark commented Jan 13, 2025

That should work I think, as long as NRST is not involved. The Boot0 is default-low and only registers a high during power on, while the reset is also default low and only registers a high when booted with boot0 low, so I don't see why this shouldn't work.

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

No branches or pull requests

2 participants