5 Replies Latest reply on Jan 28, 2020 12:28 AM by MoTa_728816

    ModusToolbox 2.0 creating a project with limited github access

    MoTa_728816

      Hi,

       

      Seeing MarkS_11-san's blog, I wanted try ModusToolbox 2.0 again,

      although I installed ModusToolbox 2.0 on Oct-2019,

      I have successfully created and built ZERO project.

      I'm afraid that the problem is being caused by the network restriction of our office.

       

      So if there is/are workaround(s) for my situation, I would really appreciate it.

       

      Anyway, let me report what's going on with me.

       

      (1) Started the ModusToolbox 2.0, and selected "New Application"

      000-mtw-workbench.JPG

      (2) Selected "CY8CKIT-062-WIFI-BT"

      001-Choose_BSP.JPG

      (3) Selected "Hello World", believing that it is one of the safest project.

      002-Hello_World.JPG

      (4) Summary is shown, so far so good. And selected "Finish"

      003-Summary.JPG

      (5) Progress Information displayed, the green bar stopped there

      004-progress-01.JPG

      (6) After 5 minutes or so, "Problem Occurred" Dialog was shown, somehow I knew that there was a problem though...

      005-Problem_Occurred_after_5min_or_so.JPG

      (7) The console output read (cylogger.log attached)

      006-console.JPG

      (8) I supposed that ModusToolbox 2.0 and our network has problem with accessing the github,

           then how about accessing the github and download the application manually?

      (9) I accessed the github

      007-github-cypress-code-examples.JPG

      (10) Navigated to Repo = PSoC 6 MCU Examples

      008-PSoC6-MCU-Examples.JPG

      (11) Arrived at Cypress Semiconductor Corporation Repositories

      009-Cypress-Repositories.JPG

      (12) Navigated to examples > mtb-example-psoc6-hello-world

      010-mtb-example-psoc6.JPG

      (13) Arrived at mtb-example-psoc6-hello-world page

      011-mtb-example-psoc6-hello-world.JPG

      (14) Selected "Download ZIP"

      012-clone-download-download-zip.JPG

      (15) Selected the destination to my workspace

      013-download-folder.JPG

      (16) The zip file was downloaded successfully (it took less than a minute or so)

      014-git-zip-downloaded.JPG

      (17) Then I tried to import the project from the ModusToolbox 2.0

      015-File-import.JPG

      (18) I chose "Import > Select > General > Archive File"

      016-Select-Archive-File.JPG

      (19) When I selected the ZIP file, it said that I need to create a project first.

      017-Archive-file-needs-project.JPG

      (20) I chose "New Application" from ModusToolbox 2.0

      018-New-Application.JPG

      (21) goto (1)   ... (T^T)

       

      moto

        • 1. Re: ModusToolbox 2.0 creating a project with limited github access
          DheerajK_81

          Please check if you have followed all the steps of this KBA: Using ModusToolbox Software Behind a Firewall – KBA228784

           

          If you get the error even after this setup, then check your git config parameters for proxy by using the following commands:

          # Get system value
          $ git config --system --get https.proxy
          $ git config --system --get http.proxy

          # Get global value
          $ git config --global --get https.proxy
          $ git config --global --get http.proxy

          # Check configuration for your user
          $ cat .gitconfig

          You can use either Git Bash or the command prompt to run this.

           

          If these values haven't been setup, you can use the following commands to setup your proxy settings:

          # Set proxy settings

          $ git config --global https.proxy company.com:port

          $ git config --global http.proxy company.com:port

           

          Now restart ModusToolbox and check if you are able to get it to work.

           

          For importing existing code examples into ModusToolbox 2.0, please have a look at this KBA: Importing Code Example into ModusToolbox IDE - KBA225201

           

          Regards,

          Dheeraj

          1 of 1 people found this helpful
          • 2. Re: ModusToolbox 2.0 creating a project with limited github access
            MoTa_728816

            Dear Dheeraj-san,

             

            Thank you very much for your response!

             

            Unfortunately I'm going to be out of my office till Monday late afternoon,

            and currently I'm typing this in my private office/lab

            so I can not test the firewall behavior of my office.

             

            I will try your suggestion when I get back to my office.

             

            Best Regards,

            23-Jan-2020

            Motoo Tanaka

            • 3. Re: ModusToolbox 2.0 creating a project with limited github access
              MoTa_728816

              Dear Dheeraj-san,

               

              Thank you very much for your answer!

               

              The good news is:

              Following the KBA228784 I could create my first MT 2.0 Project (Hello_World)

               

              But the bad news is:

              I received following errors

              =======================

              Successfully created "Hello_World" application.

              Error creating Eclipse launch configurations: Makefile:162: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Cypress\ModusToolbox_2_0_0\tools_2.0 .  Stop.

               

               

              Unable to find configurator information: Makefile:162: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Cypress\ModusToolbox_2_0_0\tools_2.0 .  Stop.

              =======================

               

              So I'm afraid that there is/are some more things to be fixed...

              I need to leave my office now, I'll keep trying after coming back...

               

              Best Regards,

              27-Jan-2020

              Motoo Tanaka

              • 4. Re: ModusToolbox 2.0 creating a project with limited github access
                MoTa_728816

                Hi,

                 

                Finally, I found my problem after creating the project.

                As I installed "ModusToolbox" to "C:\Cypress\ModusToolbox_2_0_0"

                 

                I had to edit the Makefile and modify the line

                CY_TOOLS_PATHS+=

                to

                CY_TOOLS_PATHS+= C:/Cypress/ModusToolbox_2_0_0/tools_2.0

                 

                After this, I could build the example project.

                 

                moto

                1 of 1 people found this helpful
                • 5. Re: ModusToolbox 2.0 creating a project with limited github access
                  MoTa_728816

                  Hi,

                   

                  Yet another thing I noticed/learned is

                  I was setting CY_TOOLS_PATHS in my Windows Environment

                    C:\Cypress\ModusToolbox_2_0_0\tools_2.0

                  But it was required to set as

                    C:/Cypress/ModusToolbox_2_0_0/tools_2.0

                   

                  With this I don't have to edit the Makefile for each project...

                   

                  moto

                  1 of 1 people found this helpful