-
Notifications
You must be signed in to change notification settings - Fork 31
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
wchisp flash is not work as expected #26
Comments
I can reproduce this too. |
@hc7 I used wchisp to successfully flash my CH582. So this must be some bug introduced recently. After I downloaded the windows version of WCHISPTool. Then I realized, this is caused by CFG flags. I changed default reset value of CFG flag recently to help developing a wch-link tool, and thus introduced a wrong cfg value. |
|
|
That's OK. your devices should be successfully flashed. |
ffffffffffffffff4f3f0f4d should be a valid state. |
Sadly I'm having the same problem with aa CH32V307, after flashing, verification just fails. Latest commit. Verbose logs: https://pastebin.com/Mq0WF7Zn
When I use native WCHISP tool on Windows with original driver
|
@maxgerhardt The official version has an extra "Deprotect succeed" log. |
Sadly the same: https://pastebin.com/ubUAUHW6 |
🥲 I'll check this following Monday. |
I had some experiments with the WCH-Link protocol at https://github.com/ch32-rs/wchisp |
@maxgerhardt
Or flash with a large firmware. Then it should back to normal. It seems the MCU sometimes reports verification results with an 0x0e response. |
Really weird. I just flashed the MCU again (with verify) and it did not error out in verification. No matter if bigger or smaller firmware. Same size firmware of 9 sectors for the smaller one with which it failed earlier. Tried at least 20 flashes now and all worked. Hm., I guess I can't complain now. |
Yes. There might be some hidden status.🤣 |
Hello, please explain why I can't flash wch583:
Is there wome way to understand what problem here?
Log:
The text was updated successfully, but these errors were encountered: