Community-PIO-CH32V / platform-ch32v

PlatformIO platform for CH32V RISC-V chips (CH32V003, CH32V103, CH32V20x, CH32V30x, CH32X035) and CH56x, CH57x, CH58x, CH59x
Apache License 2.0
237 stars 37 forks source link

Support wchisp uploder #14

Closed maxgerhardt closed 1 year ago

maxgerhardt commented 1 year ago

When the chip is in DFU bootloader mode (BOOT0:VCC, BOOT1:GND), all but CH32V00x chips expose a USB device that can be used for uploading, and all chips also feature a UART bootlaoder (running in parallel).

A tool that could support uploading to these chips is https://github.com/ch32-rs/wchisp.

maxgerhardt commented 1 year ago

We are currently blocked to use this tool per https://github.com/ch32-rs/wchisp/issues/22 and https://github.com/ch32-rs/wchisp/issues/24.

maxgerhardt commented 1 year ago

We are also blocked through https://github.com/ch32-rs/wchisp/issues/26 since flashing isn't actually working although it works with WCH tools and the chip is unlocked.

maxgerhardt commented 1 year ago

Integration happened in https://github.com/Community-PIO-CH32V/platform-ch32v/commit/945c679971cafc6de3327f80e7aaf81412bb4fff, now

upload_protocol = isp

is available in the platformio.ini for using WCHISP.

Updated project tasks as well with what WCHISP can do

grafik

upload_protocol = wch-link (default) will still use WCH-Link.

All binary packages are pending in the PIO registry.

maxgerhardt commented 1 year ago

Registry packages were approved and switched to in https://github.com/Community-PIO-CH32V/platform-ch32v/commit/1edc2f84e366423503ca56399f90ea5ad841e03a.