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

cross mob

Using ModusToolbox Software Behind a Firewall

Using ModusToolbox Software Behind a Firewall

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

 

Why can't you see any ModusToolbox™ boards, code examples, or libraries in the ModusToolbox™ tools?

Or, why does Git fail with SSL error or network error?

 

Various ModusToolbox™ tools require the ability to access GitHub for reading manifest data and for cloning projects. When you are located behind a firewall, you may need to set up a proxy to make sure this works. With ModusToolbox™ version 2.1 and later, the tools package includes the proxy-helper tool to set up the proxy within the various tools, as described in section 1. With ModusToolbox™ version 2.0 and earlier, you need to set the proxy manually, as described in section 2.

 

1. Using proxy-helper (ModusToolbox™ version 2.1 and later)

Beginning with ModusToolbox™ version 2.1, you can set up the proxy with the project-creator, library-manager, and bsp-assistant or by running the proxy-helper. For example, using the Project Creator GUI, select Settings > Proxy Settings to open the Proxy server settings dialog.

Infineon_Team_4-1698749285055.png

 

Select the Manual option, and enter the appropriate proxy host name and port. This will set the proxy for all applicable tools.

You can also run the proxy-helper command line tool. Run the tool with the --help option to get details. It is located in the ModusToolbox™ installation directory, in tools_<version>\proxy-helper.

2.  Setting proxy manually (ModusToolbox™ version 2.0 and earlier)

They are slightly different instructions for different operating systems.

2.1 Windows

For Windows, set the System Environment variables and then make the same setting in Eclipse. You must set the System Environment variables before launching Eclipse.

Step 1: Set the Windows proxy setup as Automatically detect settings.
Infineon_Team_3-1698749221002.png

 

Step 2: Set HTTP_PROXY and HTTPS_PROXY Windows System environment variables. This should include the URL and Port Number. Check with your IT department.
Infineon_Team_2-1698749193068.png

 

Step 3: After setting the system Environment Variable, open the Eclipse-based IDE. Then, set up the proxy in Window > Preferences > General > Network Connections. On this page you must set Active Provider to "Manual" and then set HTTP and HTTPS to the correct server and port for your location.

2.2  macOS

For the macOS, environment variables must be set in a terminal window, and then the Eclipse-based IDE must be launched from the command line in that terminal window. If you don't launch the IDE from this same window, the IDE process will not inherit the environment variable settings, and the tools like Library Manager will not work.

Step 1: Update System Preferences > Network > Advanced > Proxies and turn on Auto Proxy Discovery.
Infineon_Team_1-1698749154784.png

 

Step 2: Open a Terminal and check if the variables (http_proxy, https_proxy) are set in the terminal (Auto Proxy Discovery sets those variables automatically).

$ export | grep proxy

declare -x http_proxy="<URL>:<PORT>/"

declare -x https_proxy="<URL>:<PORT>/"

Step 3: Run the IDE from the terminal.

$ /Applications/ModusToolbox/ide_2.0/ModusToolbox.app/Contents/MacOS/ModusToolbox

Step 4: When using the Eclipse-based IDE, set up the proxy in Application Menu > Preferences > General > Network Connections. On this page you must set Active Provider to "Manual" and then set HTTP and HTTPS to the correct server and port for your location (see the Windows picture for a similar reference).

2.3 Linux

For Linux, environment variables must be set in a terminal window and then the Eclipse-based IDE must be launched from the command line in that terminal window. If you don't launch the IDE from this same window, the IDE process will not inherit the environment variable settings and tools like the Library Manager will not work.

Step 1: Set Network Proxy manually.
Infineon_Team_0-1698749060251.png

 

Step 2: Open a terminal and check if the variables are set:

user@user-VirtualBox:~$ export | grep proxy

declare -x http_proxy="<URL>:<PORT>/"

declare -x https_proxy="<URL>:<PORT>/"

Step 3: Run IDE from a terminal:

$ ~/ModusToolbox/ide_2.0/eclipse/ModusToolbox

Step 4: When using the Eclipse-based IDE, setup the proxy in Window > Preferences > General > Network Connections. On this page you must set Active Provider to "Manual" and then set HTTP and HTTPS to the correct server and port for your location (see the Windows picture for a similar reference).

 

Version: *A

Translation - Japanese: ​ファイヤーウォールのある環境で ModusToolbox ソフトウェアを使用する - Community Translated (JA)

 

0 Likes
1476 Views