Skip to content

biemster/ch592_minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ch592 minimal

WCH CH592/1 minimal example without SDK.
Just the pointer #defines in CH592SFR.h from the official SDK, a linker script and the startup assembly. The C source flashes the LED on pin 8 of the WeAct module, and sleeps in between.

compile

For compilation GCC riscv64-elf and WCH MounRiver Studio are tested, with the latter producing a 150 byte smaller firmware.

flash

The resulting .bin can be flashed with the awesome chprog.py, which is used in the flash and f targets in the Makefile. Also .hex is produced, and any flasher of your choice can be used.

Alternatively the supplied ch59x_config.py can be used to switch on the debug interface, after which wchlink.py can be used with a WCH-linkE programmer to --flash or --reset the device, and monitor the debug output using --terminal.

About

WCH CH592/1 minimal example without SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published