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

Add CH32L103 support #70

Merged
merged 22 commits into from
Sep 15, 2024
Merged

Conversation

21km43
Copy link
Contributor

@21km43 21km43 commented Sep 11, 2024

  • Update README
  • Add MCUs (CH32L103F8P6, CH32L103F8U6, CH32L103G8R6, CH32L103K8U6, CH32L103C8T6, CH32L103C8T6 EVT)
  • Update tool-wchisp
  • Update tool-openocd-riscv-wch
  • Update each SDK and OS

@maxgerhardt maxgerhardt added enhancement New feature or request mcu labels Sep 11, 2024
@maxgerhardt
Copy link
Member

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

@maxgerhardt
Copy link
Member

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
Copy link
Contributor Author

21km43 commented Sep 14, 2024

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
Copy link
Member

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.

@21km43 21km43 changed the title add ch32l103 support Add CH32L103 support Sep 15, 2024
@maxgerhardt
Copy link
Member

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
Copy link
Member

maxgerhardt commented Sep 15, 2024

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 21km43 marked this pull request as ready for review September 15, 2024 10:33
@maxgerhardt maxgerhardt merged commit e97e8b1 into Community-PIO-CH32V:develop Sep 15, 2024
78 checks passed
@21km43
Copy link
Contributor Author

21km43 commented Sep 15, 2024

Thank you for helping development and sharing so much advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mcu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants