We now have a file sitting on our PC which we want to send into the PIC itself. A program has been provided which will do this for you. It is called "mLoader / PPP". The program will download to the device and run automatically when you have pressed the following button within MPLAB X IDE:
We have assigned this functionality by adding a command to the end of the build process in the project options.
If the program has compiled and linked correctly, then the mLoader / PPP program will automatically begin downloading the appropriate code to the PICmicro. You will see the progress of this download displayed onscreen like this:
If everything went well then your program should now be running within the PICmicro.