-
Notifications
You must be signed in to change notification settings - Fork 12
how to build flash and use examples on windows
Benjamin Vernoux edited this page Nov 1, 2023
·
28 revisions
- Download open source GCC RISC-V v12.2.0 from https://github.com/hydrausb3/riscv-none-elf-gcc-xpack/releases
- Extract the archive
- Download MounRiver_Studio_Community_Win_V130.zip
- MounRiver_Studio_Community_Win_V130.zip sha256 shall be equal to 2d0f24426841ab01d7912c0a732c74c1aca24bf77c6ad580f3ae6d6b513c53bb
- Extract and Install it
- Install MSYS2/MINGW64
- Follow all the steps including "Now MSYS2 is ready for you. You will probably want to install some tools and the mingw-w64 GCC to start compiling:"
pacman -S --needed base-devel mingw-w64-x86_64-toolchain git
- Follow all the steps including "Now MSYS2 is ready for you. You will probably want to install some tools and the mingw-w64 GCC to start compiling:"
- Start
mingw64
cd ~
git clone --recursive https://github.com/hydrausb3/hydrausb3_fw.git
Windows 10 x64 + open source GCC RISC-V v12.2.0 with MSYS2/MINGW64
- Start mingw64
- Add the path to "GCC RISC-V v12.2.0" (example with nomultilib version
xpack-riscv-none-elf-gcc-12.2.0-1-win32-x64.zip
extracted inc:
and renamedxpack-riscv-none-elf-gcc-12.2.0-1-win32-x64_wch_nomultilib
) bin directoryPATH="/c/xpack-riscv-none-elf-gcc-12.2.0-1-win32-x64_wch_nomultilib/bin/":$PATH
- Change current directory to firmware example (here HydraUSB3_Blink_ULED)
cd ~/hydrausb3_fw/HydraUSB3_Blink_ULED
- Clean and build the firmware example
make clean all
- The flashable firmware with
wch-ch56x-isp
(*.bin) is available in~/hydrausb3_fw/HydraUSB3_Blink_ULED/build/HydraUSB3_Blink_ULED.bin
Windows 10 x64 + MounRiver Studio Community Win V130 with MSYS2/MINGW64
- Start mingw64
- Add the path to "RISC-V Embedded GCC" bin directory
- For MounRiver Studio Community Win V130(or more)
PATH="/c/MounRiver/MRS_Community/toolchain/RISC-V Embedded GCC/bin/":$PATH
- For MounRiver Studio Community Win V130(or more)
- Change current directory to firmware example (here HydraUSB3_Blink_ULED)
cd ~/hydrausb3_fw/HydraUSB3_Blink_ULED
- Clean and build the firmware example
make clean all
- The flashable firmware with
wch-ch56x-isp
(*.bin) is available in~/hydrausb3_fw/HydraUSB3_Blink_ULED/build/HydraUSB3_Blink_ULED.bin
See https://github.com/hydrausb3/hydrausb3_fw/wiki/Flash-and-use-hydrausb3_fw-example-on-windows