- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
When I try to create a new project with Project Creator I get an error getting device_db:
Loading the device db
git: '9570/.modustoolbox/cache/git/https___github.com_Infineon_device-db' is not a git command. See 'git --help'.
INFO:Using the executable path for the tools directory.
ERROR:there was an error retreiving the asset 'https://github.com/Infineon/device-db' commit 'release-v4.1.0' - git: '9570/.modustoolbox/cache/git/https___github.com_Infineon_device-db' is not a git command. See 'git --help'.
ERROR:Global asset download of device-db loading completed with error.
ERROR:The asyncStepComplete failed for LoadFlag DEVICE_DB.
What could be the issue? I also noticed that the path to the cache starts with '9570/' although my user profile name is 'XPS 9570/', is there a problem with a space in the profile name? Thanks in advance for help.
Windows 10
Eclipse IDE for ModusToolbox™
Version: 3.0.0
Eclipse Build ID: 2749
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check if you have done everything as described in the https://www.infineon.com/dgdl/Infineon-ModusToolbox_3_0_Installation_Guide-GettingStarted-v01_00-EN....
section 6 Installing with spaces in user home directory
There is quite a few system variables you need to get setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @rrusak
Yes, a space in the user profile name path will cause this issue. In your case, the default path for device-db contains a space, which is why ModusToolbox cannot retrieve the asset.
If you have installed ModusToolbox in a custom location then please add the environment variable CY_GETLIBS_GLOBAL_PATH = ~/.modustoolbox/global and restart ModusToolbox. Where the .modustoolbox folder will be in the same directory where ModusToolbox was installed in your system.
Thanks and Regards,
Leo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, and I also need to specify CY_GETLIBS_CACHE_PATH variable, but anyway it is working now.
But, unfortunately, I had one more following problem, when I try to create a project, there are errors in getting the project from the git.
Summary:
BSP: CY8CPROTO-063-BLE
Template Application(s): BMI160 Motion Sensor over I2C FreeRTOS
Application(s) Root Path: C:/main/workspace/code/mtw
Press "Create" to create the selected application(s).
Collecting application data...
Info: The following entered on the command line will create the exact same project as that created with the GUI tool:
C:/Infineon/Tools/ModusToolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CY8CPROTO-063-BLE --board-uri https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-063-BLE --board-commit latest-v4.X --app-id mtb-example-psoc6-bmi160-motion-sensor-freertos --app-uri https://github.com/Infineon/mtb-example-psoc6-bmi160-motion-sensor-freertos --app-commit latest-v2.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_3.0 --target-dir C:/main/workspace/code/mtw --user-app-name BMI160_Motion_Sensor_over_I2C_FreeRTOS --use-modus-shell
Starting application creation for 'C:/main/workspace/code/mtw/BMI160_Motion_Sensor_over_I2C_FreeRTOS'.
Acquiring the application source 'https://github.com/Infineon/mtb-example-psoc6-bmi160-motion-sensor-freertos'.
usage: git remote add [<options>] <name> <url>
-f, --fetch fetch the remote branches
--tags import all tags and associated objects when fetching
or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch>
master branch
--mirror[=(push|fetch)]
set up remote as a mirror to push to or fetch from
Application acquisition failed.
ERROR:Application creation failed.
ERROR:there was an error retreiving the asset 'https://github.com/Infineon/mtb-example-psoc6-bmi160-motion-sensor-freertos' commit 'latest-v2.X' - usage: git remote add [<options>] <name> <url>
ERROR: -f, --fetch fetch the remote branches
ERROR: --tags import all tags and associated objects when fetching
ERROR: or do not fetch any tag at all (--no-tags)
ERROR: -t, --track <branch> branch(es) to track
ERROR: -m, --master <branch>
ERROR: master branch
ERROR: --mirror[=(push|fetch)]
ERROR: set up remote as a mirror to push to or fetch from
ERROR:error cloning git asset 'https://github.com/Infineon/mtb-example-psoc6-bmi160-motion-sensor-freertos'-usage: git remote add [<options>] <name> <url>
ERROR: -f, --fetch fetch the remote branches
ERROR: --tags import all tags and associated objects when fetching
ERROR: or do not fetch any tag at all (--no-tags)
ERROR: -t, --track <branch> branch(es) to track
ERROR: -m, --master <branch>
ERROR: master branch
ERROR: --mirror[=(push|fetch)]
ERROR: set up remote as a mirror to push to or fetch from
Skipping export of the "BMI160_Motion_Sensor_over_I2C_FreeRTOS" application to Eclipse IDE for ModusToolbox™.
19 error(s), 0 warning(s)
Summary:
ERROR:Failed to create and export "BMI160_Motion_Sensor_over_I2C_FreeRTOS" application.
But when I manually pull this commit(git clone --depth 1 --branch latest-v2.X https://github.com/Infineon/mtb-example-psoc6-bmi160-motion-sensor-freertos) everything works fine, what could be the issue?
Screen with error log in ModusToolBox IDE is below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check if you have done everything as described in the https://www.infineon.com/dgdl/Infineon-ModusToolbox_3_0_Installation_Guide-GettingStarted-v01_00-EN....
section 6 Installing with spaces in user home directory
There is quite a few system variables you need to get setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for pointing out! I I followed the instructions in the sixth section and now everything works.