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.
MPLAB 8.10 problem
Moderators: David Barker, Jerry Messina
-
- Swordfish Developer
- Posts: 1469
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
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
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
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact: