MPLAB® X IDE provides scripting capabilities to control the IDE behavior programmatically. 32-bit SAM microprocessor (MPU) projects in particular need to use scripts to support bootstrapping. However, scripts can be used with MCU projects as well.
The scripts are written in Jython. The scripts have access to an API that allows you to:
If you create a project for a 32-bit SAM MPU, the project wizard will add a “Script Files” folder to your project and a default autoload.py file in that folder.
If you have an existing project to which you would like to add scripting features, follow the steps:
For a 32-bit SAM MPU project, edit the autoload.py file for your project, shut down and reboot MPLAB X IDE, and debug your application.
For the example project, there is also a “Tests” folder. Simply run the scripts under “Tests” as needed.
Unedited Example autoload.py in Project
For more information on scripting, see the "IDE Scripting (autoload.py)" page (206) of the "MPLAB X IDE User's Guide."