Skip to content

how to build flash and use examples on linux Eclipse IDE

Benjamin Vernoux edited this page Nov 1, 2023 · 4 revisions

How to build flash and use examples on Linux with MounRiver Studio "RISC-V IDE (Community)"

Build the firmware source code for HydraUSB3(CH569W MCU) with MounRiver_Studio_Community_Linux_x64

Prerequisites

  • It is recommended to use MounRiver Studio "RISC-V IDE (Community)" to build the source code
  • Tested on Ubuntu x64 22.04 LTS & 20.04 LTS(does not work on ArchLinux) + MounRiver_Studio_Community_Linux_x64_V130.tar.xz
    • MounRiver_Studio_Community_Linux_x64_V130.tar.xz sha256 shall be equal to dd692f617b1c67a66d27a85d3e19e65668e8f462df7a732d6cd40803d663c762
    • Extract the archive and install it like described in the README
  • Install git
    • sudo apt-get install git

Clone the hydrausb3_fw repository with git

cd ~
git clone --recursive https://github.com/hydrausb3/hydrausb3_fw.git

Import and build the examples projects in MounRiver Studio (it is based on Eclipse IDE)

  • Launch MounRiver Studio Community
    • Select a directory workspace (use the default one)
    • Select Menu File => Import...
      • In Import Windows choose General => Existing Projects into Workspace
        • Select Next >
        • A window Import Projects appears
          • Click on Browse near "Select root directory:" and choose hydrausb3_fw directory
            • Click on Select Folder
          • Select the different project(s) you want to import (in Projects)
          • Click on Finish
    • Project Explorer now show all imported projects
      • Left Click on any project(s) (or choose multiple projects too) to highlight them
      • Right click on the highlighted project(s) and choose Build Project or Build Projects
      • If all is ok the project(s) shall build fine and display in Console "Build Finished. 0 errors, 0 warnings."

Flash and use hydrausb3_fw example(s) with wch-ch56x-isp

See https://github.com/hydrausb3/hydrausb3_fw/wiki/Flash-and-use-hydrausb3_fw-example-on-Linux