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 unprotect can brick a ch59x #85

Open
biemster opened this issue Mar 4, 2025 · 1 comment
Open

config unprotect can brick a ch59x #85

biemster opened this issue Mar 4, 2025 · 1 comment

Comments

@biemster
Copy link

biemster commented Mar 4, 2025

On a WeAct CH592F, I just tried to config enable-debug and a subsequent config unprotect, but that left me with an inaccessible bootloader. So if this were a CH591 it would be a sure brick since they don't have the swio lines on a pin at all.

I have a linkE arriving so then I could test if the debug interface got activated hopefully, but this command should come with a warning?

@ArcaneNibble
Copy link

If I am understanding the code correctly, unprotect is hardcoded for the protection bytes in the CH32V20x/30x chips and is entirely inappropriate for the CHxxx chips. Those chips seem to instead need the reset_config command.

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