Originally Posted by
PerlNoerd
Very interesting, Darrel: Blink.pbp works for 16F88! It's only 18F that are affected by the problem.
Then here's what you will find ...
If you open the .LST file (after compiling for an 18F), and scroll down to the end of the code (just before the symbol table), you should see that the errors happen at the assembly language END statement.
This is AFTER all of PBP's code.
It will look something like this ...
Code:
Error[118] : Overwriting previous address contents (0000)
Error[118] : Overwriting previous address contents (0001)
Message[303]: Program word too large. Truncated to core size. (002E1888)
Error[154] : Each object file section must be contiguous (section .config_000000_3LINE.O)
Error[118] : Overwriting previous address contents (0000)
Error[118] : Overwriting previous address contents (0001)
00223 END
If you search the Microchip forums for ""Each object file section must be contiguous" you'll see that many people have had the problem.
I don't think anyone has ever isolated what actually causes it, but it appears that some programs install a new common file in the OS that breaks MPASM.
Office 365 seems to be one program that causes it, but there may be others.
It doesn't matter what you have in your code, and it was just coincidental that you used the CODE_SIZE module when you noticed the problem.
I'm sorry, but the only fix seems to be re-installing the OS, and being careful what you install, or checking MPASM after you install anything.
Please keep in mind that this is not a problem with PBP.
Bookmarks