1 Attachment(s)
Unchanged progam does not compile today??
I have been working with program for a number of days and suddenly this morning I get this compile error. I had also saved another version of that program earlier this morning, and that also fails now. It turns out any version that I save today has the problem. Does the Experimenter version have a cutoff date?
Attachment 9343
Re: Unchanged progam does not compile today??
i hope you don't expect much help posting pictures of code.
there is every chance in that blurry pic that the config word is not correct for the chosen chip
Re: Unchanged progam does not compile today??
I have not changed anything in that part of the program for the last 50 revisions over a few days. If I take that line out, it objects to the next line, etc.
Re: Unchanged progam does not compile today??
you need to supply more information
pbp version ?
chip ?
actual code not a blurry picture
would a good start
Re: Unchanged progam does not compile today??
Uninstalled the compiler, downloaded a fresh Student edition and the problem is solved. Thanks for considering it anyway. (I can't help that this forum makes a blurry pic - https://www.picbasic.co.uk/forum/att...3&d=1679985701 )
Re: Unchanged progam does not compile today??
Are you sure you had the correct chip selected? I see a 16F1937 selected but that chip does not have ANSEL register.
It has ANSELA, ANSELB and ANSELE.
So the error message was correct!
Ioannis
Re: Unchanged progam does not compile today??
Quote:
Originally Posted by
Ioannis
Are you sure you had the correct chip selected? I see a 16F1937 selected but that chip does not have ANSEL register.
It has ANSELA, ANSELB and ANSELE.
So the error message was correct!
Ioannis
Indeed! I must have changed the chip type by mistake with all the visits to the Compile button right next to it (The 16F1937 is the next one on the list)
See, my Australian friend, posting the pic in this case was far more enlightening than posting the code :)
Re: Unchanged progam does not compile today??
Many times the chip type on MCS does change on its own! Be careful on that.
Ioannis
Re: Unchanged progam does not compile today??
Say you have your code window opened, ant it is set for 18F45K80 chip.
You click on "new" code window, it opens, and by default it is set to 16F628.
Now if you just switch to your code for 18F chip, MCU type for it will also change to 16F628, causing compile errors.