Closed 74th closed 1 year ago
Hi, @74th
cp ./target/riscv32imac-unknown-none-elf/release/ch32v203-demo /some//MRS_Toolchain_Linux_x64_V1.60/OpenOCD/bin/ch32v203-demo.elf
It seems that openocd can only handle pure binary instead of an ELF file.
You can use the following:
riscv64-unknown-elf-objcopy -O binary \
path/to/elf \
firmware.bin
I personally use https://github.com/ch32-rs/wchisp for programming the MCU.
Thanks for the answer! I used the riscv64-unknown-elf-objcopy you mentioned and was able to build and run it. Knowing that I could write via USB, I was also able to write using wchisp. It is convenient!
I will try to use ch32-rs for development. Thank you very much.
Hello. I am interested in this ch32v and rust and very excited about this ch32-rs project. I would like to build and run this ch32v203-demo project.
Sorry for the basic question, but how does this project build and flash? Are there any other steps required? I have a CH32V203 board, WCH-LinkE and MountRiverStudio's openocd. I successes to flash the hex file generated by MountRiverStudio with this openocd.
output