The preceding examples assume that the support packages required to carry out the download or debugging have already been installed using CrossStudio's package manager. On some systems however, it is not possible or desirable to use CrossStudio to do this. This section describes how to manually install packages from the command line and specify where CrossLoad should look for them.

The first thing to do is decide on the directory path to store the installed packages, we're going to use an environment variable PACKAGES_DIR to specify this. For example:

  export PACKAGES_DIR=/my_crossload_packages

Please note, Windows command prompt users should use set instead of export and %PACKAGES_DIR% instead of $PACKAGES_DIR.

Next, we need to get hold of the package .hzq or .hzr files to be installed. These can be downloaded from our package website or package archive.

Once we have got the package files, the mkpkg tool can be used to install the packages. For example:

  mkpkg -x CMSIS_3.hzq $PACKAGES_DIR
  mkpkg -x LPC1000.hzq $PACKAGES_DIR

By default, CrossLoad will look for packages in CrossStudio's packages directory. We can override this so that our local package installation is used instead with CrossLoad's -packagesdir option. For example:

  crossload -packagesdir $PACKAGES_DIR -target usb -solution MySolution.hzp -project MyProject -config Debug