WCH announces new RISC-V microcontroller that can be programmed with Arduino IDE

Arduino IDE RISC-V

In the last year, WCH has introduced a number of interesting RISC-V microcontrollers . As you know, MCUs based on this open ISA are a big deal compared to ARM, among other things. These include the "10-cent" CH32V003 RISC-V microcontroller with 2KB of SRAM and 16KB of flash memory, and the CH32V307, which boasts more resources (up to 64KB of SRAM and 256KB of flash memory) and additional peripherals.

Until now, these microcontrollers could be programmed in C using the MounRiver IDE or other open-source tools. However, WCH recently announced Arduino IDE support for many of these RISC-V microcontrollers, enabling more people to participate and use the same IDE as for Arduino and other development boards.

The core library for CH32duino works with OpenOCD via the WCH-LINKE hardware to download firmware and debug WCH chips. It also includes a set of riscv-none-embed-gcc tools that support custom RISC-V instructions (half-word and byte compression instruction extensions, hardware stack push/pop functions) present in the WCH RISC-V microcontroller.

The following development kits compatible with the Arduino IDE are currently supported :

  • EVT board CH32V003F4P
  • EVT board CH32V203G8U
  • EVT board CH32X035G8U
  • EVT board CH32V103R8T6_BLACK
  • EVT board CH32V307VCT6_BLACK

All of them with I/O for peripherals ADC, DAC, USART, GPIO, EXTI, SysTick, I2C and SPI.

To use them, you will need to follow these steps :

  1. Add the following link to the field “Additional license plate manager URLs” in the Arduino 2.0 IDE: https://github.com/openwch/board_manager_files/raw/main/package_ch32v_index.json
  2. Next, connect the EVT boards of the WCH CH32 MCU
  3. Select a RISC-V board such as CH32V00x from the Arduino IDE menu as you would with Arduino or compatible boards
  4. And this way you can load the code of the programmed sketch to see it work.

And remember, Arduino IDE is compatible with Windows, Linux, and macOS , although it may require some specific adjustments for each operating system.

More information – Project GitHub site


Add as preferred source in Google