Swordfish Toolsuite

General questions about Firewing...

Re: Swordfish Toolsuite

Postby Coccoliso » Sun Sep 28, 2014 9:24 am

Unfortunately W7 was just the beginning of an ordeal ..
Maybe in the future it will be a case for including options, ini file or another also the path where you collect INC for the various toolsuite.
However, the problem is solved for me :D as I intend to go above and development in Firewing .. for touch-ups on the variables of the system and the improvements to the toolsuite SF / FW I can wait ;) .
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am

Re: Swordfish Toolsuite

Postby David John Barker » Sun Sep 28, 2014 6:17 pm

> However, the problem is solved for me

So what was the solution for your machine?
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Swordfish Toolsuite

Postby Coccoliso » Sun Sep 28, 2014 6:34 pm

Hello David,
since it is the assembler that not find includes,
in the "standard" include folder of FW ( under ProgramData ) I left the BAS as reported in the "How to" of SF toolsuite that you told me,
while I created an "Includes" folder in the installation folder of SF (C:\Program Files (x86)\Mecanique\Swordfish\Includes) that contains ONLY the INC files for the assembler.
The assembler launched by SF toolsuite does not find the includes in the standard position but seems to start the search from the SF installation folder and the folder must be named "Includes".
Now SF works as usual, FW now it works perfectly.. definitely not like what you said to be "clean" but it works.
I do not know if it is due to W7 x64, the MyDocuments in the disk D: or other installations made ​​like Proton that when I uninstall removes the license of SF.
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am

Re: Swordfish Toolsuite

Postby David John Barker » Sun Sep 28, 2014 6:50 pm

OK, I think I see what is happening. I assume that the device in question was not part of the original Swordfish installation? Installing a toolsuite is very simple, but it assumes the device is already supported in Swordfish. If it is not, you need to ensure that the correct device files have been installed for Swordfish to use. Here is an article showing you how to do this:

http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.SystemConvert

For example, a correct install of Swordfish would have

Code: Select all
C:\ProgramData\Mecanique\Swordfish\Includes\18Fxxxx.bas
C:\ProgramData\Mecanique\Swordfish\Includes\P18Fxxxx.inc


the Firewing includes folder will just have

Code: Select all
C:\ProgramData\Mecanique\Firewing\Includes\18Fxxxx.bas


I use the Swordfish toolsuite on Win7 x64 all the time without problems.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Swordfish Toolsuite

Postby RKP » Mon Sep 29, 2014 12:52 am

David,

OK, I think I see what is happening. I assume that the device in question was not part of the original Swordfish installation?


Not sure this is my problem. The includes are in installation folder in both compilers. Can't seem to find away to attach my screen shots at the moment so you will have to take my word on it.

Anyway Firewing does compile my example on my old laptop which has XP as the OS.
Code: Select all
' device and clock...
'Device = 18F14K50
Device = 18F25K22
Clock = 48
 
 

' main program loop...
sub Main()
   dim data as byte           ' data byte     
   
   while true   
      Output(porta.0)
      High(porta.0)
     
   end while
end sub


I guess i will try to move the files to see if I can get it to work on my machines with Win7.
RKP
 
Posts: 21
Joined: Mon Nov 26, 2012 3:12 am

Re: Swordfish Toolsuite

Postby RKP » Wed Oct 01, 2014 3:32 am

Just an update.

It appears I cannot get Firewing to work with the Swordfish compiler on my computers.
I know people have gotten this to work on WIN7 but for some reason it just does not work on my two machines with WIN7.
Here is my simple test code.
Code: Select all
' device and clock...
'Device = 18F14K50
Device = 18F25K22
Clock = 48
 
 

' main program loop...
sub Main()
   dim data as byte           ' data byte     
   
   while true   
      Output(porta.0)
      High(porta.0)
     
   end while
end sub


I tried both compiler installations in the default locations and with no luck,
After uninstalling I re-installed them in the same folder with no luck, of course WIN7 put half the folders in the ProgramData folder.

It just can't find the include files even though they are there as part of the both compiler installations.

Jerry could you send a screen shot of how your FW and SF install on your computer please. You can take it off line if you want.

Thanks
Attachments
Capture.JPG
Capture.JPG (40.6 KiB) Viewed 38121 times
RKP
 
Posts: 21
Joined: Mon Nov 26, 2012 3:12 am

Re: Swordfish Toolsuite

Postby David John Barker » Wed Oct 01, 2014 6:48 am

What happens when you run this program in Swordfish
Code: Select all
Device = 18F25K22
Clock = 48
 
dim data as byte           
   
while true   
   Output(porta.0)
   High(porta.0)
wend
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Swordfish Toolsuite

Postby RKP » Wed Oct 01, 2014 11:25 am

It compile fine in Swordfish on my home PC,
It should at work as well, i"ll let you know when i get there.
Swordfish worked yesterday at work after I un the re-installed the prgrams.
RKP
 
Posts: 21
Joined: Mon Nov 26, 2012 3:12 am

Re: Swordfish Toolsuite

Postby RKP » Wed Oct 01, 2014 12:17 pm

David,

The program compiles at work as well.
RKP
 
Posts: 21
Joined: Mon Nov 26, 2012 3:12 am

Re: Swordfish Toolsuite

Postby David John Barker » Wed Oct 01, 2014 3:09 pm

...and what happens when you build using the "Firewing 8" toolsuite?
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

PreviousNext

Return to Questions

Who is online

Users browsing this forum: No registered users and 9 guests

x