Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Build firmware

$ zig build -Doptimize=ReleaseSmall

$ zig build
# will make ReleaseMode and not fit to the FLASH memory.

Disassemble

$ riscv64-unknown-elf-objdump --disassemble-all ELF_FILE > DISASSEMBLED_FILE

Flash firmware

CH32V103 and CH32V203

  • RUST: wchisp
  • C: wch-isp
    • libusb-1.0-0-dev is required to compile. Make sure not libusb-dev but libusb-1.0-0-dev.
#$ wchisp flash BIN_FILE
$ wch-isp -pr flash BIN_FILE

CH32V003

$ wlink flash --address 0x08000000 BIN_FILE