PDA

View Full Version : Compile Error



longdw
- 19th March 2010, 19:05
I recently re-installed MPlab.
After that I started getting compile error -
Error[113]c:\pbp\18f4550.inc 21 : Symbol not previously defined (_FCMEN_OFF_1H)

I recall having this problem when I first started using PBP.
The fix was to change from MPASMWIN.exe to MPASM.exe.
I replaced MPASMWIN.exe with MPASM.exe and it now uses the right
asm but still get the error.

Can't remember how to get rid of that error ????????

Thanks

Darrel Taylor
- 20th March 2010, 19:30
Some time ago, Microchip had an error in the P18F4550.inc file.
It was corrected in subsequent versions, so you are probably using an older one.

From the file ... C:\Program Files\Microchip\MPASM Suite


; these are correct
_FCMEN_OFF_1H EQU H'BF' ; Fail-Safe Clock Monitor disabled
_FCMEN_ON_1H EQU H'FF' ; Fail-Safe Clock Monitor enabled
Was originally spelled ...


; these are not correct
_FCMEM_OFF_1H EQU H'BF' ; Fail-Safe Clock Monitor disabled
_FCMEM_ON_1H EQU H'FF' ; Fail-Safe Clock Monitor enabled

You can just correct the spelling to fix the error.

And you should not be renaming MPASMWIN executables.
<br>

longdw
- 22nd March 2010, 16:04
I made changes to the .inc and it compiled fine.
Thanks Darrel !!!
P.S. I hope you haven't been giving the Bucks & 10 in March....:)