Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appears to work with CH32X035G8U6 #38

Open
benpye opened this issue Aug 5, 2023 · 1 comment
Open

Appears to work with CH32X035G8U6 #38

benpye opened this issue Aug 5, 2023 · 1 comment
Assignees

Comments

@benpye
Copy link

benpye commented Aug 5, 2023

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!

@andelf andelf self-assigned this Aug 7, 2023
@andelf
Copy link
Contributor

andelf commented Aug 7, 2023

@benpye Thanks for your reminder. I'll update the documents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants