Problems with mpasm


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1
    electrosolve's Avatar
    electrosolve Guest

    Default Problems with mpasm

    Hi All

    I need to modify an existing program to include the floating point maths routines from Microchip. To do this I understand I have to compile using mpasm.

    Before trying to use the routines from Microchip, I have tried assembling my existing program using mpasm. This produces a number of errors

    All of the errors produced are "Symbol not previously defined"

    These are a few of them

    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 766 : Symbol not
    previously defined (PCLATH)
    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 773 : Symbol not
    previously defined (PCLATH)
    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 712 : Symbol not
    previously defined (PCLATH)
    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 719 : Symbol not
    previously defined (PCLATH)

    The program compiles fine using the Melabs assembler.

    The device is a 16F876

    Any ideas?

    Thanks

    Reg Smith

  2. #2
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    i'm having the same problem

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


    Did you find this post helpful? Yes | No

    Default

    Did you checked the wind direction?

    CODE (ALL)
    PIC
    PBP version
    MPASM VERSION
    Last edited by mister_e; - 30th April 2008 at 23:13.
    Steve

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

  4. #4
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default MP vs MPASM

    Hi,
    I am new to this forum: I do have the same problem: I compile a basic program with MP and everything goes fine. If the same program is compiled using MPASM I do have the same error list.
    Have you some directions for me ?
    Thanks
    Ambro
    IW2FVO




    Quote Originally Posted by electrosolve View Post
    Hi All

    I need to modify an existing program to include the floating point maths routines from Microchip. To do this I understand I have to compile using mpasm.

    Before trying to use the routines from Microchip, I have tried assembling my existing program using mpasm. This produces a number of errors

    All of the errors produced are "Symbol not previously defined"

    These are a few of them

    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 766 : Symbol not
    previously defined (PCLATH)
    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 773 : Symbol not
    previously defined (PCLATH)
    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 712 : Symbol not
    previously defined (PCLATH)
    Error[113] C:\OLDHARD\PROGRAMS\PBP\PBPPIC14.LIB 719 : Symbol not
    previously defined (PCLATH)

    The program compiles fine using the Melabs assembler.

    The device is a 16F876

    Any ideas?

    Thanks

    Reg Smith

  5. #5
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Default

    I'll take a guess, how old is your version of MPASM? I think the new one is 5.14. As Steve mentioned, it's easier to get help if you post the code, and version numbers, as chips, programs, etc. change pretty often, and they update the include files, etc. fairly often.
    HTH,

    Jerry
    If your oscilloscope costs more than your car...

  6. #6
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default fp, mpasm, pm, mplab

    Hi,
    first of all i have to apologize in advance because of my English ( I am Italian ) and because i am very new to this forum and to PIC world.

    I wrote a basic program for the 877 target pic and I found stange behaviors of the system.
    The source is written using microcode studio.
    The program uses a FP routins called DDS in the source file. If the DDS routine is included in a subroutine then i do not have any compiling error BUT the pic does not work at all.
    If I call out the routine every time it is needed then the system works . If the routine is called out more than three times then no error during compiling is observed BUT the Pic does not work.
    I did several tentative using the MPASM and using the MPLAB : the error lists are attached .
    I did rem_out the first two lines of the program using Mpasm. Using Mpasm I did rem_out "c" and "z" register bit declaration to avoid additional errors !
    I am not really sure if the use of FP routines have some limitation...
    Thanks a lot for any direction on the matter.
    Ambrogio
    IW2FVO


    Quote Originally Posted by b1arrk5 View Post
    I'll take a guess, how old is your version of MPASM? I think the new one is 5.14. As Steve mentioned, it's easier to get help if you post the code, and version numbers, as chips, programs, etc. change pretty often, and they update the include files, etc. fairly often.
    HTH,

    Jerry
    Attached Files Attached Files

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    How much programming of PICs have you done in your new world?
    Have you made a blinky LED yet or anything of the sort? If not, I'd highly suggest building a few simpler 'things' and build up.
    The WARNINGs are just that, warnings, and not errors, and generally don't matter much, in this case, they don't mean much.
    The last line in the 2nd file...BUILD SUCCEEDED...that's what matters.

  8. #8
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default mpasm

    the Mpasm is the one included in the MPLAB 8.10
    Tnks
    Ambrogio
    IW2FVO

    Quote Originally Posted by b1arrk5 View Post
    I'll take a guess, how old is your version of MPASM? I think the new one is 5.14. As Steve mentioned, it's easier to get help if you post the code, and version numbers, as chips, programs, etc. change pretty often, and they update the include files, etc. fairly often.
    HTH,

    Jerry

  9. #9
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Have you disabled case sensitivity in MPASM? This can cause a lot of odd problems.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  10. #10
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default mpasm

    hi Bruce,
    Yes, I disabled the case sensitive, ( no tick ).
    Thanks
    ambrogio iw2fvo
    Quote Originally Posted by Bruce View Post
    Have you disabled case sensitivity in MPASM? This can cause a lot of odd problems.

  11. #11
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default mpasm and Melabs Floating Point

    I still have a problem compiling with MPASM a picbasic program that includes Melabs floating point.
    The program is attached to the message.
    The error list that appears to me using Mpasm and the pic18f452 is here:

    Executing: "c:\pbp_250\PBPW.EXE" -ampasmwin -oq -z -p18F452 "452_9912_3.pbp"
    PICBASIC PRO(TM) Compiler 2.50, (c) 1998, 2007 microEngineering Labs, Inc.
    All Rights Reserved.
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 805 : Symbol not previously defined (flo3232)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 1222 : Symbol not previously defined (flo3232)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 1411 : Symbol not previously defined (flo3232)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 1895 : Symbol not previously defined (flo3232)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 2369 : Symbol not previously defined (fsr)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 2376 : Symbol not previously defined (indf)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 2377 : Symbol not previously defined (indf)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 2379 : Symbol not previously defined (indf)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 2381 : Symbol not previously defined (indf)
    Error[113] D:\PRJ_ACTIVE\452_9912_3.ASM 2382 : Symbol not previously defined (fsr)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2386 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2386 : Illegal opcode (_binary)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2387 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2387 : Illegal opcode (_binary)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2388 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2388 : Illegal opcode (_binary)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2389 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2389 : Illegal opcode (_binary)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2390 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2390 : Illegal opcode (_bcd)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2391 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2391 : Illegal opcode (_bcd)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2392 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2392 : Illegal opcode (_bcd)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2393 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2393 : Illegal opcode (_bcd)
    Warning[207] D:\PRJ_ACTIVE\452_9912_3.ASM 2394 : Found label after column 1. (rlf)
    Error[122] D:\PRJ_ACTIVE\452_9912_3.ASM 2394 : Illegal opcode (_bcd)
    Loaded D:\prj_active\452_9912_3.COD.
    BUILD SUCCEEDED: Wed Jul 02 18:07:22 2008

    Any suggestion ?
    Thank you
    regards,
    Ambrogio
    IW2FVO

    Quote Originally Posted by Bruce View Post
    Have you disabled case sensitivity in MPASM? This can cause a lot of odd problems.
    Attached Files Attached Files

  12. #12
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by iw2fvo View Post
    I still have a problem compiling with MPASM a picbasic program that includes Melabs floating point.
    The program is attached to the message.
    The error list that appears to me using Mpasm and the pic18f452 is here:
    Why do you need to use the floating point routines in the first place?
    I don't really see a need for them in that code...

Similar Threads

  1. Moved from PM to MPASM and have fuse definition problems
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th November 2008, 22:27
  2. 12F675 MCLR directive MPASM
    By OLDSCHOOL in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th May 2008, 01:29
  3. MPASM 18F4550 getting started
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th September 2007, 23:59
  4. MPASM problems
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st August 2007, 01:29
  5. Converting to MPASM
    By btaylor in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th November 2005, 01:35

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