Hardware Tool Connections
Each MPLAB® X project can have its own tools, the connection to the hardware is made after Debug & Run is requested.
When using one or a few projects, keeping the tools always connected (not just at runtime) saves initialization time. When switching projects with this option selected (e.g., when developing bootloading applications), it ensures that the tool and device are the same, to avoid error messages. This option also saves time when you select debug run again because the tools are already connected to the project and don't need to be initialized again. The following steps demonstrate how to maintain connections to the hardware tool.
1
From the main menu select Tools > Options (mplab_ide > Preferences on a Mac®).
2
Click on Embedded tab (second from the right).
3
Select Generic Settings (third small tab from the left).
4
Select Maintain active connection to hardware tool.