Unchanged progam does not compile today??


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2023
    Location
    Cape Town, South Africa
    Posts
    26

    Default 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?


    Name:  Clipboard01.jpg
Views: 587
Size:  208.9 KB

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default 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
    Warning I'm not a teacher

  3. #3
    Join Date
    Mar 2023
    Location
    Cape Town, South Africa
    Posts
    26


    Did you find this post helpful? Yes | No

    Default 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.

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default 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
    Warning I'm not a teacher

  5. #5
    Join Date
    Mar 2023
    Location
    Cape Town, South Africa
    Posts
    26


    Did you find this post helpful? Yes | No

    Default 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 )
    Last edited by Gerald; - 28th March 2023 at 09:58.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default 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

  7. #7
    Join Date
    Mar 2023
    Location
    Cape Town, South Africa
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: Unchanged progam does not compile today??

    Quote Originally Posted by Ioannis View Post
    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

  8. #8
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Unchanged progam does not compile today??

    Many times the chip type on MCS does change on its own! Be careful on that.

    Ioannis

  9. #9
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default 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.

Similar Threads

  1. Wow! SPAM storm today!
    By andywpg in forum Off Topic
    Replies: 13
    Last Post: - 20th December 2016, 09:57
  2. Installing today
    By Michael in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th August 2016, 16:01
  3. Wow! Lotsa Trolls here today!
    By andywpg in forum Off Topic
    Replies: 9
    Last Post: - 23rd December 2013, 03:37
  4. 6 birthdays today
    By JD123 in forum Off Topic
    Replies: 0
    Last Post: - 5th April 2008, 17:07

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts