Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ch32v003fun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Horn
ch32v003fun
Commits
5903f6ae
Commit
5903f6ae
authored
2 years ago
by
cnlohr
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for minichlink
parent
38479bc1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
minichlink/99-WCH-LinkE.rules
+1
-0
1 addition, 0 deletions
minichlink/99-WCH-LinkE.rules
minichlink/Makefile
+1
-1
1 addition, 1 deletion
minichlink/Makefile
minichlink/README.md
+29
-0
29 additions, 0 deletions
minichlink/README.md
with
31 additions
and
1 deletion
minichlink/99-WCH-LinkE.rules
0 → 100644
+
1
−
0
View file @
5903f6ae
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="8010", GROUP="plugdev", MODE="0666"
This diff is collapsed.
Click to expand it.
minichlink/Makefile
+
1
−
1
View file @
5903f6ae
...
...
@@ -9,7 +9,7 @@ minichlink : minichlink.c
gcc
-o
$@
$^
$(
LDFLAGS
)
$(
CFLAGS
)
install_udev_rules
:
echo
"SUBSYSTEMS==
\"
usb
\"
, ATTRS{idVendor}==
\"
1a86
\"
, ATTRS{idProduct}==
\"
8010
\"
, GROUP=
\"
plugdev
\"
, MODE=
\"
0666
\"
"
>
/etc/udev/rules.d/
99-qch-LinkE.rules
cp
99-WCH-LinkE.rules
/etc/udev/rules.d/
service udev restart
clean
:
...
...
This diff is collapsed.
Click to expand it.
minichlink/README.md
0 → 100644
+
29
−
0
View file @
5903f6ae
# minichlink
A free, open mechanism to use the CH-LinkE $4 programming dongle for the CH32V003.
If on Linux, be sure to type make sure to install the
`99-WCH-LinkE.rules`
build rule to
`/etc/udev/rules.d/`
On Windows, if you need to you can install the WinUSB driver over the WCH interface 1.
The exe here is about 12kB and contains everything except for the libusb driver. In Linux you need
`libusb-1.0-dev`
.
## Usage
```
Usage: minichlink [args]
single-letter args may be combined, i.e. -3r
multi-part args cannot.
-3 Enable 3.3V
-5 Enable 5V
-t Disable 3.3V
-f Disable 5V
-r Release from reest
-R Place into Reset
-D Configure NRST as GPIO **WARNING** If you do this and you reconfig
the SWIO pin (PD1) on boot, your part can never again be programmed!
-d Configure NRST as NRST
-w [binary image to write]
-o [memory address, decimal or 0x, try 0x08000000] [size, decimal or 0x, try 16384] [output binary image]
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment