Skip to content

2. WCHISPStudio

Carlos Alatorre edited this page Jan 4, 2023 · 3 revisions

Downloading and Installing WCHISPStudio software

Currently, downloading sketches to the board is not compatible with the Windows OS, however, there is a different way to do it, using the WCHISPStudio software.

This software is made and developed by WCH, first, you have to download the software from the following link: WCHISPStudio

Once the package is downloaded it has to be installed as regular Windows software.

WCHISPStudio Overview

When opening it for the first time you will see a window like this:

Screenshot_20221230_115951

On the right side of the screen there are five blue/white squares, click on the 4th from the top to the bottom.

Screenshot_20221230_115951

A new tab must appear.

This window shows us four sections:

  • Chip option, where we can change the chip series, chip model, and download port, also there is an option to download the file to the board automatically after the computer detects the board.
  • Download File, here we have to set the path for our compiled sketch.
  • Download Config, default configuration depending on the chip selected.
  • Download Record, where you will see the log of the download to the board.

Screenshot_20221230_120051

Time to connect the board

Previous downloading of the sketch to the board is important to configure the Chip Option and put the board in bootloader mode.

Bootloader Mode

To enter the bootloader mode is important to perform the following:

This can be done with and without having the board connected to the computer

  1. Turn off the board (using the switch)
  2. Press and hold the Download button
  3. Turn on the board

IMG_3784_AdobeExpress

Chip Option

As previously commented once the board is connected to the computer in bootloader mode the WCH software will set all the chip options automatically, as shown following.

Screenshot_20221230_121219

However, if this is not the case set the following parameters:

  • Chip Series: CH58x
  • Chip Model: CH582
  • Download Port: USB

It's time to set the path of the compiled sketch, for this you have to compile your code in Arduino IDE, and you must see a compile log in the output console of Arduino IDE, the file path we need is in one of the last lines of the console, is a path pointing to a .hex file, you probably have to horizontal scroll to the right to find it, select the path and copy it.

hex

Back to the WCH software paste the path of the compiled sketch on the Object File 1 file located in the Download file section.

Screenshot_20221230_124700

Screenshot_20221230_124615

Finally, click on the download button.

Now is Blinking!

IMG_3782__1__AdobeExpress