PDA

View Full Version : COD file not being generated (reference "Unable to execute mpasmwin")



The Altruist
- 26th August 2009, 23:24
I'm trying to compile PBP code in MPLAB to use with my ICD2. And it breaks.
I dig through things, yank -oq and add -v and get this:

Executing: "C:\Dev\PIC\PBP\PBPW.EXE" -ampasmwin -z -v -p16F819 "Main.bas"
PICBASIC PRO(TM) Compiler 2.50b, (c) 1998, 2008 microEngineering Labs, Inc.
All Rights Reserved.
Pass 1:
Pass 2:
Code Gen:
Macro Pass:
mpasmwin C:\Workspace\SE\PIC\PowerMonitor\Main.ASM
COD Pass:

ERROR: Unable to access file C:\Workspace\SE\PIC\PowerMonitor\Main.COD
Error processing COD file C:\Workspace\SE\PIC\PowerMonitor\Main.COD
Halting build on first failure as requested.
BUILD FAILED: Wed Aug 26 16:46:11 2009

Well, clearly I'm doing it wrong. Obviously, I'm using an older version (which doesn't include the .BAT file in the ToolSuite), but the process of submitting the request to upgrade to purchasing could take a while. In short, this is what I've got to work with in the forseeable future.
Also, I've read somewhere that I probably need to downgrade my MPASM to 5.22. Right...
Any recommendations for any command line switches I can throw in to fix this before I potentially break my installation/computer/network/home planet?

OK, before I go any further, the end result I'm looking for is the ability to compile my Pic BASIC file and debug it with my ICD2. Any suggestions?
Possibly, I can just use the ASM generated and go with a regular MPASM Toolsuite Project. I'm open to ideas.

mackrackit
- 27th August 2009, 02:42
It sounds like someone went and installed a new version of MPLAB on your machine. Go to the Pic Basic web site and down load the correct on from there.

Purchasing (wife) will not let you upgrade either? Know what you mean...