[CH32VM00X] Support TSSOP20 variants ch32v002f4 ch32v006f8 #200
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently I acquired some CH32V002 and CH32V006 chips in a TSSOP20 package. Since they share the same pinout as the CH32V003, I think they can be useful upgrades for V003 projects. Based on the V006 QFN32 variant K8U6 this PR adds support for the V002 and V006 in TSSOP20 packages.
The V006 has 62KB flash, which makes it a good candidate for debugging V003 projects. I included some handy information such as Arduino pin numbers and installation instructions in
variants/CH32VM00X/README.md
.Note: This PR is not 100% complete but works for me and may be useful for others. It adds peripheral selection from the IDE menu only for certain chips. For others it may break compilation/uploading, so please be selective and know what you want.
To make it useful this PR includes some changes derived from other PR's:
|| defined(CH32VM00X)
to support I2C and SPIUnfortunately I don't have the full range of CH32 chips in my collection. I've only implemented support for the chips that I could test. The README gives some further info about this and other known issues.