MPLAB IDE error "\Microchip\MPASM was unexpected at this time."


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2010
    Posts
    5

    Default MPLAB IDE error "\Microchip\MPASM was unexpected at this time."

    Hmmm. After thoroughly checking the forum and go-ogle I have a question:

    Why do I get this message on compile:
    "
    Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p18F2520 "TM1k.bas"
    \Microchip\MPASM was unexpected at this time.
    Halting build on first failure as requested.
    BUILD FAILED: Mon Feb 28 22:07:57 2011
    "

    I think it sounds like an installation error. Any tricks to getting MPLAB to work under win7 64 bit?

    Any ideas anyone? Thanks in advance!
    Steve
    Last edited by ozzyace; - 28th February 2011 at 12:05.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: MPLAB IDE error "\Microchip\MPASM was unexpected at this time."

    That was a problem in the PBPMPLAB.bat for PBP 2.60 on 64-bit systems.
    Windows doesn't like the (x86) in the path.

    Add carets before the parenthesis in the .bat file ...

    SET MPASMWIN_PATH=C:\Program Files ^(x86^)\Microchip\MPASM Suite

    This was fixed in the 2.60A patch.
    DT

  3. #3
    Join Date
    Oct 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: MPLAB IDE error "\Microchip\MPASM was unexpected at this time."

    Quote Originally Posted by Darrel Taylor View Post
    That was a problem in the PBPMPLAB.bat for PBP 2.60 on 64-bit systems.
    Windows doesn't like the (x86) in the path.

    Add carets before the parenthesis in the .bat file ...

    SET MPASMWIN_PATH=C:\Program Files ^(x86^)\Microchip\MPASM Suite

    This was fixed in the 2.60A patch.
    Thanks Darrel. OK. I did that but got the same message. This has me stumped. I have tried re-installing MPLAB (v8.53) and it made no difference. PBP works from the command line (and I got Microcode studio compiling and programming). But still nothing from MPLAB
    Steve

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: MPLAB IDE error "\Microchip\MPASM was unexpected at this time."

    Did you edit both lines?
    One of them is REM'd out.

    Try the attached file.
    Remove the .txt extension.
    DT

  5. #5
    Join Date
    Oct 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: MPLAB IDE error "\Microchip\MPASM was unexpected at this time."

    Quote Originally Posted by Darrel Taylor View Post
    Did you edit both lines?
    One of them is REM'd out.

    Try the attached file.
    Remove the .txt extension.
    OK. Thanks Darrel. Am now using above file. I now get the following:

    Couldn't locate build tool. Check tool locations.
    BUILD FAILED: Tue Mar 01 02:24:34 2011

    Am I an idiot? ;-) - is the build tool PBP or MPASMWIN?
    Steve

  6. #6
    Join Date
    Oct 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: MPLAB IDE error "\Microchip\MPASM was unexpected at this time."

    Quote Originally Posted by ozzyace View Post
    OK. Thanks Darrel. Am now using above file. I now get the following:

    Couldn't locate build tool. Check tool locations.
    BUILD FAILED: Tue Mar 01 02:24:34 2011

    Am I an idiot? ;-) - is the build tool PBP or MPASMWIN?
    Steve
    I am an idiot - It works. Turns out I didn't quite convert that txt to bat. Tricky Windows!#@$
    Thanks for all your help Darrel. Can now sleep...
    Steve

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