Content Manager
Introduction
Content Manager GUI helps in managing packages. It displays locally downloaded packages and remote packages available for download in a easy to use graphical interface. User can checkout remote packages or update locally downloaded packages once remote version is updated. It helps in managing package dependencies.
Launch Content Manager
Method 1 : Plugin Installation
The MHC is available as a plugin extension to the MPLAB® X IDE and as a standalone Java application for use with other tool suites (see here for details). Regardless which form you choose, there are some prerequisites that you must have installed first. Additionally, you will need to have a supported 32-bit MCU board on which to program, run, and debug your application.
Prerequisites for MHC use as an MPLAB® X IDE Plugin
- Install the MPLAB® X IDE, available from www.microchip.com/mplab.
- Install the XC32 C/C++ compiler for support of all Microchip 32-bit MCUs, available from www.microchip.com/xc32.
Installing MPLAB® Harmony Configurator from the Microchip Plugins Update Center The MHC is not automatically installed with MPLAB® X IDE. You will need to take additional steps to download and install it through Microchip Plugins Update Center:
Steps
- Open the MPLAB® X IDE.
- In the top-level menu, select to Tools > Plugins.
- In the Plugins window, select the Available Plugins tab.
- Select MPLAB® Harmony Configurator 3 from the list of available plugins and click the Install button. The Plugin Installer opens.
- Click Next and review the License Agreement.
- Click Install when you are ready for the Plugin Installer to begin downloading the MHC plugin. When the MHC plugin download is complete, MPLAB® X IDE will ask to be restarted.
-
Select Restart Now and click Finish. Upon restart, the plugin is installed. You can now open MHC on a new or already existing MPLAB® X IDE project.
Figure 1-1. Framework Installation Path
From the Tools > Embedded > mplab® Harmony 3 Content Manager menu option.
Figure 1-2. Launch Content Manager
Downloading Harmony Packages
After launching the MPLAB® Harmony Content Manager, you will need identify the local folder to which you wish to download the MPLAB® Harmony packages and you will need to direct the downloader to the repository server.
Server1: https://github.com/Microchip-MPLAB-Harmony/
Server2: https://gitee.com/Microchip-MPLAB-Harmony/
-
In the Content Manager input Path dialog, select the desired framework installation folder (create a new folder if required, by using browse button).
Figure 1-3. Framework Installation Path
-
Provide the repository URL and test the connection. You can change the default selected remote url by expanding combo box.
Figure 1-4. Repoisitory URL
-
Test connection by clicking the Next button.
Figure 1-5. Click Next
-
Test Conection Status
Figure 1-6. Connection Status
- After checking test connection, it will clone the latest content manager downloader tool to selected local harmony path and will launch automatically.
- Initial Loading Screen
- Content Manager Latest Version.
- Latest Version will be updated dynamically
- Downloading Catalog information
- It will fetch both local(if already local packages available) and remote packages catalog information.
- Selected Local Harmony Path
- Show Log
- Remote Connection Status
- Settings Option
- Don’t change any settings while some operations are in progress.
- Latest News about Harmony Packages
Figure 1-7. Content Manager Catalog Downloading
- Content Manager Latest Version.
-
Show Log Screen
Figure 1-8. Show Log Screen
- Initial Loading Screen
- Content Manager GUI
- Downloader Screen
- All remote packages will be listed under remote packages section. Packages which are already cloned will not be listed here.
- Package detailed web information can be viewed by clicking info icon.
- Each remote package dependencies will be shown (if available).
- All license can be viewed and accepted at once by clicking View & Accept Licenses hyperlink.
- All packages can selected/unchecked by using Select All checkbox.
- Multiple packages can be downloaded by clicking Download Selected link.
- Single package Download
- Dependencies packages also will be marked to download based on user choice.
- Package Title : This title helps to identify the group of packages which contains both parent package and its related application packages together.
- Treeview support to added to fold/unfold the group of packages.
Figure 1-9. Content Manager GUI
- License Dialog
- All license names will be listed here.
- List of packages will be updated based on selected license name
- License information
- Accept selected license
- Navigate to next license by clicking on Next button.
- Navigate to previous license by clicking on Previous button.
- Accept all licenses at one click
-
Close License Window
Figure 1-10. License Dialog
- Downloading Remote Packages
- Individual remote package download progress status
-
Global download status of current downloading packages.
Figure 1-11. Downloading Packages
- Local Packages
- Local Package tab
- This local package is synchronized with remote version. (No update required)
- Local package need to be updated. (Higher version available in remote)
- Package is not cleaned and update also required. Can be cleaned through local package settings option.
- Local Package Settings Option (Explained below)
- Checkout to different versions.
- Package is synchronized but not cleaned.
- Dependencies Checkout (Explained below).
- Web link
- Application Browser (Explained below)
- Select All Packages
- Clean Selected Packages
- Update Selected
- Delete Selected
-
Load Manifest (Explained below)
Figure 1-12.1. Local Packages
- Load Manifest
-
Click on “Load Manifest” link to checkout all project dependency packages.
Figure 1-12.2. Load Manifest
-
After clicking on load manifest, we need to select harmony project directory to load manifest file automatically (harmony-manifest-success.yml).
Figure 1-12.3. Load Manifest
- Table Columns (If tick mark selected):
- Download: If target dependency package is not available locally, then it need to be downloaded from remote.
- Clean : Target dependency package is not cleaned.
- Update : Target dependency package need to be updated.
-
Checkout : Target dependency package need to be checked out.
Figure 1-12.4. Load Manifest
- This action will result of auto download/clean/update/checkout of project dependency packages. So, please beaware of your local changes before clicking “ok” button.
-
- Dependencies Checkout
-
Click on dependency icon to checkout the package dependencies.
Figure 1-12.6. Dependency Checkout
- This icon will not be visible, if all dependencies are already checked out to target versions.
-
After clicking on dependency icon, all required operations like download/clean/update/checkout data will be shown in a table.
Figure 1-12.6. Dependency Checkout
- This action will result of auto download/clean/update/checkout of dependency packages. So, please beaware of your local changes before click “ok” button.
-
- Local Package Settings
- Clean Package
- Delete Package
-
Open Local Package Directory
Figure 1-12.7. Local Package Settings
- Application Browser
- Application Browser Tab
- Demo Application
- Description of applicaion
- Individual project web help (Offline)
- Select Project to copy
- Enter keyword to search desired applications.
- Current listed projects count.
- Change category type to view respective type of applications.
- Select all
- Copy selected projects to specified user directory.
-
Refresh browser to browse latest downloaded projects.
Figure 1-14. Application Browser
- Downloader Screen
Method 2 : Launch Content Manager in Stand Alone Mode
- Go to Content Manager directory from local harmony path.
-
Cloned latest Content Manager directory.
Figure 2-1. Content Manager Directory
-
Content Manager can be launched Stand Alone by double clicking the jar.
Figure 2-2. Content Manager Jar
-
Note 2-> Regarding Content Manager future updates
- Case 1: If user selects new local harmony path->
- Then always latest content manager will be cloned to selected harmony path and will be launched.
- Case 2: If user selects exising local harmony path->
- If user is having internet connection, then existing content manager will be deleted locally and latest content manager will be updated. (Older content manager will be replaced by latest one)
- If user doesn’t have internet connection, then locally existing content manager will be launched.
Network Ports Usage
This section describes which network ports are used in Content Manager. This may help users on configuring their proxy/firewall/antivirus properly.
Content Manager is independant from MPLAB X. It is using system settings regarding proxy. If user machine doesn’t allow the Content Manager to create connections on 443, then it can not download any repositories. So, you must not deny the Content Manager to create https connection with Github in port 443.
The Windows only git service (based on libgit2) is using random port on localhost. So, please make sure that it is not blocked by security tools.
Port | Service | Description |
---|---|---|
443 | HTTPS | Access to the web application and Git over HTTPS. |
80 | HTTP | Access to the web application. All requests are redirected to the HTTPS port when SSL is enabled. |
random | proprietary | Windows only. Localhost connection on git service (faster cloning) |