PDA

View Full Version : MPLAB IDE error "\Microchip\MPASM was unexpected at this time."



ozzyace
- 28th February 2011, 11:19
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

Darrel Taylor
- 28th February 2011, 14:09
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.

ozzyace
- 28th February 2011, 15:06
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

Darrel Taylor
- 28th February 2011, 15:19
Did you edit both lines?
One of them is REM'd out.

Try the attached file.
Remove the .txt extension.

ozzyace
- 28th February 2011, 15:27
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

ozzyace
- 28th February 2011, 15:33
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