MPLAB 8.10 problem

Discuss the Integrated Development Environment (IDE)

Moderators: David Barker, Jerry Messina

Post Reply
honkerbob
Posts: 11
Joined: Sun Jul 20, 2008 9:28 am
Location: New Milton, UK

MPLAB 8.10 problem

Post by honkerbob » Sat Feb 07, 2009 6:17 pm

Hi, I'm trying to use Swordfish with MPLAB 8.10 and I can't get it working. When I attempt to build, I get the following error messages:

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Mecanique\Swordfish\Swordfish.exe" Test.bas -p18F452
Swordfish BASIC Compiler 2.1.0.1 Copyright (c) 2007 Mecanique
All Rights Reserved.
[Error]: Unable to open system file
[Error](11): Unable to open system file
BUILD FAILED: Sat Feb 07 18:08:18 2009

The code I'm trying to compile is from the samples directory:

{
An incredibly inefficient way to blink an led. However
the program does show some interesting capabilities. For
example, passing a PORT 'bit' by reference and also
accessing a PORT as a bit array - every byte, word etc
in a program can be treated as a bit array by default
}

// if device and clock are omitted, then the compiler defaults to
// 18F452 @ 20MHz - they are just used here for clarity...
device = 18F452
clock = 20

// blink an LED, PORT bit is passed by
// reference to the subroutine...
sub Blink(byref pBit as bit, pDelay as byte = 50)
high (pBit)
delayms (pDelay)
low (pBit)
delayms (pDelay)
end sub

// loop counters...
dim Index as byte

// main program...
while true
for Index = 0 to bound(PORTD.Bits)
Blink(PORTD.Bits(Index))
next
wend

I would like to be able to use my ICD2 with Swordfish, but I can't even get it to build. I would be interested to know how anyone else has their MPLAB setup, particularly with regard to the path setup for library files, include files etc.

Many thanks & best regards.

roger
Posts: 3
Joined: Wed Oct 18, 2006 1:29 pm

Post by roger » Wed Feb 11, 2009 6:51 pm

Hi,

Has anybody solved this problem yet?

I've just done a completely fresh install, and received the same error messages, but I can't determine what system file SF can't find.

Any help appreciated

roger

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Post by Jerry Messina » Fri Feb 13, 2009 12:27 pm

you're not alone. see http://www.sfcompiler.co.uk/forum/viewtopic.php?t=835

While it works, it's pretty ugly.

I've given up trying to build under mplab. I use the SF ide to compile,
and just import the cof file into mplab for debugging. A bit of a pain,
but workable.

Jerry

richardb
Posts: 306
Joined: Tue Oct 03, 2006 8:54 pm

Post by richardb » Wed Apr 08, 2009 3:25 pm

is there any sign of a fix for this yet?
Hmmm..

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Mon May 18, 2009 12:35 pm

I've uploaded a new console version of Swordfish which should resolve this issue. Run the online update to install.

Post Reply