Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from FrBrGeorge/master
Browse files Browse the repository at this point in the history
wch-isp.1 is generated from wch-isp.man, remove it
  • Loading branch information
COKPOWEHEU authored Jun 12, 2024
2 parents 564b8c7 + 95c000c commit 62a1e54
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 158 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.o
*.1
*~
140 changes: 0 additions & 140 deletions wch-isp.1

This file was deleted.

44 changes: 26 additions & 18 deletions wch-isp.man
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Prints a progress during command operation.
Reset the microcontroller after the command is completed.
.TP
.B \-b
Do not read database
Do not read database.
.TP
.B \-f
Ignore if firmware size more than cached flash size (program memory)
Ignore if firmware size more than cached flash size (program memory).
.TP
.B \-F
Ignore if firmware size more than total flash size (program memory + const data memory)
Ignore if firmware size more than total flash size (program memory + const data memory).
.TP
.B \-d
Enable debug information, print raw isp commands sent over USB or COM-port.
Expand All @@ -39,24 +39,31 @@ Prints version information to stdout, then exits.
.B \-h, --help
Prints help message to stdout, then exits.
.TP
.BI \--port= "PORT [baudrate]"
Specify port to connect the device. It may be 'USB' or '/dev/ttyUSB0' or '//./COM2' or something else
.BI \--port= "port [baudrate]"
Specify \fIport\fR to connect the device. It may be \fBUSB\fR or \fB/dev/ttyUSB0\fR or \fB//./COM2\fR or something else.
.TP
.BI \--device= DEV
Test if connected device is DEV and exit if they differ. <DEV> may be read by 'info' option.
Example: --device=CH32V203G8R6
.BI \--device= dev
Test if connected device is \fIdev\fR and exit if they differ. \fIdev\fR may be read by \fBinfo\fR option.
.RB Example:\ --device=CH32V203G8R6
.TP
.BI \--uid= uid
Select the microcontroller that matches the uid.
Select the microcontroller that matches the \fIuid\fR.
.TP
.BI \--reset= pin
Specify COM-port control pin as RESET signal. May be RTS, DTR, nRTS or nDTR
.BI \--reset= number
Specify COM-port control pin \fInumber\fR as RESET signal. May be
.BR RTS ,\ DTR ,\ nRTS\ or\ nDTR .
.TP
.BI \--boot0= pin
Specify COM-port control pin as Boot0 signal. May be RTS, DTR, nRTS or nDTR
.BI \--boot0= number
Specify COM-port control pin \fInumber\fR as Boot0 signal. May be
.BR RTS ,\ DTR ,\ nRTS\ or\ nDTR .
.TP
.BI \--address= addr
Start writing from addr
Start writing from
.IR addr .
.TP
.BI \--database-path= directory
Search device info in specified
.IR directory .
.SH COMMANDS
.TP
.B list
Expand All @@ -76,17 +83,18 @@ content against the flash content.
Erase all the flash content (not implemented yet).
.TP
.B unlock
Disable flash write protection (modifies the chip configuration) (not implemented yet)
Disable flash write protection (modifies the chip configuration) (not implemented yet).
.TP
.B info
Print a device information and memory dump of the chip configuration.
.TP
.BI optionbytes " 'CMD'"
change optionbytes
example: ./wch-isp optionbytes 'RDPR=0xA5, DATA0 = 0x42'
Change optionbytes.
Example:
.B ./wch-isp optionbytes 'RDPR=0xA5, DATA0 = 0x42'
.TP
.BI optionshow " 'CMD'"
show changes after apply CMD to optionbytes; Do not write
Show changes after applying \fICMD\fR to optionbytes; do not write.
.SH EXAMPLES
.PP
List detected devices:
Expand Down

0 comments on commit 62a1e54

Please sign in to comment.