PDA

View Full Version : PBP2.46, MPLAB and PM assembler.



Acetronics2
- 7th December 2005, 10:36
Hi,

I sometimes used PM as an assembler ... just cancelling MPASM use in Project build options and file properties.

I Use MPLAB 7.22 and now ... no way to use PM ...

I get that with PM :

Executing: "C:\Program Files\Microchip\MPLAB IDE\PBP\PBPW.EXE" -v -p16F84A "Acetachy2.bas"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
Pass 1:
Pass 2:
Code Gen:
Macro Pass:
PM.EXE C:\PROGRA~1\MICROC~1\MPLABI~2\Projets\ACETAC~1.ASM

ERROR: Unable to execute PM.EXE.Halting build on first failure as requested.
BUILD FAILED: Wed Dec 07 11:28:42 2005

And That with MPASM :

Executing: "C:\Program Files\Microchip\MPLAB IDE\PBP\PBPW.EXE" -ampasmwin -oq -v -p16F84A "Acetachy2.bas"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
Pass 1:
Pass 2:
Code Gen:
Macro Pass:
mpasmwin /q "C:\Program Files\Microchip\MPLAB IDE\Projets\Acetachy2.ASM"
Loaded C:\Program Files\Microchip\MPLAB IDE\Projets\Acetachy2.COD.
BUILD SUCCEEDED: Wed Dec 07 11:30:22 2005

PM is located here : C:\Program Files\Microchip\MPLAB IDE\PBP\PM.exe and the file name length doen't matter ( test.bas fails too )
Placing PBP at C:\PBP doesn't change anything nor ...

Has someone an idea ...???

Alain

Melanie
- 7th December 2005, 10:48
Try this...

Shorten (Rename) your source .BAS filename by one character. PICBasic doesn't respond nicely to filenames greater than 8 characters (DOS legacy maximum length).

Alternatively then try this...

1. Open a DOS window

2. Log into your PBP directory...

CD C:\Program Files\Microchip\MPLAB IDE\PBP

3. Execute your compile...

PBPW -p16F84A Acetach2 -v

Please note that I have SHORTENED your filename by ONE character (rename your source .BAS file to Acetach2.bas). Also note you don't need to include the .EXE and .BAS in your command line.

Acetronics2
- 7th December 2005, 13:59
Hi, Mel

Thank you for the answer.

Limiting The file name to 8 Characters doesn't change the result .

You'll laugh : I run Win XP Home ... and was hard to find how to run in DOS Mode !!! ... with W98 SE, it was easy to call for pure DOS ...

Alas ... Result is exactly the same ...

More examples :

MPASM ... with the "putmulresult" macro ( THE reason to use PM ...)

Executing: "C:\Program Files\Microchip\MPLAB IDE\PBP\PBPW.EXE" -ampasmwin -oq -z -v -p16F628 "Acetachy.bas"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
Pass 1:
Pass 2:
Code Gen:
Macro Pass:
mpasmwin /q "C:\Program Files\Microchip\MPLAB IDE\Projets\Acetachy.ASM"
COD Pass:
Warning[207] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\ACETACHY.ASM 430 : Found label after column 1. (putmulresult)
Error[108] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\ACETACHY.ASM 430 : Illegal character (6)
Loaded C:\Program Files\Microchip\MPLAB IDE\Projets\Acetachy.COD.
BUILD SUCCEEDED: Wed Dec 07 14:27:18 2005

Note : line 430 is :

ASM?
putmulresult 60000000

ENDASM?

with PM

Executing: "C:\Program Files\Microchip\MPLAB IDE\PBP\PBPW.EXE" -v -p16F628 "Acetachy.bas"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
Pass 1:
Pass 2:
Code Gen:
Macro Pass:
PM.EXE C:\PROGRA~1\MICROC~1\MPLABI~2\Projets\Acetachy.ASM

ERROR: Unable to execute PM.EXE.Halting build on first failure as requested.
BUILD FAILED: Wed Dec 07 14:36:37 2005

... any other idea ???

Alain

Melanie
- 7th December 2005, 16:52
Let's first eradicate corrupt files and path name incompatability...

Have you sucessfully compiled a simple blink led program with PM?

If yes, then it's something in your main program body... comment out the possible offending line and see if it compiles... time to start narrowing down what's causing the error.

Acetronics2
- 7th December 2005, 17:06
Hi, Mel

All my programs refuse PM now ... they accepted it a while ago !!!

I'll try a brand new simple project, as you suggest.

Alain

Melanie
- 7th December 2005, 17:14
See also this post from me...

http://www.picbasic.co.uk/forum/showthread.php?p=15590#post15590

Acetronics2
- 7th December 2005, 17:22
THAT

Led var Portb.1
Led = 0
loop:
Pause 5
Toggle led

Goto loop

END

NOTE: PAUSE 5 for MPSim ... might be PAUSE 500

Doesn't go either with PM ( MPlab sim runs OK ...) shame on me to have written that.

For your Post ... Yesss, I did declare it for a time ... and it's Ok.

May I cancel this stupid blinking led of shame ???

Alain

Darrel Taylor
- 7th December 2005, 19:21
Hi Alain,

Doesn't help your problem, but I saw this line
MPASM ... with the "putmulresult" macro ( THE reason to use PM ...)

The "PutMulResult" macro works fine with MPASM too. No need for PM.
<br>

Acetronics2
- 8th December 2005, 09:30
Hi Alain,

The "PutMulResult" macro works fine with MPASM too. No need for PM.
<br>

Hi, Darrel

As you could have read some lines further ...

Warning[207] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\ACETACHY.ASM 430 : Found label after column 1. (putmulresult)
Error[108] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\ACETACHY.ASM 430 : Illegal character (6)

Do you call that working fine ???

I don't even know if the code produced is correct ... but no Warning/Error with a 1k memory device like a 'C84 !!!

Alain

Acetronics2
- 8th December 2005, 10:51
Hi,All

I Apologize ...

Was the PBP Path uncorrect ....( auto installing v 2.46 , and placing it NOT to the same location ... it's my great fault )
Mel' ... you win some chilled Sauternes ( 1989 ... please )

BUUUUT I discovered at the same time the memory gauge works fine with PM assembler !!!

So,

With PM : Mem gauge working, but poor program memory debug info ... ( no labels, no register names )
With MPASM : no mem gauge and rich prog mem debug info, or manual mem gauge with lost debug info ...

Alain

Darrel Taylor
- 8th December 2005, 15:00
Do you call that working fine ???


Yes I do! However, it will work much better if you use the proper CASE.

"PutMulResult"

Acetronics2
- 8th December 2005, 15:38
Yes I do! However, it will work much better if you use the proper CASE.

"PutMulResult"

Hi, Darrel,

Ok for the Case sensitivy ....

Alain