-
Notifications
You must be signed in to change notification settings - Fork 3
2. WCHISPStudio
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.
When opening it for the first time you will see a window like this:
On the right side of the screen there are five blue/white squares, click on the 4th from the top to the bottom.
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.
Previous downloading of the sketch to the board is important to configure the Chip Option and put the board in 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
- Turn off the board (using the switch)
- Press and hold the Download button
- Turn on the board
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.
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.
Back to the WCH software paste the path of the compiled sketch on the Object File 1 file located in the Download file section.
Finally, click on the download button.
Now is Blinking!