Skip to content

Firmware for CH32V003 that's compilable with standard, open-source RISC-V GCC.

Notifications You must be signed in to change notification settings

maxgerhardt/ch32v003-vanilla-gcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ch32v003-vanilla-gcc

Firmware for CH32V003 that's compilable with standard, open-source RISC-V GCC.

Use https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/tag/v12.2.0-3/

Adapt path in build.bat.

Critical chagnes to make the startup file and Core RISC-V source compile is to add

#if __GNUC__ > 10
".option arch, +zicsr\n"
#endif

in C code using asm instructions (for ones doing CSRW instructions and related), and similiarly doing

#if __GNUC__ > 10
.option arch, +zicsr
#endif

in the startup file.

About

Firmware for CH32V003 that's compilable with standard, open-source RISC-V GCC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages