Closed chihiro1234567 closed 12 months ago
Thanks for your report. This is caused by missing reattach after a successful flash.
Could you check if it fixed?
I've tested on my nanoCH32V203(CH32V203C8T6) and FlappyBoard(CH32V203G6U6) for the blinky example.
Thanks for fix. I tried again.
> cargo install --git https://github.com/ch32-rs/wlink
> wlink flash --chip CH32V20X --address 0x08000000 ./firmware.bin
08:22:21 [INFO] WCH-Link v2.9 (WCH-LinkE-CH32V305)
08:22:21 [INFO] Attached chip: CH32V20X(0x20320500)
08:22:21 [INFO] Chip UID: cd-ab-6d-76-55-bc-8f-de
08:22:21 [INFO] Flash protected: false
08:22:21 [INFO] RISC-V ISA: Some("RV32ACIMUX")
08:22:21 [INFO] RISC-V arch: Some("WCH-V4B")
08:22:21 [INFO] Read ./firmware.bin as Binary format
08:22:21 [INFO] Flashing 624 bytes to 0x08000000
08:22:21 [INFO] Flash done
08:22:22 [INFO] Now reset...
08:22:22 [WARN] Chip already attached
08:22:22 [INFO] Attached chip: CH32V20X(0x20320500)
08:22:22 [INFO] Resume executing...
The error no longer occurs. I think that's good.
When flashing to the chip with wlink, 'DMI Status Failed' is displayed. (Sometimes it does not show up)
After the reset instruction, waiting for a return and no response? I guess so. If so, is there a problem with the circuit? I am having trouble finding an example that does not use a development board.
The schematic is as follows.