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

0 Members and 1 Guest are viewing this topic.

Offline wilhe_joTopic starter

  • Regular Contributor
  • *
  • Posts: 197
  • 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: 197
  • 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: 491
  • Country: ru
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: 197
  • 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
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4464
  • 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: SiliconWizard, Dazed_N_Confused

Offline jnk0le

  • Regular Contributor
  • *
  • Posts: 76
  • 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: 15274
  • 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: 6
  • 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: 65
  • 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
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf