[Flashforth-devel] MPLAB config files
Brought to you by:
oh2aun
From: <zd...@al...> - 2016-05-08 21:50:28
|
For the second time in 3 months I've been loosing time looking for the non existent bugs, so I would like to prevent the others falling into a same hole. In my MPLAB (8.92), when I open the FF_UART project for PIC18 it contains 11 'other' files: Two are marked as "file not found": install.txt readme.txt Everything works without them so they could be removed from the project. Then, there are 7 different .cfg files for specific PIC models of families. It is not clear if you should remove the files that are not exactly for your PIC. These 2 files are neccesary in every case: pic18f-main.cfg pic18fxxxx.cfg The problem is, these 2 files are also included in .asm: #include "p18f-main.cfg" #include "p18fxxxx.cfg" So they are processed twice, first as specified in project, second time from a folder with the .asm file (and there are a few good reasons why to keep them in a separate folders). Of course, second pass overrules the previous settings. As my .asm was in a different folder I was getting wrong baud rate calculation for 48 instead of 64 MHz. I would suggest removing all #include from .asm and placing only 3 files on project include list: pic18f-main.cfg, pic18fxxxx.cfg and readme.txt with short explanation about which .cfg files are neccessary. Should 'clock =' go out of 'main.cfg' into .cfg specific for each PIC? Any thoughts on that? Zdravko |