I have MPLAB v7.40 and have written many successful programmes, but I would like to know if there is an easier way to create a new project than the following:-
Select Project/New
Enter project name eg. "test"
Click on "Browse" and select a folder.
A small window "test.mcw" appears with a folder "test.mcp" and several sub folders such as "Source files".
So far so good.
But how do I start a source code file?
I've tried various methods to achieve this end, but the only one that works is as follows:-
Click on the "New file" icon in the Toolbar.
A window appears "MPLAB IDE Editor" with "Untitled" in the top left corner.
I then type in the code.
But if I press button F10 to assemble, a "Save as" window appears, so I type in the file name, eg. "test" and click on
"Save".
The following message appears:-
"Build aborted. The project contains no source files"
However, the "Untitled" tag changes to "test.asm".
Now if I right click on the "Source file" folder in the "test.mcw" window and add the "test.asm" file, I can press F10
and then the code will assemble successfully.
This seems to be a clumsy procedure, is there a simpler method?
I prefer using the Project Wizard as it presets the processor type, language toolsuite, file/folder locations, etc. Then I "open" an existing template 'asm' file, do a "save as" to the new project folder, and "add file to project". The whole process takes less than a minute.
I prefer using the Project Wizard as it presets the processor type, language toolsuite, file/folder locations, etc. Then I "open" an existing template 'asm' file, do a "save as" to the new project folder, and "add file to project". The whole process takes less than a minute.
hi,
This is way I also start a new project, then open the source window and add a suitable header file.
I know that the templates for each PIC can be found in the MPLAB folders, but I prefer to use my own header file as it has my include files and other details.