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

Link-E Support for non-ch32v003 chips #72

Closed
cnlohr opened this issue May 6, 2023 · 3 comments
Closed

Link-E Support for non-ch32v003 chips #72

cnlohr opened this issue May 6, 2023 · 3 comments

Comments

@cnlohr
Copy link
Owner

cnlohr commented May 6, 2023

@bmx ran into an issue with this - trying to use it on CH32V307 boards.

I did not know it even could run on a 307. I don't mind trying to support this some moving forwards, but I think I need a way to identify if it's a 307 or a 003? Do you know much about this? Are the debug protocols similar?

6f896b6

Side-note: If we can discuss this on the Discord for this project that would be helpful.

@cnlohr
Copy link
Owner Author

cnlohr commented May 6, 2023

I have modified it so if it detects a non-003 it tries to go into the old flashing mode. I "think" this should fix you, BMX. 249f5d2

@bmx
Copy link
Contributor

bmx commented May 8, 2023

Found WCH LinkE
Part Type (A): 0x0617 (This is the capacity code, in KB)
Part UUID    : 00-26-10-00-00-ba-06-71
PFlags       : 23-48-76-05
Part Type (B): e4-59-a8-e9
Interface Setup
Fault writing memory (DMABSTRACTS = 08000302) (Execption executing Abstract Command) DMSTATUS: 00030382
Fault reading device

using this commit.

We need to disambiguate the use of ReadBinaryBlob which is meant to read-many-bytes on the target, not dealing with the proprietary blob.

@cnlohr
Copy link
Owner Author

cnlohr commented May 8, 2023

I believe this is now resolved. Should work with the 003 and 307 among others.

@cnlohr cnlohr closed this as completed May 8, 2023
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