Compared with platforms and solutions, projects are actually the smallest unit for developers to manage code and operate configurations. In the previous introduction, we introduced the process of creating MRS projects, as well as the actual functions of compiling, burning, and debugging. Naturally, there will be several questions: how are these projects built into MRS ? How can we save existing projects as our own templates for other users to use? In this article, we will introduce them one by one.
[Save the project as a template] After writing a project, select the project in the Project Explorer window, right-click the project and click "Save As Project Template" in the pop-up menu. Or click "Save As Project Template" in the main menu "Project".
[Browse and edit template properties] The pop-up window will display the information of the current project. If the project source is created by the MRS template, the basic information such as manufacturer, series, description, etc. will be recorded by default. Users can browse and modify this information. Then click Browse... to select the export location of the template package. After the configuration is correct, the OK button of the form will be enabled. Click OK to generate the template package at the specified location. The exported template package is fixed in the project name + zip format.
[Import Template Package] This step will parse the template package and add it to the template collection under the MRS installation path according to the obtained structure. Click "Template Management " in the main menu " Project " , and then a window will appear, in which the built-in template collection is graphically displayed. Click "Import " , select the template package in the system browser, and click OK to confirm. The compressed package can also be transferred and copied to other users. In later MRS versions, template packages that meet the conditions can be uploaded to the MRS publishing platform as component SDKs for other engineers to download and use.
[Template Management Page] It displays the built-in template collection in a tree structure. By dragging the vertical scroll bar, users can browse the models of all series under all manufacturers. Click
to expand and collapse the tree branches with one click. After importing or copying, the generated template node will be automatically focused, and the template information in the control box on the right will be refreshed. Users can also click on the template node at will to refresh the corresponding template information. In addition, in addition to supporting import, template management also supports exporting, copying and deleting existing templates.
[Template Export] Copy the compressed package to the specified path.
[Template Copy] Copy the existing template in the tree and redefine the manufacturer series to generate new nodes.
[Template Delete] Delete the existing template and delete the node in the template management tree. If all models under a certain manufacturer / series are deleted, the node will also be removed.