
Originally Posted by
jellis00
I already had the VDD PICK2 On box checked to power up the Demo board.
I tried to compile the code sample you provided that you say runs with this Demo board and I get a error 118...Overwriting previous address contents., and a large number of Errors #113..Symbol not previously defined.
Any other suggestions as to how to get the program to run??
Ok, that is easy. In the PBP root directory there are files named for the PIC you are using, ending with the suffix .inc and in these files are "DEFAULT" config statements, like the one at the beginning of the code I listed. Open the 16F690.inc file located there and find the config line, The MPASM config line will say this
Code:
__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
Add an ; semicolon like so
Code:
;__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
and that will solve the overwrite issue, you will for evermore have to include a config line into the code you write for this chip unless you change it back. OR you might try commenting it out in my code. Let's face it, the DEFAULT configs are there so noobies can get some code to run without knowing anything about config fuses, personally I think they serve to confuse people more than help, better I say, put this information in the manual and all the books on PICs.<br>By putting the configs in your code, it becomes easy to change oscillator, and MCLRE statements etc . . .<br><br>Now as for Symbol not previously defined, 2 main causes are inaccurate choices of symbols like BOR or MCLRE and others too, and The other MAIN reason is not having selected the correct PIC in Microcode Studio, and since I KNOW this code is correct, I would say that is the problem there. I notice it gets changed sometimes (which PIC is selected ) from the last I ran it. So you need to always check that first on compile failure with symbol error.
Last edited by Archangel; - 21st March 2009 at 05:59.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks