Using ModusToolbox Software Behind a Firewall – KBA228784

Version 5

    Version: **

     

    Question:

    Why can't I see any ModusToolbox boards in the ModusToolbox IDE, Stand-Alone Project Creator, or Library Manager tools? Or, why does git fail with SSL error or network error?

     

    Answer:
    Various ModusToolbox tools (for example, Eclipse-based IDE, project-creator, and library-manager) require the ability to access GitHub for reading manifest data and for cloning projects. When you are located behind a firewall, you must follow these steps to make sure this works. They are slightly different for different operating systems.


     

    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.

     

    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.

     

    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. 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.

     

    Step 2: Open 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).

     

    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.

     

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

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

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

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

     

    Step 3: Run IDE from 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).