Skip to content

sadkotheguest/ch32v307-cmake-vsc-noos-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CH32V307 NoOS project template

This project provide a functional cmake/ninja project for ch32v307 MCU using standard risc-v gcc toolchain and (for now) WCH openOCD (with wlink and ch32xxx flash support)

Software provides

  • SPL privided by WCH for risc-v rv32imafc using QingKeV4 (a.k.a. RISC-V4F in WCH literature)
  • FPU support (F) and compressed mode support (C)
  • Support RISC-V4F fast stack saving/restore on interrupt without the WCH propietary gcc extensions
  • SVD for register viewer

Requeriments

  • CMake 3.16 or great
  • ninja build tool 1.10.0 or great
  • riscv none embed 8.2.0 or great (from WCH or xpack provider)

Build steps

  • Create build directory with mkdir build and move to this (cd build)
  • Generate cmake project using ninja (or your preferred tool): cmake ../ -G Ninja
  • If you preffer gnu make try cmake ../ -G 'Unix Makefile' or replace to your preferred tool)
  • Launch ninja to build all of code: ninja
  • If all pass ok, the files firmware.elf, firmware.elf.bin and firmware.elf.hex appears in build directory
  • Additionally, you found the files firmware.elf.map and firmware.elf.lst containing memmory mapping and disassembler of the ELF file

About

No OS template of CH32V307 project for Visual Studio Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published