Flashing .bin for WCH

I need to flash a bin file to a ch32v203 and I use embeetle on Linux. I use swd and Wch-LinkE. How do I change so setting or in a file so embeetle flashes the bin file and not the elf file? Maybe there is a flash script somewhere that I can copy and change?

I have beginners luck.
change ELF_FILE to BIN_FILE in the config/dashboard.mk in the flash section.
Like this:

# Finally, launch OpenOCD:
flash: $(BINARIES) print_flash
	"$(FLASHTOOL)" -f $(OPENOCD_PROBEFILE) \
                   -f $(OPENOCD_CHIPFILE) \
                   -c "program {$(BIN_FILE)} verify reset; shutdown;"

Maybe this helps someone.

2 Likes

Hi @Tom ,
Welcome to Embeetle, and thank you for posting here!

Apparently I’m one day late. You already figured it out. Great!

Cheers,
Kristof Mulier
Co-founder