Skip to content

CH59x: initial support in minichlink through "unknown-chip-type" #574

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

Closed
wants to merge 1 commit into from

Conversation

biemster
Copy link
Contributor

This PR is to get basic support for ch59x in minichlink. Flashing works and terminal as well so it's quite usable like this already. Further research is needed to get this chip a first class citizen in minichlink but I think it's good to get this out so people can already use the basic functionality.

@biemster biemster marked this pull request as draft March 22, 2025 18:05
@biemster
Copy link
Contributor Author

biemster commented Mar 22, 2025

So the terminal works like this, but flashing not. For the time being flashing over swdio needs to be done using wlink flash <.bin> --speed medium.

@cnlohr
Copy link
Owner

cnlohr commented Mar 25, 2025

Any chance you could run this to ground? Chances are it's some strange combination of the flash and block size controls.

@biemster
Copy link
Contributor Author

Still working on it. I created https://github.com/biemster/ch592_minimal/blob/main/wchlink.py to easily test the commands, and use tshark -i usbmon1 -Y usb.capdata -T fields -e usb.capdata to see how ch32-rs is doing it.

@biemster
Copy link
Contributor Author

biemster/ch592_minimal can write to flash now, I will make an example with this in ch32fun shortly. After that we can try to figure out how to do that with direct register writes in the debugger.

@cnlohr
Copy link
Owner

cnlohr commented Apr 15, 2025

@biemster Do you want to do anything with this draft?

@biemster
Copy link
Contributor Author

@biemster Do you want to do anything with this draft?

effort is picking up in this area, mostly with monte joining. I think this can be closed for now though since it will not be used like this.

@biemster biemster closed this Apr 16, 2025
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.

2 participants