Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Knowledge Base Articles

Specifying Alternate ModusToolbox Tools Version using modus-shell - KBA233296

ArunKumarChoul
Employee
50 questions asked 50 sign-ins 25 sign-ins
Employee

Specifying Alternate ModusToolbox Tools Version using modus-shell - KBA233296

Version: **

Question: How can I specify an alternate tools version for my ModusToolbox application?

Answer: You can install multiple ModusToolbox software versions simultaneously on a system. By default, ModusToolbox software uses the most current version of the "tools" directory installed. In some cases, you might want to use a specific older version of the ModusToolbox tools for certain projects.

The ModusToolbox User Guide documents several methods on how to do this, but there is another method that uses the modus-shell (bash) command-line interface, and this article focuses on that method.

The modus-shell is basically a bash terminal that uses Cygwin under the hood. It is used to emulate a UNIX-compatible environment on Windows. For macOS and Linux users, any appropriate bash terminal will do.

Why use modus-shell?

Here are some of the reasons why you would want to use the modus-shell method:

  • Specifying the tools version affects only the current session of running modus-shell.
  • It is not a global setting like System Variables, so it will not affect other projects.
  • It helps the Eclipse IDE to load the correct tools and configurators during startup.

How to use modus-shell

Here are the steps to use the modus-shell command line interface:

  1. Navigate to the ModusToolbox installation directory, go to tools_2.x\modus-shell, and run Cygwin.bat.
    Here x is any minor version that is installed.
  1. Run the export command to specify the correct tools path.
    For example, if you need to use 2.2 version of the tools, run the following command:

>> export CY_TOOLS_PATHS=C:/Users/<Username>/ModusToolbox/tools_2.2Note: The path separators must be forward slash. On macOS and Linux, use the appropriate path to the tools directory.

  1. Navigate to your project directory and run various make commands as needed. For example:
    >> cd ../MyApplication
    >> make build
  1. If you want to use the 2.2 version of the Eclipse IDE, run the command to launch it. For example:
    >> cd C:/Users/<Username>/ModusToolbox/ide_2.2/eclipse/
    >> ./ModusToolbox.exe

Note: The path separators must be forward slash. On macOS and Linux, use the appropriate path to the eclipse directory.

You should now see the ModusToolbox application opening with the correct version of the Eclipse IDE and specific tools version needed for your project. Since these settings affect only this particular session of modus-shell, you need to run the export command again the next time you want to use the project.

 

0 Likes
Version history
Revision #:
3 of 3
Last update:
‎Jun 24, 2021 05:47 AM
Updated by: