Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ApplicationNote AN135 flowmeter.bas fails to compile[solved]

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
GKnops

Bascom Member



Joined: 29 Apr 2005
Posts: 7
Location: Netherlands

PostPosted: Thu Jun 02, 2005 9:37 pm    Post subject: ApplicationNote AN135 flowmeter.bas fails to compile[solved] Reply with quote

I tried to compile the AN135 file flowmeter.bas with Bascom-AVR 1.11.7.7 and it fails to create a .hex and .bin file.
In the report file there is the warning:

Code:

 --------------------------------------------------------------------------------
  Warnings:
  --------------------------------------------------------------------------------
  HWSTACK                          not used
  SWSTACK                          not used
  FRAME                            not used
  ADCD                             not used
  DATE$                            not used
  TIME$                            not used

  Source string could be too big to fit into target string  in line  79
  Source string could be too big to fit into target string  in line  82
  Source string could be too big to fit into target string  in line  93
 


Can anybody tell me how to fix this?
I tried to change the stacks but with no result.


Last edited by GKnops on Sat Jun 04, 2005 4:24 pm; edited 1 time in total
Back to top
View user's profile
DToolan

Bascom Member



Joined: 14 Aug 2004
Posts: 1384
Location: Dallas / Fort Worth, Texas (USA)

blank.gif
PostPosted: Thu Jun 02, 2005 10:23 pm    Post subject: Reply with quote

Hmmm... I just downloaded AN135 and compiled it without error making no changes other than chip type. (1.11.7.7)
Back to top
View user's profile Yahoo Messenger
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Fri Jun 03, 2005 4:04 pm    Post subject: Reply with quote

Hi,
I wrote the AN135, and it is working well Wink , I hope, because my friend is still alive ! Wink
the warning you saw are very common in basic-bascom but it is only warning not a error.
the variable tank is dimensionnsed as :
Dim Tank As String * 8
and use as:
Tank = Format(tank , "00.0") : only with 4 byte.

this apply is working with an ATMEGA8, at 8MHz, a LCD 2 lines is added.

If you have some trouble again, send me a mail please
Bon courage
JP

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
GKnops

Bascom Member



Joined: 29 Apr 2005
Posts: 7
Location: Netherlands

PostPosted: Fri Jun 03, 2005 8:18 pm    Post subject: Reply with quote

Thank you for your reply.
Compiling the .bas file still doesn't create a .bin and .hex file.
Other .bas files were compiled fine in the same directory, so there is nothing wrong with any of the settings.
Maybe it has something to do with the fact that I use the demoversion?
How many kB is the .bin file you get? In the report file it is stated that it would be 2862 byte. This is not bigger than the 4kB which the demo version can produce. So from this point of view it would not be the origin of the problem.
Back to top
View user's profile
DToolan

Bascom Member



Joined: 14 Aug 2004
Posts: 1384
Location: Dallas / Fort Worth, Texas (USA)

blank.gif
PostPosted: Fri Jun 03, 2005 9:44 pm    Post subject: Reply with quote

Quote:
Maybe it has something to do with the fact that I use the demoversion?


Yes... this is your problem. The current demo verson (although it says it compiles 4K code) will only compile code size of 2K or less. The program you are attempting to compile results in a 4K bin / 10K hex file.
Back to top
View user's profile Yahoo Messenger
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Sat Jun 04, 2005 8:28 am    Post subject: Reply with quote

Hi,
epending was demo version you use,
one was write as 4Kb but it was only 2 Kb, remove it and download again.
JP

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Sat Jun 04, 2005 9:49 am    Post subject: Reply with quote

The BASCOM-AVR DEMO 1.11.7.7 generates 2KB and not the 4KB.

See this post how to fix that:
http://www.grote.net/bascom/frm23958.html

You can download the file bascavr.exe ( DEMO 1.11.7.8 ) from:
www.mcselec.com/download/avr/11178/bascavride.zip

Just rename the original bascavr.exe file (1.11.7.7) to
bascavr_7.exe and put the new bascavr.exe (from the zip file)
in the program folder. When you run the program you will get
a warning about incompatible dll, but you can ignore it.

Best regards,

Luciano
Back to top
View user's profile
GKnops

Bascom Member



Joined: 29 Apr 2005
Posts: 7
Location: Netherlands

PostPosted: Sat Jun 04, 2005 4:19 pm    Post subject: Reply with quote

Yes, it works. I downloaded the new 1.11.8 bascavr.exe and now a .bin (nearly 3kB) and .hex (nearly 8kB) is created. Very Happy

Thanks for your help.
Back to top
View user's profile
Juergen

Bascom Member



Joined: 13 Nov 2004
Posts: 85
Location: AZ, USA

usa.gif
PostPosted: Sat Jun 04, 2005 5:27 pm    Post subject: Reply with quote

GKnops wrote:
Yes, it works. I downloaded the new 1.11.8 bascavr.exe and now a .bin (nearly 3kB) and .hex (nearly 8kB) is created. Very Happy

Thanks for your help.


Where did you find a 1.11.8 update? I just checked with auto update and there's nothing newer then the 1.11.7.7 I have installed.

_________________
Juergen

-- In a world without fences and walls, who needs Windows and Gates? --
Back to top
View user's profile Visit poster's website
GKnops

Bascom Member



Joined: 29 Apr 2005
Posts: 7
Location: Netherlands

PostPosted: Sat Jun 04, 2005 5:46 pm    Post subject: Reply with quote

See the post of Luciano:

Quote:
See this post how to fix that:
http://www.grote.net/bascom/frm23958.html

You can download the file bascavr.exe ( DEMO 1.11.7.8 ) from:
www.mcselec.com/download/avr/11178/bascavride.zip

Just rename the original bascavr.exe file (1.11.7.7) to
bascavr_7.exe and put the new bascavr.exe (from the zip file)
in the program folder. When you run the program you will get
a warning about incompatible dll, but you can ignore it.


I couldn't find anything on the MCS site also
Back to top
View user's profile
Frankeman

Bascom Member



Joined: 11 Aug 2004
Posts: 948
Location: the Netherlands

netherlands.gif
PostPosted: Sat Jun 04, 2005 5:49 pm    Post subject: Reply with quote

There is only a demo 1.11.7.8
The commercial version is 1.11.7.7.
Back to top
View user's profile
Juergen

Bascom Member



Joined: 13 Nov 2004
Posts: 85
Location: AZ, USA

usa.gif
PostPosted: Sat Jun 04, 2005 7:17 pm    Post subject: Reply with quote

Does that mean that the commercial version lacks behind the free demo? Not good!
Same applies to some patches which are needed to run 7.7 but have never been added to the updates.

Weird to say the least.

Juergen
Back to top
View user's profile Visit poster's website
Frankeman

Bascom Member



Joined: 11 Aug 2004
Posts: 948
Location: the Netherlands

netherlands.gif
PostPosted: Sat Jun 04, 2005 10:48 pm    Post subject: Reply with quote

The 1.11.7.8 demo is the same as the commercial 1.11.7.7

The 1.11.7.7 demo has a little bug with the size of the generated hex file
In the .8 version this is fixed.
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum