Thursday 14 May 2009

Notes on file names in MPLAB

I was trying to create a new project based upon a previous project, but in a different folder. Easy right?
I thought just copy to another folder and rename. This did not work so well.
Here are some things to consider:
Firstly move the files (don't forget to include everything like the .c and .h files) to your chosen location.
Then open the project.
Choose 'Save Project as' from the 'Project' Menu. (I would not use the 'save workspace as' option as this caused me some hassles).
You then need to make sure that the directories all point to the correct place. Do this by checking in Project - Build Options - Project. Then click on the Directories tab and go through all the directories paths in the drop down menu.
Lastly - the code will not fully compile if the full path name exceeds 62 characters. This was really annoying and not quite sure why this is. The code will build but the correct hex output file will not be created. So keep this in mind when doing all these steps.

No comments:

Post a Comment