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

cross mob

ModusToolbox 2.0 Installation with Spaces in User Home Directory – KBA229345

ModusToolbox 2.0 Installation with Spaces in User Home Directory – KBA229345

ChaitanyaV_61
Employee
Employee
50 questions asked 25 likes received 25 sign-ins

Version: *A

Question:

How do I install ModusToolbox on Windows if my user home directory contains spaces?

Note This KBA applies to ModusToolbox 2.0. For version 2.1 and later, refer to the current ModusToolbox Installation Guide.

The ModusToolbox installer tries to install in your user home directory by default. However, it prevents you from installing into a directory that contains spaces.

   pastedImage_2.png

Answer:

So, if your user home directory includes spaces, and you cannot create a new user home directory, you must perform some extra manual steps.

Step 1: Install at a custom path.

1. Select an alternate installation path that does not include spaces. For example:

C:\Cypress\ModusToolbox

Any path without spaces will also work.

2. After  installation is complete, create a folder to store your workspaces. For example:

C:\Cypress\mtb-projects

You can choose any path as long as it doesn’t contain spaces.

Step 2: Create a system variable.

Because you have installed ModusToolbox into a non-default folder, you need to specify the path to your “tools” directory using a System Variable. Open the Environment Variables dialog, and create a new System Variable:

  • Variable Name: CY_TOOLS_PATHS
  • Variable Value: C:/Cypress/ModusToolbox/tools_2.0/ (for example)

NOTE: Use a Windows style path, not Cygwin (like /cygdrive/c/). Also, use forward slashes.

  pastedImage_5.png

Step 3: Address GitHub cache issue.

The ModusToolbox make system clones all the repos needed for your project, directly into your project. So the resulting project is self-contained. It uses the cache to speed up the clone operations. Normally, the make system would create and use cache directory at:

c:\Users\<User Name>\.modustoolbox\

However, you need to fix this for the new install location of ModusToolbox. There are two ways to resolve this. Choose one.

NOTE: This workaround will only work for ModusToolbox 2.0. For the next release, Cypress is adding the ability to relocate the cache through a System Variable.

Step 3A: Option 1: Disable caching.

You can disable the caching. The downside is that will slow down the clone operation and overall project creation, as well as the library update experience. In order to disable the cache, create a User Variable:

  • Variable Name: CY_GETLIBS_NO_CACHE
  • Variable Value: 1

Step 3B: Option 2: Change the cache location

Another option is to change the location where the ModusToolbox make system keeps the cache. Open the following file with a text editor:

c:\Cypress\ModusToolbox\tools_2.0\make\start.mk

Right above the block “Other Windows environments” put these three lines:

CY_INTERNAL_GETLIBS_CACHE:=C:/Cypress

CY_INTERNAL_GETLIBS_PATH:=$(shell cygpath -m --absolute $(subst \,/,$(CY_GETLIBS_PATH)))

CY_INTERNAL_GETLIBS_SEARCH_PATH:=$(shell cygpath -m --absolute $(subst \,/,$(CY_GETLIBS_SEARCH_PATH)))

  pastedImage_10.png

Step 4: Configure Eclipse

1. Start the Eclipse IDE for ModusToolbox 2.0 and specify the path to the workspace. For example:

C:\Cypress\mtb-projects\mtb-wksp1

   pastedImage_11.png

2. Accept the license agreement if asked.

3. Open the Preferences dialog:

   pastedImage_15.png

4. Specify the ModusToolbox Tools location. Point to the install location you specified earlier. For example:

C:\Cypress\ModusToolbox\tools_2.0

  pastedImage_17.png

5. Click Apply and Close.

NOTE: This is a workspace setting. So you must repeat this process for every new workspace.

Note This KBA applies to ModusToolbox 2.0. For version 2.1 and later, refer to the current ModusToolbox Installation Guide.

0 Likes
950 Views
Contributors