This post was last edited by rabt517 on 2021-9-30 17:35
MRS Getting Started Sharing
I would like to promote a domestic compiler I have used recently , MounRiver Studio , which is also known as the Shanhe compiler. Shanhe compiler has always been a dual-core tool platform compatible with RISCv and ARM . It can automatically detect, adapt, and use practical functions to achieve one-click operation for projects with different cores. If you need it, you can consider giving it a try.
How did I first come into contact with this software? I learned about it from a related embedded forum, and then I clicked on their official website and found that the interface was indeed clean and beautiful. It was obvious that the layout, icons, and menus were carefully designed. In addition, when I used it for the first time, I felt that it was based on some of Keil 's designs and user habits. When the mouse hovers over the toolbar icon, there will be corresponding instructions and shortcut key prompts. It is easy to get started. For someone like me who doesn't like to accept new things, it is good to be able to find the relevant entrance by habit and not have to remember a set of shortcut key settings.
I saw a lot of useful posts about development routines on the 21ic forum, and I applied for a V103 sample to tinker with. My writing skills are limited, so I will just talk about my experience with the software during a few processes.
The official website of the software is http://www.mounriver.com/ . In addition to the download address, there are also some lengthy introductions on the webpage. To be honest, when I first downloaded the Shanhe compiler, I only skimmed through it. The "Quick Start" on the webpage provides step-by-step instructions based on four chapters: new project, compilation, debugging, and burning. The compilation configuration section is the most comprehensive, and you can see that it has been carefully introduced, but the content is a bit too much. I had to explore it myself later and look back to understand it when I encountered problems.
We can choose to download the platform package according to our needs. The Windows platform provides the Sunward 1.51 installation package and patch package . The installation package will execute the installation program (if there is a historical version, it will be uninstalled first). The patch should be for minor version function upgrades. The Linux platform provides a compressed package and a tool chain package . The tool chain package contains command call instructions and a collection of tools for underlying calls. I downloaded the V1.51 compressed package. Since the 1.50 version was installed before, this time it will remember my location in the root directory of the Windows C drive. Then click next step by step according to the guidance , and finally choose to start after the installation is complete. The total process does not exceed 1 minute. With the appearance and disappearance of the startup image, the main interface of the Sunward compiler appears.
I later learned that you can download the offline package directly. At the end of the MRS main menu, click "Offline Upgrade" under "Help", select the offline package, and the software will perform the upgrade and restart to take effect. If there is another version update next time, it will be more convenient to use.
The effects of the main interface and the official website homepage are basically the same, the layout structure is clear, and the color tone is appropriate. According to my understanding, the software is divided into two modes, each with its own interface layout. In most idle or development stages, the software is in the default "development mode", and after entering debugging, the layout switches to "debugging mode ". When in "debugging mode " , the outline and history window in the lower left corner are changed to the disassembly window that we are more concerned about. The interface border can be dragged to form a custom layout, and the platform will always remember our layout settings. The mode will automatically switch after debugging is entered / ended. And when we accidentally close or forget the layout content, don't worry, you can also click Reset View To Defaults under the main menu Windows to restore the default layout in the current mode.
I mentioned the shortcut keys at the beginning of the article. The shortcut keys I often use are those set in Keil. For example, during debugging, it is tiring to click the icon every time, and it is troublesome to remember another set. Fortunately, many of the shortcut keys of Shanhe compiler are consistent with KeilF7 , recompile - Shift+F7F5 during debugging - Continue (continue running), F10 - Step Over (single step, skip sub-function), F11 - Step Into (single step, enter sub-function), Ctrl+F11 - Step Return (single step out), these are all the same. Detailed shortcut key settings can be configured by yourself in the global configuration Preference-General-KeysCtrl+Shift+L " key combination in the editor area . Here are a few that are different from Keil MDK , but I often use them. " Ctrl+/ " - comment code, " Alt+F8 " - format file, " Ctrl+L " - jump to line number, " Ctrl+Shift+R " - quickly open file, " Ctrl+Shift+G " - view the location where variables / methods are called
I am quite satisfied with the editing function of the Sunward Compiler. When I double-click to select the source file type, variable or method, the reference location will be highlighted . In addition, the Sunward Compiler can choose different light / dark theme effects , which are lacking in Keil MDK . The dark theme is pretty good, it depends on personal preference. I think the dark theme is eye-friendly! Then the compiler also supports switching between Chinese and English , which is available in many domestic compilers, which is quite convenient. I remember that before the version was updated, there was a lot of mixing of Chinese and English in the right-click menu, and it seems that this version 1.51 has solved this problem.
Right-click a project or folder / file, and select Open Containing Folder in the pop-up menu to easily open the path of the selected resource in the system resource browser. In the project browser, the project tree displays the logical structure of the project . The following experiment can verify this conclusion: In the new project options, the Use default location and Create project folder checkboxes are checked by default. The former will create the project in the default location C:\MRS_DATA , and the latter will create a project folder with the same name. Do the opposite - we uncheck these two options and create the project in the specified location G:\test .
After creation, we click the debug.c file in the project in Project Explorer , and we can see that the path in the property page Properties is the actual location G:\test\Debug\ . Right-click the project and select Open Containing Folder , which will open the location of the project file .wvproj .
If you encounter any problems, you can click Feedback under Help in the main menu of the compiler to submit feedback . Leave your email address and describe the feedback content. You can provide error logs or project zip packages as needed. I briefly consulted about the formatting and code indentation format before, and I was quickly replied that the formatting only takes effect on the code edited later. If you want to take effect globally, you need to select the code area Alt+F8 , or right-click the file in the project browser and select Code Format .
.
|