Error when compiling- New user lots of questions


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Joe, you're correct. 18Xxxxx need MPASM or i will never compile anyway.

    Let's open any 18Xxxx.INC in PBP folder..
    Code:
            NOLIST
        ifdef PM_USED
            LIST
            "Error: PM does not support this device.  Use MPASM."
            NOLIST
        else
            LIST
            LIST p = 18F452, r = dec, w = -311, w = -230, f = inhx32
            INCLUDE "P18F452.INC"   ; MPASM  Header
            ;__CONFIG    _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
            ;__CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
            ;__CONFIG    _CONFIG4L, _LVP_OFF_4L
            NOLIST
        endif
    If you don't select MPASM, it will show you that message.

    At very least, this is one reason why i don't use PM, always MPASM. Kinda annoying stuff to switch everytime between one and the other.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default

    Hmmm,
    I'm going to have to look and see if I can figure out which compiler was originally used. I know that I did have the MPASM checked and I did change the chip.

    I haven't had a chance to go through all the posts and suggestions yet. Hopefully today.

  3. #3
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default

    So, as best I can tell. I have everything set up right, not that that means much. However, I still get the errors.

    I've attached the code, pbc file-zipped.

    Any help is appreciated.

    Thank you,
    Attached Files Attached Files

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Can you post your 18F6520.inc file here?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default

    I can post that. However, what's the best way to make sure I find and post the right file?

    I ask because I have PicBasic, PicBasicPro and the free IDE from Microchip on my computer. So I got to thinking that there might be more than one version on my computer. Is there a way to tell where PicBasicPro is looking?

    Thank you

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    OK, the file i'm talking about is located in the PBP folder. Just to make sure it's the right one, you could still rename it and try to compile... if this return an error, you got it.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default

    Alright, so needless to say with the different free IDE's I'd downloaded before I finally coughed up for the paid versions, I had several duplicate files on my computer. I found the one the computer was using and it is now attached. I looked at the file and saw the areas that it looks like the code is noting to change but wasn't sure how to change.

    Okay, so I tried to make changes and deleted some lines and played around with others and then just got more errors. But I viewed that as a positive thing as I was able to at least evoke a change to the system. Going in the wrong direction, but sometimes any movement is good!

    I appreciate everyone's patience and input.
    Attached Files Attached Files

Similar Threads

  1. LOTS of questions....
    By reaper0995 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2008, 17:00

Members who have read this thread : 0

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