Unable to run gesture-classification example

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

cross mob
jayesh_joshi
Level 4
Level 4
50 replies posted 10 questions asked 25 sign-ins

I am trying to run a gesture classification demo on the CY8CKIT-062S2-43012 kit. I am following the steps described in https://github.com/Infineon/mtb-example-ml-gesture-classification.

But as try to import the example using New Application link in the Quick Panel I run into the below error and can not download the example. I have tried both methods described in the https://community.infineon.com/t5/Code-Examples/ModusToolbox-URL-Modifier/td-p/366015 thread but still running into the same issue.

 

Loading the manifest data
Found environment variable CyRemoteManifestOverride=https://raw.githubusercontent.com/Infineon/mtb-super-manifest/v2.X/mtb-super-manifest-fv2.xml
Loading super manfiest files from all sources
Processing manifest pack file 'C:/Infineon/Tools/ModusToolbox/packs/ModusToolbox-Machine-Learning-Pack/manifest.xml'
Downloading super manifest file 'file:///C:/Infineon/Tools/ModusToolbox/packs/ModusToolbox-Machine-Learning-Pack/manifest.xml'
Getting manifests from remote and/or local sources
Processing system manifest 'https://raw.githubusercontent.com/Infineon/mtb-super-manifest/v2.X/mtb-super-manifest-fv2.xml'
Downloading super manifest file 'https://raw.githubusercontent.com/Infineon/mtb-super-manifest/v2.X/mtb-super-manifest-fv2.xml'
Finished loading super manifest files from all sources
Finished download of file 'file:///C:/Infineon/Tools/ModusToolbox/packs/ModusToolbox-Machine-Learning-Pack/manifest.xml'
Starting to parse super manifest with URL 'file:///C:/Infineon/Tools/ModusToolbox/packs/ModusToolbox-Machine-Learning-Pack/manifest.xml'
Finished parsing super manifest with URL 'file:///C:/Infineon/Tools/ModusToolbox/packs/ModusToolbox-Machine-Learning-Pack/manifest.xml'
Downloading manifest file 'file:///C:/Infineon/Tools/ModusToolbox/packs/ModusToolbox-Machine-Learning-Pack/manifests/mtb-ml-ce-manifest.xml'
Finished download of file 'https://raw.githubusercontent.com/Infineon/mtb-super-manifest/v2.X/mtb-super-manifest-fv2.xml'
Finished download of file 'file:///C:/Infineon/Tools/ModusToolbox/packs/ModusToolbox-Machine-Learning-Pack/manifests/mtb-ml-ce-manifest.xml'
Finished loading the manifest data (42454 ms)
Loading the device db
INFO:Using the executable path for the tools directory.
WARNING:Error downloading 'https://raw.githubusercontent.com/Infineon/mtb-super-manifest/v2.X/mtb-super-manifest-fv2.xml' -- Connection timed out
INFO:No device-db assets found in manifest
0 error(s), 1 warning(s

 

  

git bash config after modifying the URL as suggested.

 

core.editor="C:\\Program Files (x86)\\Notepad++\\notepad++.exe" -multiInst -notabbar -nosession -noPlugin
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
url.https://ghproxy.com/https://github.com.insteadof=https://github.com

 

 

Let me know if I am missing something.

0 Likes
1 Solution
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jayesh_joshi 

Can you please check whether you have a .modustoolbox folder in your C:/  folder? If yes, can you please set a new system environment variable CY_GETLIBS_GLOBAL_PATH = C:/.modustoolbox/global and restart ModusToolbox?

I believe you have installed ModusToolbox in a custom location. For ModusToolbox version 3.0, a global path for assets like device-db using the variable CY_GETLIBS_GLOBAL_PATH should also be included if the .modustoolbox folder is in a non-default location. If the variable does not exist, it assumes a default path of ~/.modustoolbox/global.

After setting the new variable and restarting MTB, please try to create the project again and let me know if the issue persists.

Thanks and Regards,
Leo

View solution in original post

0 Likes
4 Replies
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jayesh_joshi 

Can you please check whether you have a .modustoolbox folder in your C:/  folder? If yes, can you please set a new system environment variable CY_GETLIBS_GLOBAL_PATH = C:/.modustoolbox/global and restart ModusToolbox?

I believe you have installed ModusToolbox in a custom location. For ModusToolbox version 3.0, a global path for assets like device-db using the variable CY_GETLIBS_GLOBAL_PATH should also be included if the .modustoolbox folder is in a non-default location. If the variable does not exist, it assumes a default path of ~/.modustoolbox/global.

After setting the new variable and restarting MTB, please try to create the project again and let me know if the issue persists.

Thanks and Regards,
Leo

0 Likes
jayesh_joshi
Level 4
Level 4
50 replies posted 10 questions asked 25 sign-ins

Thank you @LeoMathews  for the response.

 

There is no .modustoolbox folder in C:/  but the modus toolbox is installed at C:\Infineon\Tools.

jayesh_joshi_0-1676536943078.png

 

So based on that, I have created the environment variable CY_GETLIBS_GLOBAL_PATH = C:/Infineon/Tools/ModusToolbox/global. Please find the below image for reference. 

jayesh_joshi_1-1676537086059.png

 

But still running into same issue.

 

0 Likes
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jayesh_joshi 

The folder .modustoolbox is different from the ModusToolbox folder. Can you please check if there is a .modustoolbox folder in C:/users/<username>  path? 

Thanks and Regards,
Leo

0 Likes
jayesh_joshi
Level 4
Level 4
50 replies posted 10 questions asked 25 sign-ins

@LeoMathews 

I have been able to make it work after 2-3 uninstall/install cycles.  One of the things I missed was that script attached in https://community.infineon.com/t5/Code-Examples/ModusToolbox-URL-Modifier/td-p/366015 was not successful due to the execution policy. Once I set the execution policy to the unrestricted script was successful. 

0 Likes