Problems with the examples

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
CS
Posts: 127
Joined: Thu Nov 02, 2006 9:14 am

Problems with the examples

Post by CS » Thu Nov 02, 2006 1:18 pm

Hi all,

I'm back again with the next problem. I've opened the ADIN.bas. Then I want to compile the code (F9) or make only a syntax check (F12) then I get alot of error messages.Bellow I have copied and paste the ADIn.sfp File.

Code: Select all

[Project]
Filename=C:\Programme\SwordfishSE\Samples\ADC\ADIn.sfp
[Environment]
CaretX=1
CaretY=1
[Version]
Enable=1
Rollover=255
Major=0
Minor=0
Release=0
Build=0
[Results]
Visible=0
Height=117
View=1
[Status]
Message=Ready
Image=0
[COMPILE_ERROR]
ITEM_0="C:\Programme\SwordfishSE\Library\math.bas","15","9","Constant value out of range"
ITEM_1="C:\Programme\SwordfishSE\Library\math.bas","16","17","Constant value out of range"
ITEM_2="C:\Programme\SwordfishSE\Library\math.bas","17","12","Constant value out of range"
ITEM_3="C:\Programme\SwordfishSE\Library\math.bas","18","10","Constant value out of range"
ITEM_4="C:\Programme\SwordfishSE\Library\math.bas","19","11","Constant value out of range"
ITEM_5="C:\Programme\SwordfishSE\Library\math.bas","107","28","Constant value out of range"
ITEM_6="C:\Programme\SwordfishSE\Library\math.bas","120","40","Incompatible types"
ITEM_7="C:\Programme\SwordfishSE\Library\math.bas","120","50","Constant value out of range"
ITEM_8="C:\Programme\SwordfishSE\Library\math.bas","121","15","Incompatible types"
ITEM_9="C:\Programme\SwordfishSE\Library\math.bas","121","24","Constant value out of range"
ITEM_10="C:\Programme\SwordfishSE\Library\math.bas","134","36","Incompatible types"
ITEM_11="C:\Programme\SwordfishSE\Library\math.bas","134","46","Constant value out of range"
ITEM_12="C:\Programme\SwordfishSE\Library\math.bas","135","15","Incompatible types"
ITEM_13="C:\Programme\SwordfishSE\Library\math.bas","135","24","Constant value out of range"
ITEM_14="C:\Programme\SwordfishSE\Library\math.bas","150","8","Incompatible types"
ITEM_15="C:\Programme\SwordfishSE\Library\math.bas","150","13","Constant value out of range"
ITEM_16="C:\Programme\SwordfishSE\Library\math.bas","151","14","Incompatible types"
ITEM_17="C:\Programme\SwordfishSE\Library\math.bas","151","18","Constant value out of range"
ITEM_18="C:\Programme\SwordfishSE\Library\math.bas","170","7","Incompatible types"
ITEM_19="C:\Programme\SwordfishSE\Library\math.bas","170","16","Constant value out of range"
ITEM_20="C:\Programme\SwordfishSE\Library\math.bas","192","7","Incompatible types"
ITEM_21="C:\Programme\SwordfishSE\Library\math.bas","192","17","Constant value out of range"
ITEM_22="C:\Programme\SwordfishSE\Library\math.bas","193","7","Incompatible types"
ITEM_23="C:\Programme\SwordfishSE\Library\math.bas","193","16","Constant value out of range"
ITEM_24="C:\Programme\SwordfishSE\Library\math.bas","217","4","Incompatible types"
ITEM_25="C:\Programme\SwordfishSE\Library\math.bas","217","9","Constant value out of range"
ITEM_26="C:\Programme\SwordfishSE\Library\math.bas","218","12","Constant value out of range"
ITEM_27="C:\Programme\SwordfishSE\Library\math.bas","219","4","Incompatible types"
ITEM_28="C:\Programme\SwordfishSE\Library\math.bas","219","11","Constant value out of range"
ITEM_29="C:\Programme\SwordfishSE\Library\math.bas","220","12","Constant value out of range"
ITEM_30="C:\Programme\SwordfishSE\Library\math.bas","221","4","Incompatible types"
ITEM_31="C:\Programme\SwordfishSE\Library\math.bas","221","11","Constant value out of range"
ITEM_32="C:\Programme\SwordfishSE\Library\math.bas","237","4","Incompatible types"
ITEM_33="C:\Programme\SwordfishSE\Library\math.bas","237","13","Constant value out of range"
ITEM_34="C:\Programme\SwordfishSE\Library\math.bas","267","7","Incompatible types"
ITEM_35="C:\Programme\SwordfishSE\Library\math.bas","267","11","Constant value out of range"
ITEM_36="C:\Programme\SwordfishSE\Library\math.bas","268","7","Incompatible types"
ITEM_37="C:\Programme\SwordfishSE\Library\math.bas","268","16","Constant value out of range"
ITEM_38="C:\Programme\SwordfishSE\Library\math.bas","280","29","Constant expression differs from declaration type"
ITEM_39="C:\Programme\SwordfishSE\Library\math.bas","280","29","Constant value out of range"
ITEM_40="C:\Programme\SwordfishSE\Library\math.bas","280","42","Constant value out of range"
ITEM_41="C:\Programme\SwordfishSE\Library\math.bas","280","53","Constant value out of range"
ITEM_42="C:\Programme\SwordfishSE\Library\math.bas","281","29","Constant value out of range"
ITEM_43="C:\Programme\SwordfishSE\Library\math.bas","281","29","Constant expression differs from declaration type"
ITEM_44="C:\Programme\SwordfishSE\Library\math.bas","281","42","Constant value out of range"
ITEM_45="C:\Programme\SwordfishSE\Library\math.bas","281","53","Constant value out of range"
ITEM_46="C:\Programme\SwordfishSE\Library\math.bas","299","7","Incompatible types"
ITEM_47="C:\Programme\SwordfishSE\Library\math.bas","299","11","Constant value out of range"
ITEM_48="C:\Programme\SwordfishSE\Library\math.bas","300","17","Constant value out of range"
ITEM_49="C:\Programme\SwordfishSE\Library\math.bas","300","17","Incompatible types"
ITEM_50="C:\Programme\SwordfishSE\Library\math.bas","300","28","Incompatible parameter types"
ITEM_51="C:\Programme\SwordfishSE\Library\math.bas","300","28","Constant value out of range"
ITEM_52="C:\Programme\SwordfishSE\Library\math.bas","315","16","Incompatible types"
ITEM_53="C:\Programme\SwordfishSE\Library\math.bas","315","29","Constant value out of range"
ITEM_54="C:\Programme\SwordfishSE\Library\math.bas","315","29","Incompatible types"
ITEM_55="C:\Programme\SwordfishSE\Library\math.bas","349","29","Constant value out of range"
ITEM_56="C:\Programme\SwordfishSE\Library\math.bas","349","29","Constant expression differs from declaration type"
ITEM_57="C:\Programme\SwordfishSE\Library\math.bas","349","41","Constant value out of range"
ITEM_58="C:\Programme\SwordfishSE\Library\math.bas","349","52","Constant value out of range"
ITEM_59="C:\Programme\SwordfishSE\Library\math.bas","349","63","Constant value out of range"
ITEM_60="C:\Programme\SwordfishSE\Library\math.bas","350","29","Constant expression differs from declaration type"
ITEM_61="C:\Programme\SwordfishSE\Library\math.bas","350","29","Constant value out of range"
ITEM_62="C:\Programme\SwordfishSE\Library\math.bas","350","41","Constant value out of range"
ITEM_63="C:\Programme\SwordfishSE\Library\math.bas","350","52","Constant value out of range"
ITEM_64="C:\Programme\SwordfishSE\Library\math.bas","350","63","Constant value out of range"
ITEM_65="C:\Programme\SwordfishSE\Library\math.bas","363","7","Incompatible types"
ITEM_66="C:\Programme\SwordfishSE\Library\math.bas","363","11","Constant value out of range"
ITEM_67="C:\Programme\SwordfishSE\Library\math.bas","364","7","Incompatible types"
ITEM_68="C:\Programme\SwordfishSE\Library\math.bas","364","11","Incompatible types"
ITEM_69="C:\Programme\SwordfishSE\Library\math.bas","364","11","Constant value out of range"
ITEM_70="C:\Programme\SwordfishSE\Library\math.bas","392","28","Constant expression differs from declaration type"
ITEM_71="C:\Programme\SwordfishSE\Library\math.bas","392","28","Constant value out of range"
ITEM_72="C:\Programme\SwordfishSE\Library\math.bas","392","44","Constant value out of range"
ITEM_73="C:\Programme\SwordfishSE\Library\math.bas","392","59","Constant value out of range"
ITEM_74="C:\Programme\SwordfishSE\Library\math.bas","392","73","Constant value out of range"
ITEM_75="C:\Programme\SwordfishSE\Library\math.bas","392","88","Constant value out of range"
ITEM_76="C:\Programme\SwordfishSE\Library\math.bas","392","102","Constant value out of range"
ITEM_77="C:\Programme\SwordfishSE\Library\math.bas","415","4","Incompatible types"
ITEM_78="C:\Programme\SwordfishSE\Library\math.bas","415","13","Constant value out of range"
ITEM_79="C:\Programme\SwordfishSE\Library\math.bas","425","23","Constant value out of range"
ITEM_80="C:\Programme\SwordfishSE\Library\math.bas","428","7","Incompatible types"
ITEM_81="C:\Programme\SwordfishSE\Library\math.bas","428","16","Incompatible types"
ITEM_82="C:\Programme\SwordfishSE\Library\math.bas","428","16","Constant value out of range"
ITEM_83="C:\Programme\SwordfishSE\Library\math.bas","438","28","Constant expression differs from declaration type"
ITEM_84="C:\Programme\SwordfishSE\Library\math.bas","438","28","Constant value out of range"
ITEM_85="C:\Programme\SwordfishSE\Library\math.bas","438","41","Constant value out of range"
ITEM_86="C:\Programme\SwordfishSE\Library\math.bas","438","52","Constant value out of range"
ITEM_87="C:\Programme\SwordfishSE\Library\math.bas","438","64","Constant value out of range"
ITEM_88="C:\Programme\SwordfishSE\Library\math.bas","439","28","Constant value out of range"
ITEM_89="C:\Programme\SwordfishSE\Library\math.bas","439","28","Constant expression differs from declaration type"
ITEM_90="C:\Programme\SwordfishSE\Library\math.bas","439","41","Constant value out of range"
ITEM_91="C:\Programme\SwordfishSE\Library\math.bas","439","52","Constant value out of range"
ITEM_92="C:\Programme\SwordfishSE\Library\math.bas","439","64","Constant value out of range"
ITEM_93="C:\Programme\SwordfishSE\Library\math.bas","453","7","Incompatible types"
ITEM_94="C:\Programme\SwordfishSE\Library\math.bas","453","17","Constant value out of range"
ITEM_95="C:\Programme\SwordfishSE\Library\math.bas","456","16","Constant value out of range"
ITEM_96="C:\Programme\SwordfishSE\Library\math.bas","456","28","Constant value out of range"
ITEM_97="C:\Programme\SwordfishSE\Library\math.bas","467","7","Incompatible types"
ITEM_98="C:\Programme\SwordfishSE\Library\math.bas","467","16","Constant value out of range"
ITEM_99="C:\Programme\SwordfishSE\Library\math.bas","477","17","Constant value out of range"
ITEM_100="C:\Programme\SwordfishSE\Library\math.bas","570","7","Incompatible types"
ITEM_101="C:\Programme\SwordfishSE\Library\math.bas","570","12","Constant value out of range"
ITEM_102="C:\Programme\SwordfishSE\Library\math.bas","571","10","Incompatible types"
ITEM_103="C:\Programme\SwordfishSE\Library\math.bas","571","15","Constant value out of range"
ITEM_104="C:\Programme\SwordfishSE\Library\math.bas","576","12","Incompatible types"
ITEM_105="C:\Programme\SwordfishSE\Library\math.bas","576","16","Constant value out of range"
ITEM_106="C:\Programme\SwordfishSE\Library\math.bas","582","7","Incompatible types"
ITEM_107="C:\Programme\SwordfishSE\Library\math.bas","582","11","Constant value out of range"
ITEM_108="C:\Programme\SwordfishSE\Library\math.bas","587","7","Incompatible types"
ITEM_109="C:\Programme\SwordfishSE\Library\math.bas","587","11","Constant value out of range"
ITEM_110="C:\Programme\SwordfishSE\Library\math.bas","591","7","Incompatible types"
ITEM_111="C:\Programme\SwordfishSE\Library\math.bas","591","11","Constant value out of range"
ITEM_112="C:\Programme\SwordfishSE\Library\math.bas","592","10","Incompatible types"
ITEM_113="C:\Programme\SwordfishSE\Library\math.bas","592","14","Constant value out of range"
ITEM_114="C:\Programme\SwordfishSE\Library\math.bas","655","7","Incompatible types"
ITEM_115="C:\Programme\SwordfishSE\Library\math.bas","655","11","Constant value out of range"
ITEM_116="C:\Programme\SwordfishSE\Library\math.bas","657","7","Incompatible types"
ITEM_117="C:\Programme\SwordfishSE\Library\math.bas","657","16","Constant value out of range"
ITEM_118="C:\Programme\SwordfishSE\Library\math.bas","661","7","Incompatible types"
ITEM_119="C:\Programme\SwordfishSE\Library\math.bas","661","11","Constant value out of range"
ITEM_120="C:\Programme\SwordfishSE\Library\math.bas","666","7","Incompatible types"
ITEM_121="C:\Programme\SwordfishSE\Library\math.bas","666","11","Constant value out of range"
ITEM_122="C:\Programme\SwordfishSE\Library\math.bas","671","10","Incompatible types"
ITEM_123="C:\Programme\SwordfishSE\Library\math.bas","671","16","Constant value out of range"
ITEM_124="C:\Programme\SwordfishSE\Library\math.bas","674","10","Incompatible types"
ITEM_125="C:\Programme\SwordfishSE\Library\math.bas","674","14","Constant value out of range"
What is wrong? Am I to silly to use Swordfish?

