Skip to content

An open source development environment (tooling, headers, examples) for the CH592.

Notifications You must be signed in to change notification settings

nikhil-robinson/ch592

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CH592

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

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 CH592 using wchisp. (Enter the CH592 bootloader by holding down BOOT when connecting it using USB).
The SDK for CH592 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/CH592.html https://github.com/openwch/ch592 https://github.com/Suniasuta/CH592_Makefile_Template https://github.com/rgoulter/ch592-ble-hid-keyboard-example https://github.com/cnlohr/ch32v003fun

About

An open source development environment (tooling, headers, examples) for the CH592.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published