cnlohr / ch32v003fun

Open source minimal stack for the ch32 line of WCH processors, including the ch32v003, a 10¢ 48 MHz RISC-V Microcontroller - as well as many other chips within the ch32v/x line.
MIT License
893 stars 142 forks source link

Support for new CH32V006 / CH32V005 boards? #315

Open brian-smith-github opened 4 months ago

brian-smith-github commented 4 months ago

Hi again. Do you know if support will be added for the upcoming new versions of the chip - e.g. CH32V006 and CH32V005. Both have more ram/flash, and a new version of the RISC-V core that now includes hardware-multiply (zmmul extension). Thanks.

cnlohr commented 4 months ago

We intend to add support as soon as we can get them in-hand. Making use of the zmmul instruction will require at least GCC 12, which we don't yet have a recommended Windows GCC build yet, but for Linux we hope to support the platforms shortly after we get chips!

TommyMurphyTM1234 commented 3 months ago

We intend to add support as soon as we can get them in-hand. Making use of the zmmul instruction will require at least GCC 12, which we don't yet have a recommended Windows GCC build yet

Hi @cnlohr - could you use the Embecosm or xPack binary builds perhaps?

Note that the xPack toolchain uses a different prefix to the "usual" one - riscv-none-elf-* rather than riscvXX-unknown-elf-* - in case that's an issue (e.g. for your Makefiles):

If those binary builds are not adequate and you need a specific build then, in my experience, using crosstool-NG to do a Canadian Cross build (build host = Linux, run host = Windows, target ISA = RISC-V) of the toolchain for Windows works well - e.g.:

If I can be of any assistance let me know.