Skip to content

karasevia/ch592-cmake-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project completely based on @sadkotheguest's ch32v307-cmake-vsc-noos-template

CH592 project template

This project provide a functional cmake/ninja project for ch592 MCU using standard RISC-V GCC toolchain with WCH OpenOCD support using wlinke (or wlink) debugger.

Requeriments

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

Build steps

  • Create build directory with mkdir build and move to it (cd build)
  • Generate cmake project using ninja (or your preferred tool): cmake ../ -G Ninja
  • If you prefer gnu make try cmake ../ -G "Unix Makefiles" (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 may found the files firmware.elf.map and firmware.elf.lst containing memory mapping and disassembler of the ELF file

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages