Open benpye opened 1 year ago
Poorly documented but the CH32X035 also has a USB bootloader and wchisp seems to work:
% sudo ~/.cargo/bin/wchisp --verbose info 22:38:12 [DEBUG] (1) wchisp::transport::usb: Found USB Device Bus 001 Device 001: ID 4348:55e0 22:38:12 [DEBUG] (1) wchisp::transport: => a11200 00004d4355204953502026205743482e434e 22:38:12 [DEBUG] (1) wchisp::transport: <= a1000200 5623 22:38:12 [DEBUG] (1) wchisp::transport: => a11200 00004d4355204953502026205743482e434e 22:38:12 [DEBUG] (1) wchisp::transport: <= a1000200 5623 22:38:12 [DEBUG] (1) wchisp::flashing: found chip: CH32X035G8U6[0x5623] 22:38:12 [DEBUG] (1) wchisp::transport: => a70200 1f00 22:38:12 [DEBUG] (1) wchisp::transport: <= a7001a00 1f00a55affffffffffffffffffff00020400cdab703848bc85a0 22:38:12 [DEBUG] (1) wchisp::flashing: read_config: a55affffffffffffffffffff00020400cdab703848bc85a0 22:38:12 [INFO] Chip: CH32X035G8U6[0x5623] (Code Flash: 64KiB) 22:38:12 [INFO] Chip UID: CD-AB-70-38-48-BC-85-A0 22:38:12 [INFO] BTVER(bootloader ver): 02.40 22:38:12 [DEBUG] (1) wchisp::transport: => a70200 1f00 22:38:12 [DEBUG] (1) wchisp::transport: <= a7001a00 1f00a55affffffffffffffffffff00020400cdab703848bc85a0 22:38:12 [INFO] Current config registers: a55affffffffffffffffffff00020400cdab703848bc85a0 RDPR_USER: 0xFFFF5AA5 [7:0] RDPR 0xA5 (0b10100101) `- Unprotected [16:16] IWDG_SW 0x1 (0b1) `- IWDG enabled by the software, and disabled by hardware [17:17] STOP_RST 0x1 (0b1) `- Disable [18:18] STANDBY_RST 0x1 (0b1) `- Disable, entering standby-mode without RST [20:19] RST_MOD 0x3 (0b11) `- Disable RST alternative function, use PA21/PC3/PB7 as GPIO DATA: 0xFFFFFFFF [7:0] DATA0 0xFF (0b11111111) [23:16] DATA1 0xFF (0b11111111) WRP: 0xFFFFFFFF `- Unprotected
Edit: Ah I see you added support a couple weeks ago - it's just the readme that isn't updated!
@benpye Thanks for your reminder. I'll update the documents.
Poorly documented but the CH32X035 also has a USB bootloader and wchisp seems to work:
Edit: Ah I see you added support a couple weeks ago - it's just the readme that isn't updated!