Author Topic: Mounriver Studio... anyone with a working setup under linux?  (Read 2868 times)

0 Members and 1 Guest are viewing this topic.

Offline wilhe_joTopic starter

  • Regular Contributor
  • *
  • Posts: 201
  • Country: at
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
 

Offline wilhe_joTopic starter

  • Regular Contributor
  • *
  • Posts: 201
  • Country: at
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #1 on: June 19, 2024, 04:38:57 pm »
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 Studio

If someone has some idea how the get the current version running... I'd be glad to hear ideas :)

Regards
 

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #2 on: June 19, 2024, 05:22:19 pm »
If someone has some idea how the get the current version running... I'd be glad to hear ideas :)
I bought PC from Aliexpress with win10 and put Mounriver there. This link:
https://aliexpress.com/item/32839489621.html

Also I have old Core2duo with 4 SSD mechanically switched from one system to another (one SSD = one system).
 

Offline wilhe_joTopic starter

  • Regular Contributor
  • *
  • Posts: 201
  • Country: at
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #3 on: June 19, 2024, 05:59:45 pm »
If someone has some idea how the get the current version running... I'd be glad to hear ideas :)
I bought PC from Aliexpress with win10 and put Mounriver there. This link:
https://aliexpress.com/item/32839489621.html

Also I have old Core2duo with 4 SSD mechanically switched from one system to another (one SSD = one system).

Sorry, 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
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4770
  • Country: nz
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #4 on: June 19, 2024, 10:59:26 pm »
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 OpenOCD https://github.com/openwch/openocd_wch
 
The following users thanked this post: chickenHeadKnob, SiliconWizard, Dazed_N_Confused

Offline jnk0le

  • Regular Contributor
  • *
  • Posts: 104
  • Country: pl
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #5 on: June 20, 2024, 12:08:35 am »
and you can build your own OpenOCD https://github.com/openwch/openocd_wch
That's prebuild binary without linux support, there are some forks made from GPL lettered sources though
e.g. https://github.com/jnk0le/openocd-wch
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15818
  • Country: fr
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #6 on: June 20, 2024, 12:15:57 am »
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
 

Offline ddrown

  • Newbie
  • Posts: 8
  • Country: us
    • blog
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #7 on: June 20, 2024, 10:57:04 pm »
I'm developing in Linux for a ch32v307 devboard, and I've modified minichlink in order to specify the ram/flash split https://github.com/ddrown/minichlink-307

I 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.
 

Offline martinribelotta

  • Regular Contributor
  • *
  • Posts: 66
  • Country: ar
  • A camel is a horse designed by a committee
    • Martin Ribelotta design services
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #8 on: June 21, 2024, 01:54:12 am »
Y 2cent for the cause:
Project with all WCH examples compiling (I test many but many is untested now) https://github.com/martinribelotta/openwch-makefile
Bare metal ch32v307 C/C++ template using cmake https://gitlab.com/eta-for-ci/baremetal-ch32v3xx
RT-threads repository (outdated to main rt-thread repo) https://gitlab.com/eta-for-ci/ch32v307-gnumake

They already posted in other messages the links to openocd and wlink... Both work pretty well
 

Offline Gjeskog

  • Newbie
  • Posts: 2
  • Country: no
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #9 on: November 01, 2024, 10:36:01 pm »
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
 

Offline bson

  • Supporter
  • ****
  • Posts: 2497
  • Country: us
Re: Mounriver Studio... anyone with a working setup under linux?
« Reply #10 on: November 05, 2024, 06:56:57 pm »
Code: [Select]
mkdir -p ~/src
cd ~/src
git clone https://github.com/openocd-org/openocd.git openocd-dev
cd openocd-dev
./bootstrap
sudo mkdir -p /opt/openocd
./configure --prefix=/opt/openocd
make -j16
sudo make install
/opt/openocd/bin/openocd --version
Open On-Chip Debugger 0.12.0+dev-01776-g40d58ce52 (2024-11-05-10:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Took 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
« Last Edit: November 05, 2024, 07:01:11 pm by bson »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf