Skip to content

Easy instructions and examples for build and flash programs for WCH32 series RISC-V MCUs on Apple Silicon Mac.

Notifications You must be signed in to change notification settings

ozturkhuseyin/wch32_macos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wch32_macos

Compile & Flash RISC-V WCH32 MCUs on Apple Silicon.

Examples

  • CH32V003
  • CH32V307

Preparing Toolchains

First example on CH32V003 board

  • Clone this repository to your computer

    git clone https://github.com/ozturkhuseyin/wch32_macos.git
    
  • Change toolchain path for yourself in CH32V003F4P6_template project

    vim CH32V003F4P6_template/Makefile
    
  • Then change the first line of Makefile for your toolchain path

    WCH_RV_TOOLCHAIN_DIR ?= /path/to/toolchain/directory
    
  • Build CH32V003F4P6_template project

    cd CH32V003F4P6_template
    make all
    
  • Connet WCH-Link to your board then your computer

    make flash_erase
    make flash_program
    make reset
    

    or just

    make upload_program
    

    this builds project, erases flash, programs flash then resets MCU.

TODO

  • Add template projects for other development boards
  • Add OpenOCD flashing
  • Add GDB debug
  • Make a VS Code extension

About

Easy instructions and examples for build and flash programs for WCH32 series RISC-V MCUs on Apple Silicon Mac.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published