Distribute the Project

This section requires embedXcode+. Once the code has been formatted and the documentation generated, the project can be distributed.

To distribute the project,

  • Select the Distribute target.

  • Press Run.

A new folder Distribution is created and contains the documentation if a PDF file if available, and two sub-folders embed1 and Builds. The name of the folder Distribution mentions the date and the time, 2017-10-12 11-14-50 here.

The sub-folder embed1 is named after the project. It contains all the headers .h, code files .cpp and the main sketch .pde, .ino or .cpp.

The sub-folder Builds contains the compiled files .elf, .hex or .bin, and a .board file with the name of the board the project was compiled against, MSP-EXP432P401R in this example.

The All Messages window provides the list of the files copied to the Distribution folder.

In case the project contains pre-compiled libraries, the Distribution folder includes the header file and the pre-compiled libraries, but excludes the renamed code source files, here LocalLibrary.h and LocalLibrary.a but not LocalLibrary._cpp.

The All Messages window provides the list of the files copied to the Distribution folder.

  • Remember the pre-compiled libraries are only valid for the board or MCU they have been compiled against.

embedXcode checks the validity based on the .board file, in this example arduino_zero_native. Do not use them with another board or MCU.

For more information on how to generate pre-compiled libraries,