Skip to content
Snippets Groups Projects
user avatar
cnlohr authored
Switch over to using a .c file instead of a .S file for the startup code.  Helps make order-of-compiling not matter.
7eba67a8
History
Name Last commit Last update
..
Makefile
README.md

General Tooling Notes For Using Official EVT With GCC but without Moun River

This shows how to build the CH32V003 demo binaries without the horrifying MounRiver Studio.

Steps to run an EVT sample

  1. Install WCHLinkDrv_WHQL_S.exe from Wch-LinkUtil/Drv_Link
  2. Copy contents of EVT (CH32V003EVT.ZIP) "EXAM" Folder in to the EVT folder.
  3. On WSL or Debian based OSes apt-get install build-essential libnewlib-dev gcc-riscv64-unknown-elf
  4. cd into EVT on WSL or Linux
  5. Type make
  6. Open Wch-LinkUtil
  7. Select series "CH32V00X" from pull-down.
  8. Open the produced .hex file.
  9. Target->Program (F10)
  10. Target->Reset (F12)

Profit.