Skip to content

nikhil-robinson/ch32x035

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ch32x035

An open source development environment (tooling, headers, examples) for the CH32x035. All the examples are taken from openwch/ch32x035

Getting Started

GCC

These examples uses the customised MRS_Toolchain gcc compiler which supports customized hardware stacking function,

 __attribute__((interrupt("WCH-Interrupt-fast"))).

This statement tells GCC to perform a hardware push operation.

Build

cd examples/gpio
make
make flash

FLASHING

The elf can be flashed to the CH32X035 using wchisp. (Enter the CH32X035 bootloader by holding down BOOT when connecting it using USB).
The SDK for CH32X035 from the openwch EVT is vendored under sdk/. (Encoding has been changed from gbk to utf-8).

Footnotes/links

https://www.wch-ic.com/products/CH32X035.html https://github.com/openwch/chch32x035592 https://www.wch.cn/downloads/CH32X035RM_PDF.html https://www.wch.cn/downloads/CH32X035DS0_PDF.html http://www.wch-ic.com/downloads/QingKeV4_Processor_Manual_PDF.html