Conflicts between SFcompiler 2.1.0.1 and MPLAB IDE v8.10

Discuss the Integrated Development Environment (IDE)

Moderators: David Barker, Jerry Messina

mikayo
Registered User
Registered User
Posts: 2
Joined: Tue Oct 09, 2007 5:55 pm
Location: Toluca, Mexico

Conflicts between SFcompiler 2.1.0.1 and MPLAB IDE v8.10

Post by mikayo » Wed Oct 22, 2008 3:06 pm

I was working fine with the SFcompiler 2.1.0.0 and MPLAB IDE v8.10, when i upgrade to the SFcompiler to 2.1.0.1 the MPLAB displays the following message.

Clean:Deleting intermediary and output files.
Clean:Done.
Executing:"C\Archivos de programa\Mecanique\Swordfish\Swordfish.exe"SteinHart.bas -p18F8722
Swordfish BASIC compiler 2.1.0.1 copyright (c) Mecanique
All rights Reserved.
[Error]: Unable to open system file
[Error](14): Unable to open system file
BUILD FAILED: Tue Oct 21 21:57:16 2008


In the debug file

[COMPILE_ERROR]
ITEM_0="18f8722","0","0","Unable to open system file"
ITEM_1="18f8722","14","12","Unable to open system file"

The SFcompiler 2.1.0.1 works well in the SF IDE enviroment.

Any idea ???
Best Regards.

Mikayo

User avatar
blueroomelectronics
Posts: 46
Joined: Mon Apr 23, 2007 3:48 pm
Location: Toronto
Contact:

Post by blueroomelectronics » Wed Oct 22, 2008 7:21 pm

I'm getting the same error.
One thing I find helps is don't use spaces in the project directory name or program name.

User avatar
RadioT
Registered User
Registered User
Posts: 157
Joined: Tue Nov 27, 2007 12:50 pm
Location: Winnipeg, Canada

Post by RadioT » Sun Nov 09, 2008 3:06 pm

Yes, same here as well. The only space in the path name here was "program files" under XP Pro. MPLab was working before with that same path, but I made another directory with no spaces anyway to test this, and it still didn't make a difference.Changing the TLSFBasic.ini file wasn't enough, I'll have to dig through the procedures in
http://www.sfcompiler.co.uk/forum/viewt ... =tlsfbasic

Another note, after updating, remember to check your code for any place you are doing a 16 bit signed multiply. After compiling, I found a few errors popping up in testing. Likely due to engineers adjusting the code to get the answer needed at the time. Not a fun task where there are 9000 lines of code and over a dozen custom libraries...we'll keep running the 2.1.0.0 compiler version until our code is all checked out.

73's,

-Tom

Siri
Posts: 1
Joined: Wed May 21, 2008 1:29 pm
Location: Germany

Post by Siri » Tue Nov 18, 2008 11:31 pm

I'm getting the same error. Maybe the error is the empty include search path $(incdir) in the Language Tool Locations or a missing environment variable? When you execute the swordfish.exe in a dosbox there is the same error. Is there any commandline switches like "swordfish.exe /help"?

Any new idea?

User avatar
blueroomelectronics
Posts: 46
Joined: Mon Apr 23, 2007 3:48 pm
Location: Toronto
Contact:

Post by blueroomelectronics » Tue Dec 09, 2008 4:40 pm

I've upgraded to MPLAB 8.15a and the latest Swordfish SE 2.1.0.1 and now I get this error when I compile in MPLAB.
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Mecanique\SwordfishSE\SESwordfish.exe" PumpMPLAB.bas -p18F1320
Swordfish BASIC Compiler (SE) 2.1.0.1 Copyright (c) 2007 Mecanique
All Rights Reserved.
[Error]: Unable to open system file
[Error](1): Unable to open system file
BUILD FAILED: Tue Dec 09 11:37:18 2008
Any ideas?

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

Post by Jerry Messina » Fri Jan 30, 2009 7:01 pm

I'm the same issue as the others with getting the error

Swordfish BASIC Compiler (SE) 2.1.0.1 Copyright (c) 2007 Mecanique
All Rights Reserved.
[Error]: Unable to open system file
[Error](4): Unable to open system file

I'm new to swordfish, so I've tried a few different versions of MPLAB and
installing/uninstalling/running the .reg file, etc. All with no luck.

