MTB2.0 can make getlibs in import example, but fail to use "New Application"

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

cross mob
RaLe_4523841
Level 1
Level 1
First question asked First reply posted

Hi,

I Can make getlibs and success when I using an imported example in MTB2.0

But when I click "New Application", it still fail to get the BSP list from the Github.

It do not always get fail, sometime it can be success to creator new application.

I copy some *.lib file from the project which success to create, move to the example project by import, and make getlibs, it still works. just like the capture I attac below.

I am using my private desktop, and without any company firewall.

I am not sure it is the same issue as the Using ModusToolbox Software Behind a Firewall – KBA228784

pastedImage_0.png

0 Likes
1 Solution
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

Hi,

A workaround trying to solve this issue has been published at our Blog site. You can try it before any new idea comes out. See this:
A workaround to solve "Some boards and apps may be missing" in ModusToolbox

<<<<<<<<<<<<<>>>>>>>>>>>>>

Sincere regards from C. L.

<<<<<<<<<<<<<>>>>>>>>>>>>>

View solution in original post

0 Likes
7 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

If you aren't behind a firewall, then you need not follow the steps mentioned in the KBA: Using ModusToolbox Software Behind a Firewall – KBA228784

In ModusToolbox go to Window > Preferences and set Action Provider to Direct as shown below:

firewall.png

After this, click New Application. If you still see a blank list while choosing BSP, please share the log generated in the console. 

console.png

Regards,

Dheeraj

Hi Dheeraj,

It still blank list, here is the log.

2020/02/20 20:36:29 DEBUG: Log file(s) for this session are stored at: C:\Users\xxx\AppData\Local\Temp\Logs775357350587440271

2020/02/20 20:36:33 INFO: Running make...

2020/02/20 20:36:33 INFO: C:/Users/xxx/ModusToolbox/tools_2.0/modus-shell/bin/make get_app_info CY_MAKE_IDE=eclipse CY_CONFIG_FILE_EXT="cyacd2 cybt cycapsense cymem cyqspi cyseglcd cyusbdev modus "

2020/02/20 20:36:42 INFO: Trying URL: http://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest.xml

2020/02/20 20:36:42 INFO: Trying URL: https://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest.xml

2020/02/20 20:36:51 ERROR: Unable to open file at http://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest.xml. Some boards and apps may be missing. Check the logfile for a detailed error message.

2020/02/20 20:36:51 ERROR: Connection reset

0 Likes

Dheeraj,

Thanks for the advice.

But I think it is the network issue:

1."New Application" will read manifest.xml raw file by URL:

http://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest.xml

which will actually jump to

https://raw.githubusercontent.com/cypresssemiconductorco/mtb-super-manifest/v2.X/mtb-super-manifest...

To get the raw file instead of git clone to local.

2. Chinese network seems not stable for the https://raw.githubusercontent.com/ . It will block this domain name sometime (maybe most of the time).

3. But git clone can work, even it may be only few hundreds KB/s.

What I suggest is that, it can git clone the manifest.xml from repo to local path like C:\Users\xxx\Documents\MTB for example to keep the list.

Everytime click "New Application" just check update, then use local list. 

I think PSoC Creator do the simliar thing to download example and new component in C:\Users\xxx\Documents\PSoC Creator\4.2.

Maybe it is already a plan, but I think it will provide better experience to me.

Thanks & Regards,

RayL

0 Likes

Hello Ray,

We will verify this at our end. Appreciate your feedback and I will definitely forward this request to our internal software team. Hope everything is working for you now.

Regards,

Dheeraj

Hi RaLe_4523841​,

There might be a way to improve the situation to you. You can use Fiddler to locally cache the file mtb-super-manifest.xml then "hijack" the request from MTW and redirect it to the locally cached file. Here is the brief illustration:

  1. Download and install Fiddler.
  2. Download the attached file mtb-super-manifest.xml.
  3. In Fiddler, uses the AutoResponder feature to capture the exact request 'http://github.com/cypresssemiconductorco/mtb-super-manifest/raw/v2.X/mtb-super-manifest.xml' and setup a rule that when a request matches this exact URL pattern, respond with the file you specified, i.e., the attached file mtb-super-manifest.xml. See this page for details.
  4. Have MTW setup to use Fiddler as its proxy server. See this page for details.
  5. Enjoy!

Like you said before, when initiating a new application, the file mtb-super-manifest.xml is the file and the only file that MTW access remotely via HTTP, which is usually hijacked and examined. But all the following remote access from MTW is under git's version control and the data are exchanged via git protocol, which will usually not be touched by firewalls.

So the file mtb-super-manifest.xml is the file and the only file you need to cache locally and you are then free to use the "New -> ModusToolbox IDE Application" to download new examples and projects.

PS: the attached file mtb-super-manifest.xml could be out-dated. Remember to cache the file from the original URL when it's available.

<<<<<<<<<<<<<>>>>>>>>>>>>>
Sincere regards from​ C. L.
<<<<<<<<<<<<<>>>>>>>>>>>>>

Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

Hi,

A workaround trying to solve this issue has been published at our Blog site. You can try it before any new idea comes out. See this:
A workaround to solve "Some boards and apps may be missing" in ModusToolbox

<<<<<<<<<<<<<>>>>>>>>>>>>>

Sincere regards from C. L.

<<<<<<<<<<<<<>>>>>>>>>>>>>

0 Likes