mirror of https://github.com/ch32-rs/wlink.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
2 years ago
|
# CH32V003
|
||
|
|
||
|
- [x] Flash support
|
||
|
- [x] Memory dump support
|
||
|
- [ ] Reset / Resume
|
||
|
|
||
|
```text
|
||
|
SWDIO <-> D1/DIO@MCU, PD1
|
||
|
GND <-> GND@MCU
|
||
|
3V3 <-> 3V3@MCU (No need if you connect your MCU board with USB-C power supply)
|
||
|
```
|
||
|
|
||
|
```console
|
||
|
> wlink -v flash ./firmware.bin`
|
||
|
13:41:49 [INFO] WCH-Link v2.8 (WCH-LinkE-CH32V305)
|
||
|
13:41:49 [INFO] attached chip: CH32V003(0x00300500)
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: Chip UID: cd-ab-80-17-48-bc-95-7f
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: flash protected: false
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: SRAM CODE mode: 3
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: already halted
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: RISC-V core version: Some("WCH-V2A")
|
||
|
13:41:49 [INFO] flash 860 bytes
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: Code start address 0x08000000
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: flash op written
|
||
|
13:41:49 [DEBUG] (1) wlink::operations: fastprogram done
|
||
|
13:41:49 [INFO] flash done
|
||
|
13:41:50 [INFO] now reset...
|
||
|
13:41:51 [INFO] resume executing...
|
||
|
13:41:51 [WARN] resume fails
|
||
|
```
|