This is a serial ISP flashing tool for WCH RISC-V microcontrollers that runs in a web browser. Entirely self-contained, with no additional software, libraries, or drivers required.
It uses the JavaScript Web Serial browser API, and so requires support for this feature by the browser. At time of writing, only the following browsers feature support for the Web Serial API: Chrome version 89+, Edge version 89+, FireFox version 151+, Opera version 76+. This tool does not work in Safari, due to lack of support for the API.
[!NOTE] You can find a hosted version of this tool on my website, at: https://www.stasisleak.uk/wchisp/.
Currently supported RISC-V WCH microcontrollers:
[!NOTE] A pre-built copy can be found in the Releases section of the GitHub repository.
Building requires the bundling tool esbuild, a copy of which will need to be installed in a tools sub-folder of the project - see below for details.
You must have a copy of the esbuild.exe binary executable in a tools\esbuild sub-folder.
build.bat.dist sub-folder.You must have a copy of the esbuild binary executable in a tools/esbuild/bin sub-folder.
build.sh. You may need to first add 'execute' permissions to the script file (e.g. chmod a+x build.sh).dist sub-folder.The Linux build script may also be useful on other Unix-like platforms - e.g. Mac, BSDs, etc. - but has not been tested with any of them.
If you downloaded a pre-built release, first extract the contents of the zip file to a location of your choice.
Open in your web browser the index.html file from the dist folder.
If you want to deploy a copy of this tool to be hosted on your own web server, simply upload all files within the dist folder to a location of your choice on your web server.
This work is licenced under the GNU Affero General Public License v3.0. See LICENSE.txt for details.
$ claude mcp add wch-web-isp \
-- python -m otcore.mcp_server <graph>