Reguards

CS

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Thu Nov 02, 2006 4:11 pm

I have tried compiling the same file and all is OK, but admittedly I'm running the Beta version and not the Lite version. I do notice though that the first line refers to:

Filename=C:\Programme\SwordfishSE\Samples\ADC\ADIn.sfp

and after a successful compile it refers to:

Filename=C:\Programme\SwordfishSE\Samples\ADC\ADIn.bas

Could you please post the code that you are compiling to check.

Many thanks,

Steven

P.S. I may be slightly biased, but I would persist with Swordfish - it is an excellent compiler and well worth getting to grips with. I have written an extensive library for it and so far have found it very reliable and extremely powerful.

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 » Thu Nov 02, 2006 6:26 pm

Are you using the latest version of the compiler? Make sure you have 1.2.0.7, available from here

http://www.sfcompiler.co.uk/swordfish/d ... index.html

If you are using an earlier version, I would suggest you download the above and install. You won't need to remove the previous version. Let me know how it goes...

CS
Posts: 127
Joined: Thu Nov 02, 2006 9:14 am

Post by CS » Thu Nov 02, 2006 7:19 pm

Hi,

after I downloaded the 1.2.0.7 the compiler works.

Thanks.

CS

P.S.: @Steven: I thought that Swordfish is the solution for my main problem and I've heard that it is very good. But I have spend a lo of money for other Compilers so that I'm not willing to spend again money for a compiler wich didn't solve my problems at this time. I'll follow the evolution and then we will see!

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 » Thu Nov 02, 2006 7:29 pm

