-
Notifications
You must be signed in to change notification settings - Fork 32
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
SDI not working with WCH-Link v2.11 (WCH-LinkE-CH32V305) #41
Comments
I've seen this error while developing the feature.
|
Could you please provide a working example of SDI print? After a while I get a bricked mcu (the second time!), so that I have to revert to the original wch link utility to " clear all code flash - by power off". (BTW, is it possible to add such a feature to this wlink?) |
btw, have you checked this feature with v2.11? |
Checkout: https://github.com/ch32-rs/ch32v00x-hal/blob/main/src/debug.rs > wlink erase --help
Erase flash
Usage: wlink erase [OPTIONS]
Options:
--method <METHOD>
Erase mode
[default: default]
Possible values:
- power-off: Erase code flash by power off, the probe will power off the target chip
- pin-rst: Erase code flash by RST pin, the probe will active the nRST line. Requires a RST pin connection
- default: Erase code flash by probe command
.... |
|
ha! I should have checked that earlier (i mean erase --help) |
basically, the following code in main.c should produce some results, shouldn't it?
but I get the same 'er computer software' message (sometimes different part of it, but anyway, not what I expect) |
I have no idea what was the culprit. Probably, some segfault because of misuse of printf library. But now it works as expected. Now people ask if it's possible to use the scan functionality with SDI ;-) You know, the more you have, the more you want. |
here are the last lines:
(found these lines in the end of WCH-LinkE-APP-IAP.bin)
The text was updated successfully, but these errors were encountered: