Mounriver Studio... anyone with a working setup under linux? - Page 1
Forum section: electronics / general

author: wilhe_jo
author_rank: Regular Contributor
timestamp: June 19, 2024, 03:20:23 pm
content: Hi!I just want to run the template project for a CH32V307 on my CH32V307V-R1-1V0 board.After getting the "cannot write to 0x000"-error, I found on the net, that I need to update my the wlink on the board.That seems not possible under linux, so I fired up a VM with win10, installed the windows version a got a bricked programmer.2 days of pulling hairs, I got this fixed (see other thread) and now I'm left with libusb bulk-transfer timeouts.Any ideas?BTW: I get IDs from the target... so at least some communication works.Regards

author: wilhe_jo
author_rank: Regular Contributor
timestamp: June 19, 2024, 04:38:57 pm
content: A little update... I reverted back to MRS 1.5 by guessing a download link (http://file-oss.mounriver.com/upgrade/MounRiver_Studio_Community_Linux_x64_V150.tar.xz)... that gave me back a working system.So something is fishy with the OpenOCD they ship with the 1.91 toolchain/1.7 StudioIf someone has some idea how the get the current version running... I'd be glad to hear ideasRegards

author: Postal2
author_rank: Frequent Contributor
timestamp: June 19, 2024, 05:22:19 pm
content: Quote from: wilhe_jo on June 19, 2024, 04:38:57 pmI bought PC from Aliexpress with win10 and put Mounriver there. This link:https://aliexpress.com/item/32839489621.htmlAlso I have old Core2duo with 4 SSD mechanically switched from one system to another (one SSD = one system).

author: wilhe_jo
author_rank: Regular Contributor
timestamp: June 19, 2024, 05:59:45 pm
content: Quote from: Postal2 on June 19, 2024, 05:22:19 pmSorry, but your suggestions are not helpful.Neither the recommentation to use Win XP in the other thread, nor using a totally outdated system with Windows.My whole office runs under linux.The problem seems to be in the software WCH provides.I had the same issue before with something between 1.5 and 1.91.The question is, if there's some solution to this.For now, I reverted back to MRS 1.5 which seems to do.Regards

author: brucehoult
author_rank: Super Contributor
timestamp: June 19, 2024, 10:59:26 pm
content: You don't have to use MounRiver Studio at all, if you don't want. Standard GCC works fine, and you can build your own OpenOCDhttps://github.com/openwch/openocd_wch

author: jnk0le
author_rank: Regular Contributor
timestamp: June 20, 2024, 12:08:35 am
content: Quote from: brucehoult on June 19, 2024, 10:59:26 pmThat's prebuild binary without linux support, there are some forks made from GPL lettered sources thoughe.g.https://github.com/jnk0le/openocd-wch

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 20, 2024, 12:15:57 am
content: You can use mainline GCC as Bruce mentioned. If you don't need a debugger, you don't even need OpenOCD either. I use wlink for flashing CH32V30x.https://github.com/ch32-rs/wlink

author: ddrown
author_rank: Newbie
timestamp: June 20, 2024, 10:57:04 pm
content: I'm developing in Linux for a ch32v307 devboard, and I've modified minichlink in order to specify the ram/flash splithttps://github.com/ddrown/minichlink-307I haven't had luck with wlink, it seems to crash my wch debugger.I also have a Makefile based template for building C/C++ projects for the 307.

author: martinribelotta
author_rank: Regular Contributor
timestamp: June 21, 2024, 01:54:12 am
content: Y 2cent for the cause:Project with all WCH examples compiling (I test many but many is untested now)https://github.com/martinribelotta/openwch-makefileBare metal ch32v307 C/C++ template using cmakehttps://gitlab.com/eta-for-ci/baremetal-ch32v3xxRT-threads repository (outdated to main rt-thread repo)https://gitlab.com/eta-for-ci/ch32v307-gnumakeThey already posted in other messages the links to openocd and wlink... Both work pretty well

author: Gjeskog
author_rank: Newbie
timestamp: November 01, 2024, 10:36:01 pm
content: This is an old topic and I'm not claiming to know these WCH-chips, allthough I've bought a small pile of them and are planning to program them from eclipse on Linux.Have anyone here tested out the MRS for eclipse here?http://www.mounriver.com/download(And if I'm not misstaken David Jones used the eclipse implementation of MRS when he reviewed these chips a year ago.)https://youtu.be/L9Wrv7nW-S8?feature=shared

author: bson
author_rank: Unknown
timestamp: November 05, 2024, 06:56:57 pm
content: Code:mkdir -p ~/srccd ~/srcgit clone https://github.com/openocd-org/openocd.git openocd-devcd openocd-dev./bootstrapsudo mkdir -p /opt/openocd./configure --prefix=/opt/openocdmake -j16sudo make install/opt/openocd/bin/openocd --versionOpen On-Chip Debugger 0.12.0+dev-01776-g40d58ce52 (2024-11-05-10:48)Licensed under GNU GPL v2For bug reports, readhttp://openocd.org/doc/doxygen/bugs.htmlTook under a minute on my Dell XPS 9700 (10750H) laptop running Fedora 40.You may need various dev packages though.I use /opt for all that's not dnf packaged, to avoid stepping on it or vice versa. YMMV

author: 2nOrderEDO
author_rank: Regular Contributor
timestamp: April 28, 2025, 07:09:20 am
content: I shared this in another post, but I also leave it here in case it is useful for people finding this post on their search engine.I found a way to run Mounriver Studio 2 in possibly any Linux distro. It uses docker or podman to put MRS2 in a container and run it from there. This is very efficient because docker/podman share the host kernel instead of a full emulation. In my experience, it was also much faster than using Wine to run MRS2 Windows version.The process is documented in my blog:https://eulerprecision.com/troubleshooting-mounriver-studio-2-not-working-on-fedora-42-ubuntu-debian-and-other-linux-systems/

author: saari.tech
author_rank: Newbie
timestamp: May 24, 2025, 06:18:44 pm
content: After installation, run in terminal:Code:/usr/share/MRS2/beforeinstall/start.shCreate a bash file mounriver.shCode:#!/bin/bash"/usr/share/MRS2/MRS-linux-x64/mounriver-studio 2"Make the bash file to be executable and run the bash file to open MounRiver Studio. Might be a good idea to have the bash file in desktop folder.Tested with MounRiver 2.1.0.