A latest X submit by Patrick Yang, CTO of WCH (Nanjing Qinheng Microelectronics), demonstrated a video displaying off help for Linux and their CH32 Arduino Core. This announcement generated curiosity on social media as a result of Arduino help for the CH32 has lastly come. Nevertheless, some CH32 chips already had Arduino IDE help for a number of months!
You would possibly acknowledge the names WCH or CH32 from a few locations. WCH manufactures the favored USB-to-serial chip ch340. Additionally, we not too long ago wrote a couple of Teeny USB-C MIDI Synth and OLEDscope. Each of those initiatives used WCH’s CH32V003. This 32-bit RISC-V microcontroller has gained notoriety as a result of it solely prices 10 cents!
These initiatives depend on a command-line toolset to compile their code. Alternatively, WCH presents MounRiver Studio. This Eclipse-based IDE included compiler and programmer instruments modified by WCH to help their microcontrollers. Nevertheless, that IDE is just obtainable for Home windows and Linux. Additionally, customers should obtain separate help packages for every chip or board.
WCH launched Arduino IDE board help on the finish of Could 2023. This preliminary package deal offered the Arduino library core for 2 WCH analysis boards. It included the modified variations of OpenOCD (OpenOCD_WCH) and xPack RISC-V Embedded GCC (risc-none-embed-gcc) used with MounRiver.
At first, arduino_core_ch32 solely supported Home windows, regardless of re-using the prevailing toolchain. When WCH launched an Arduino IDE tutorial in October 2023, one YouTube commenter requested for Linux help. They didn’t have to attend lengthy! About two months later, in late December 2023, WCH launched model 1.0.4 of the Arduino IDE Assist package deal. This latest model provides help for Linux and macOS. This model additionally consists of updates that considerably enhance the chips/growth boards supported by the package deal.
https://github.com/openwch/board_manager_files/uncooked/essential/package_ch32v_index.json
You may set up CH32 help within the Arduino IDE for Home windows, macOS, and Linux by including their board URL to the board supervisor. For an inventory of supported boards or when you run into hassle with any of these platforms, examine the arduino_core_ch32 GitHub repository. There are some notes for every working system for recognized points.