Alain,
I recopied the code from your post. Still getting
Symbol not previously defined (PortC)
Symbol not previously defined (TRISC)
etc etc etc
Alain,
I recopied the code from your post. Still getting
Symbol not previously defined (PortC)
Symbol not previously defined (TRISC)
etc etc etc
Hi,
Got it ...
This is from a Melab's errata sheet Darrel Pointed at some times ago ....Devices affected: 16F1826, 16F1827
Date encountered: 08/2009
Error class: safe (always reported)
There are invalid port aliases in the PBP header file for these parts. The following assembly errors will be generated:
Symbol not previously defined (PORTC)
Symbol not previously defined (TRISC)
Workaround:
Edit the files 16F1826.BAS and 16F1827.BAS (found in the PBP install folder) as follows:
PORTL VAR PORTB
PORTH VAR PORTA ' PORTC invalid, change to PORTA
TRISL VAR TRISB
TRISH VAR TRISA ' TRISC invalid, change to TRISA
I made the mod a while ago ... so couln't see what's wrong.
Have a nice evening
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Alain,
Ok getting somewhere now. When I comment out all the fuse configurations between the ASM and ENDASM I get no errors. With all the mods that you suggested.
I am down to 3 errors.
overwriting previous address contents (8007)
symbol not previously defined (_CAPEN_OFF)
overwriting previous address contents (8008)
What other files do I have to modify to get rid of these errors?
Nick
Alain & Bruce,
I almost resolved all the errors by modifying the files you and Bruce suggested, except for 1. I went into 16F1827.INC (PBP file) and commented out existing fuse settings and let the main code define those functions. So of the 3 remaining errors, 1 is left _VCAPEN_OFF symbol not previously defined.
I opened up the P16F1827.INC (MPASM file) to see if there is an address for _VCAPEN_OFF....it is not listed at all...not even under Config1 or Config2.
Wow this has been an uphill battle getting this thing to compile. Any suggestions on how to resolve this last issue would be appreciated.
thanks,
Nick
Just remove _VCAPEN_OFF from your config line.
It's definitely in my P16F1827.INC file, but if Microchip has updated include files, it may
not be in the one you have. It should work either way.
Bruce,
Thanks for the help. It compiled without errors. Now off to testing! I will post back my results later.
Nick
I'll bet this thread has already saved me much frustration and gnashing of teeth.
I assume that, when the device is erased, the CONFIGx registers are all 1s; and that all I have to specify are the parameters that would require a 0 to get what I want. Anything wrong with that assumption?
Russ
N0EVC, xWB6ONT, xWN6ONT
"Easy to use" is easy to say.
Hello Macgman2000
Were you ever able to get anything working? If so how?
I've followed the suggestions in this thread, although all my files were already updated in my v2.60a. I still get the errors. I have the latest and greatest Mplab and Bruces' code simply will not compile.
Hi Ioannis,
In an early data sheet (and silicon I assume?) this was a config2, bit 4 option like in the 16F193x series for the voltage regulator capacitor enable/disable.
It magically vanished when the newer data sheet & .inc files were released, so I would just ignore it.
If you look in the CONFIG 2 section you'll see where they changed bit #4 to Reserved. Not sure what happened?
Bookmarks