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 · 4 comments
Open

Appears to work with CH32X035G8U6 #38

benpye opened this issue Aug 5, 2023 · 4 comments
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.

@froscon2024
Copy link
Contributor

@benpye
Could you tell on what PCB hardware you have tested this to add this hardware design as reported working in the readme?

@andelf
Copy link
Contributor

andelf commented Oct 3, 2024

@froscon2024
Using the chip name is a good way to clarify usability.
I have a plan to add a "Dev Board Base" section to https://github.com/ch32-rs/awesome-ch32. This could be helpful for developers looking to get started with WCH MCUs, as it would provide information on available development boards for different chip families.

@froscon2024
Copy link
Contributor

I understand your plan.
I created few seconds ago a PR with the current style to add CH549 to the readme here. I would say lets get this merged and additional upcoming ones as long as the PCB-list is missing in https://github.com/ch32-rs/awesome-ch32
I plan to also reorganize the list in the readme to make it sorted alphabetical.

The style i use at the moment is:
[x] Chip name without the additional letter at the end

  • (manufacturer) (model) (chip name with letter at the end) (Link to picture, schematic or product website)

When you have created the PCB-List in https://github.com/ch32-rs/awesome-ch32 you can move all the lines from this repo here that look like

  • (manufacturer) (model) (chip name with letter at the end) (Link to picture or schematic)
    and you would be left with the
    [x] Chipname without the additional letter at the end

And this should be really simple and straight on to move the things over.

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

3 participants