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
3b3f9406
Commit
3b3f9406
authored
1 year ago
by
cnlohr
Browse files
Options
Downloads
Patches
Plain Diff
Update comments about NRST mode.
parent
92a51dd4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
minichlink/README.md
+15
-11
15 additions, 11 deletions
minichlink/README.md
minichlink/minichlink.c
+1
-1
1 addition, 1 deletion
minichlink/minichlink.c
with
16 additions
and
12 deletions
minichlink/README.md
+
15
−
11
View file @
3b3f9406
...
...
@@ -14,16 +14,20 @@ The exe here is about 12kB and contains everything except for the libusb driver.
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]
-3 Enable 3.3V
-5 Enable 5V
-t Disable 3.3V
-f Disable 5V
-u Clear all code flash - by power off (also can unbrick)
-b Reboot out of Halt
-e Resume from halt
-h Place into Halt
-D Configure NRST as GPIO
-d Configure NRST as NRST
-w [binary image to write] [address, decimal or 0x, try0x08000000]
-r [output binary image] [memory address, decimal or 0x, try 0x08000000] [size, decimal or 0x, try 16384]
Note: for memory addresses, you can use 'flash' 'launcher' 'bootloader' 'option' 'ram' and say "ram+0x10" for instance
For filename, you can use - for raw or + for hex.
-T is a terminal. This MUST be the last argument if used.
```
This diff is collapsed.
Click to expand it.
minichlink/minichlink.c
+
1
−
1
View file @
3b3f9406
...
...
@@ -407,7 +407,7 @@ help:
fprintf
(
stderr
,
" -r [output binary image] [memory address, decimal or 0x, try 0x08000000] [size, decimal or 0x, try 16384]
\n
"
);
fprintf
(
stderr
,
" Note: for memory addresses, you can use 'flash' 'launcher' 'bootloader' 'option' 'ram' and say
\"
ram+0x10
\"
for instance
\n
"
);
fprintf
(
stderr
,
" For filename, you can use - for raw or + for hex.
\n
"
);
fprintf
(
stderr
,
" -T is a terminal. This MUST be the last argument
. You MUST have resumed or
\n
"
);
fprintf
(
stderr
,
" -T is a terminal. This MUST be the last argument
if used.
\n
"
);
return
-
1
;
...
...
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