I fired up filemon (from sysinternals), and it seems that swordfish is having
a hard time finding the 'includes' and 'library' subdirectories. On my system,
it's not looking in the swordfish installation directory, it's looking for them in
'Mecanique\PDS\Includes\' and 'Mecanique\PDS\Library\' under various 'C:\Documents and Settings\' subdirectories,
and I have the compiler installed in 'D:\SwordfishSE'

When I put a copy of the swordfish includes and library subdirectories there, it built fine.
Is there something that's supposed to be done to tell swordfish where to find these when running under mplab?
There seems to be entries for these settings in the 'Set Language Tool Locations', but the entries are always blank.

Thanks,
Jerry

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

Post by roger » Wed Feb 18, 2009 5:27 am

Jerry,

I think that when Swordfish is registered with Mplab, it defaults to the C drive command line directory as specified in the Swordfish Mplab registration pdf. No other options seem possible.

Rather strange, maybe David could comment?

Caught me out, as I only have one other program which will only run from drive C.

roger

dman776
Posts: 115
Joined: Mon May 28, 2007 3:59 pm
Location: Texas

Post by dman776 » Thu Feb 19, 2009 6:45 pm

any progress on this? I'm getting the same error.

Any ideas David?

Interestingly...
If I go to the cmdline and type:

cd \program files\mecanique\swordfish
swordfish test.bas -p18F2520

I get the exact same error. So, I think I may not have anything to do with MPLAB.

dman776
Posts: 115
Joined: Mon May 28, 2007 3:59 pm
Location: Texas

Post by dman776 » Thu Feb 19, 2009 7:25 pm

to get it to work I did the following...

created c:\documents and settings\all users\mecanique
copied c:\program files\mecanique\swordfish\Includes to the above mecanique dir
copied c:\program files\mecanique\swordfish\system to the above mecanique dir

now everything compiles ok from the command line and MPLAB

RDHeiliger
Registered User
Registered User
Posts: 26
Joined: Sun Oct 12, 2008 11:21 pm
Location: Utah

Post by RDHeiliger » Sun Mar 22, 2009 5:00 am

I added the directory in the documents and settings and copied the includes and library there. This did allow a successfull build. I also had two moduals in the UserLibrary of my own that also needed to be move to the library directory in documents and settings.

I was looking in MPLAB and there is a dialog you can pull up under Project called "Set Language Tool Locations". This must be where one can set the locations for the libraries. I played with it a bit with no luck.

Does any one know what the correct paths are for the "Default Search Paths" are. This is in the tree under "Swordfish".

It asks for:
Assembler Include Search Path
Include Search Path
Library Search Path
Linker-Script Search Path

I put in the obvious paths for include and library. But still didn't get a successfull build.

Note: I used the path from the below thread

http://www.sfcompiler.co.uk/forum/viewt ... ight=mplab



RD
Last edited by RDHeiliger on Sun Mar 22, 2009 4:35 pm, edited 1 time in total.

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

Conflicts between SFcompiler 2.1.0.1 and MPLAB IDE v8.10

Post by honkerbob » Sun Mar 22, 2009 11:05 am

I too would be interested to know if these paths need to be set; I have tried adding the directories in c:\documents and settings, but I still can't get it to build. I would really like to be able to use my ICD2 with swordfish for a project I have planned, but this problem seems to be intractable at the moment.

If anyone else has any insight to this issue, please post it, It would be much appreciated.

Best regards.

Toley
Posts: 32
Joined: Tue Nov 20, 2007 5:47 pm
Location: Canada

Post by Toley » Mon Mar 23, 2009 12:38 pm

Why don't you simply import the .cof file in MPLAB ?

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.

dman776
Posts: 115
Joined: Mon May 28, 2007 3:59 pm
Location: Texas

Post by dman776 » Mon May 18, 2009 2:18 pm

Thanks David! Will try this later today!

nigle
Registered User
Registered User
Posts: 36
Joined: Tue Aug 12, 2008 3:13 pm
Location: West London

Still doesn't work

Post by nigle » Mon May 18, 2009 3:40 pm

Tried the new compiler, still won't work in MPLAB :(

I am using MPLAB V8.15a and Vista.

Oh, and as with previous updates, it 'upgraded' the assembler from V5.20 to V5.11 which is a bit inconvenient when that version doesn't work with your processor ( 18F8723 )

Post Reply