Error when compiling- New user lots of questions


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Which assembler are you using? The question is easy, if you did not change to MPASM then the answer is PM. Those messages looked to me like MPASM errors and I treated them as such. To change assemblers, at the top of Microcode studio, click view, move down the list to Compile and Program Options and click. A window will open with 3 tabs at the top, click on assembler, there is a box marked Use Mpasm. It must be checked if you want to use mpasm, if not checked you will be using PM. Right now it is only important to know which assembler you are using, because they use different config statements, and those statements will give you a long list of errors if mixed. Check the link posted to see the differences.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    You know ,I am not sure, but I think you have to use MPASM to program 18fxxx chips. . .
    JS
    Last edited by Archangel; - 2nd October 2007 at 06:47.
    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.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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

  5. #5
    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.

  6. #6
    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

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

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