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

Check if the code flash is protected #81

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Thom-de-Jong
Copy link
Contributor

This pull request contains the following additions:

  • Add a check to the erase and flash commands to determine if the code flash is protected, and give a hint on what to do. (Verify failed for CH32V208WBU6 #29)
  • Add a command to protect the code flash wchisp config protect
  • Update deps (serialport 4.5 -> 4.7)

@Thom-de-Jong
Copy link
Contributor Author

Note: After an unprotect, the device needs to be reset in order for it to take effect.
It is not possible to do a "force" option in order to create an "unprotect -> flash -> protect" sequence.

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

Successfully merging this pull request may close these issues.

1 participant