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
234 stars 37 forks source link

Add CH32L103 support #70

Closed 21km43 closed 2 months ago

21km43 commented 2 months ago
maxgerhardt commented 2 months ago

Arduino framework package was updated to latest one: https://github.com/Community-PIO-CH32V/arduino_core_ch32

maxgerhardt commented 2 months ago

FYI, an updated tool-wchisp package is now uploaded and will be visible after it has passed review (https://registry.platformio.org/tools/community-ch32v/tool-wchisp/versions).

Does this need a OpenOCD update too from the latest MounRiver version?

21km43 commented 2 months ago

FYI, an updated tool-wchisp package is now uploaded and will be visible after it has passed review (https://registry.platformio.org/tools/community-ch32v/tool-wchisp/versions).

Does this need a OpenOCD update too from the latest MounRiver version?

Yes, let's update both of tool-wchisp and tool-openocd-riscv-wch. Because current version of them does not supports CH32L103 (They don't recognize mcu_type: 0x15 and device_type: 0x25).

maxgerhardt commented 2 months ago

https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch has been updated to the latest version and is instantly available (because I download it straight from the Github). I expect the tool-wchisp package review to take maybe a week from PlatformIO.

maxgerhardt commented 2 months ago

FYI I've updated the CI file to use the new example name.

The new OpenOCD package has also been submitted to the registry for review. Right now when the platform is installed, something valid must be referenced in the platform.json, which will later be dynamically overwritten in the platform.py.

maxgerhardt commented 2 months ago

New tool versions were just approved into the PIO registry. Seems like somebody was working on weekends.

https://registry.platformio.org/tools/community-ch32v/tool-openocd-riscv-wch/versions https://registry.platformio.org/tools/community-ch32v/tool-wchisp/versions

We can remove the link hacks from platform.py with this.

21km43 commented 2 months ago

Thank you for helping development and sharing so much advice!