> after I downloaded the 1.2.0.7 the compiler works.

Thanks for letting me know...

> But I have spend a lo of money for other Compilers
> so that I'm not willing to spend again money for a
> compiler wich didn't solve my problems at this time. I'll
> follow the evolution and then we will see!

I can understand why you would not want to spend any more money. Now that you are up and running with the SE version, you can perhaps start to see how things fit together. You can do a lot with the SE version - you could certainly get a SED1520 driver working with it...

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Thu Nov 02, 2006 8:04 pm

Personnally i would'nt care to spend more money. As now it works a treat for me and if the support is always as this good and as this fast it just add weight in the "Go get it" side. I'm sure it will be anyway.

Is there any chance we see another version for the other PIC familly? Not that i want everything in the same package for the same price, i can live with multiple package as most C compiler already do. Just a suggestion. We all know it's a tedious job, a 'maybe one day' is enough to me ;)

NavMicroSystems
Posts: 4
Joined: Thu Nov 02, 2006 6:39 pm
Location: Germany

Post by NavMicroSystems » Thu Nov 02, 2006 9:00 pm

I agree with Steve,

there isn't any official release yet,
but look at the free Special Edition and compare it to the competition.

I feel the first official release will be worth every single cent of it's price.
(David don't make it too expensive after all!)

I like the concept of Swordfish,
we will have to wait and see how it evolves once it is released.
If I decide to migrate my existing projects over to Swordfish I must be sure all Hardware I'm currently using is supported.

I would wish support for the "smaller" PICs (at least the 16F's) would be added soon.

And I would wish there was suport for those nice 16bit devices some time in (not too far) future.

Like many others I'm tired of being forced to purchase new compilers and having to learn how to use them over and over again.

Ideally one day Swordfish would be the "ONE for ALL" Tool.

Regards
Last edited by NavMicroSystems on Fri Nov 03, 2006 9:39 am, edited 2 times in total.
Ralph

CS
Posts: 127
Joined: Thu Nov 02, 2006 9:14 am

Post by CS » Thu Nov 02, 2006 9:38 pm

Hi again,

of course I'll spend the money for a good product. But at this time I'm not willing to buy another Compiler wich let me learn again another language and I have a lot of new problems. Anyway how much it costs!
You all have to admit, that every basic compiler is different. It starts at the price and the upgrade possibilities where you sometimes have to pay for (and some basics have 5 or 6 updates for a year. Thats not cheap!!) and ends in the language. All of them are calling basic but the differences are extrem.

I decieded myself to play around with Swordfish and follow the evolution.
Time will show how it will go on with Swordfish.

Best reguards

CS

BTW: At this time I'm not able to get only one test/example that works with my hardware. :twisted:

NavMicroSystems
Posts: 4
Joined: Thu Nov 02, 2006 6:39 pm
Location: Germany

Post by NavMicroSystems » Thu Nov 02, 2006 10:15 pm

CS wrote:Hi again,
... BTW: At this time I'm not able to get only one test/example that works with my hardware. :twisted:
Let us know what your hardware looks like and I'm sure we'll find a solution.

regards
Ralph

CS
Posts: 127
Joined: Thu Nov 02, 2006 9:14 am

Post by CS » Fri Nov 03, 2006 9:54 pm

Hi NavMicroSystems,

thanks for the offer but I think you'll hate me because I can and will ask everything that I don't understand! :wink:

Best wishes

CS

NavMicroSystems
Posts: 4
Joined: Thu Nov 02, 2006 6:39 pm
Location: Germany

Post by NavMicroSystems » Sat Nov 04, 2006 11:51 am

Christian,

what I meant was:

If at the start of a new thread users would generally tell the forum members:

I'm using a 18F452 on an EasyPIC3 Board with an LGM 12864B GLCD Module...

The code looks like:

Code: Select all

Device = 18F452 
Clock = 20 

Include "GLCD.bas" 
Include "FixedFont.bas" 

#option GLCD_RS  = PORTB.4 
#option GLCD_EN  = PORTB.6 
#option GLCD_RW  = PORTB.5 
#option GLCD_CS1 = PORTB.2 
#option GLCD_CS2 = PORTB.3 
and then ask their questions
My question is...

the community would be able to answer those questions better.

All we can do without a minimum of information is guessing.

Steven an I made about the same assumptions about your GLCD problem.

If you had told us in the first place what your hardware was you could have got a working example even faster.
Ralph

CS
Posts: 127
Joined: Thu Nov 02, 2006 9:14 am

Post by CS » Sat Nov 04, 2006 4:22 pm

Hi Ralph,

aaaahhh, sorry! :oops:

For the next time I'll do my best!

CS

Post Reply