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

cross mob

ModusToolbox™ Offline Libraries

ModusToolbox™ Offline Libraries

markgsaunders
Employee
Employee
50 sign-ins 10 solutions authored 5 solutions authored
Update (June 2023): with the release of ModusToolbox 3.1 the offline content support has been deprecated in favor of the new local content storage feature. Working offline is now easier than before and users are able to update their local content without waiting for a release off the offline package. Offline content packages will continue to work in a ModusToolbox 2.x and 3.0 environment but are not supported from the 3.1 release and will no updates to the package are planned.

 

This package enables you to use ModusToolbox Project Creator and Library Manager tools without a persistent internet connection. It contains all the ModusToolbox repos referenced in the ModusToolbox manifest files. We continue to recommend working with the online content - so you always have access to the latest software - but this is a useful alternative method of accessing libraries for users who are frequently working offline.

ModusToolbox™ Offline Content Package v1.3 (November 2022) adds support for ModusToolbox 3.0 and all the latest code examples, middleware and BSPs. It is now available from the Infineon Developer Center, here:

https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolboxofflinecontentpackage

Installation

1. If you do not already have a hidden directory named .modustoolbox in your home directory, create one. Using Cygwin on Windows for example:

mkdir -p "$USERPROFILE/.modustoolbox"

Note: If you installed ModusToolbox in a non-default location, modify the command for the appropriate location of the .modustoolbox folder. Refer to the ModusToolbox Installation Guide for additional details (infineon.com/ModusToolboxInstallguide).

2. Extract the ZIP archive to the ~/.modustoolbox sub-directory in your home directory. The resulting path should be: ~/.modustoolbox/offline.

The following is a Cygwin on Windows command-line example to use for extracting the content:

unzip -qbod "$USERPROFILE/.modustoolbox" modustoolbox-offline-content.zip

Note: If you previously installed a copy of the offline content, you should delete the existing ~/.modustoolbox/offline directory before extracting the archive. Using Cygwin on Windows for example:

rm -rf "$USERPROFILE/.modustoolbox/offline"

Usage

To use the Project Creator CLI in offline mode, execute the tool with the --offline argument. For example:

project-creator-cli --board-id CY8CPROTO-062-4343W --app-id mtb-example-psoc6-hello-world --offline

To use the Project Creator GUI or Library Manager GUI in offline mode, select 'Offline' from the 'Settings' menu (refer to the appropriate user guide for details).

The tools execute the "make getlibs" command under the hood to download/update the firmware libraries. To execute the 'getlibs' target in offline mode, pass the CY_GETLIBS_OFFLINE=true argument:

make getlibs CY_GETLIBS_OFFLINE=true

Refer to the ModusToolbox User Guide for additional details (infineon.com/ModusToolboxUserguide).

Third-Party Dependencies

ModusToolbox Offline Content might include 3rd-party code libraries that include a subset of their project history. If you would like to download the full historical information for third-party content manually, execute the following commands in a terminal:

git -C ~/.modustoolbox/offline/git/https___git.savannah.nongnu.org_git_lwip/lwip fetch --unshallow

git -C ~/.modustoolbox/offline/git/https___github.com_ARMmbed_mbedtls/mbedtls fetch --unshallow

git -C ~/.modustoolbox/offline/git/https___github.com_aws_aws-iot-device-sdk-embedded-C/aws-iot-device-sdk-embedded-C fetch --unshallow

git -C ~/.modustoolbox/offline/git/https___github.com_JuulLabs-OSS_mcuboot/mcuboot fetch --unshallow

Note: If you installed ModusToolbox in a non-default location, modify the command for the appropriate location of the .modustoolbox folder. Refer to the ModusToolbox Installation Guide for additional details (infineon.com/ModusToolboxInstallGuide).

 

8525 Views
Comments
MaRi_4773796
Level 2
Level 2
10 replies posted 5 replies posted 5 likes given

This bundle of the libraries is now out of sync with the online content.  Anyway of modifying these so that we can have the most recent content?

ChristopherF_51
Employee
Employee
100 sign-ins 25 solutions authored 10 likes given

A new version of the bundle (1.3) has been released that provides support for ModusToolbox 3.x