View previous topic :: View next topic |
Author |
Message |
GKnops
Joined: 29 Apr 2005 Posts: 7 Location: Netherlands
|
Posted: Thu Jun 02, 2005 9:37 pm Post subject: ApplicationNote AN135 flowmeter.bas fails to compile[solved] |
|
|
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 |
|
|
DToolan
Joined: 14 Aug 2004 Posts: 1384 Location: Dallas / Fort Worth, Texas (USA)
|
Posted: Thu Jun 02, 2005 10:23 pm Post subject: |
|
|
Hmmm... I just downloaded AN135 and compiled it without error making no changes other than chip type. (1.11.7.7) |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Fri Jun 03, 2005 4:04 pm Post subject: |
|
|
Hi,
I wrote the AN135, and it is working well , I hope, because my friend is still alive !
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 |
|
|
GKnops
Joined: 29 Apr 2005 Posts: 7 Location: Netherlands
|
Posted: Fri Jun 03, 2005 8:18 pm Post subject: |
|
|
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 |
|
|
DToolan
Joined: 14 Aug 2004 Posts: 1384 Location: Dallas / Fort Worth, Texas (USA)
|
Posted: Fri Jun 03, 2005 9:44 pm Post subject: |
|
|
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 |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sat Jun 04, 2005 8:28 am Post subject: |
|
|
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 |
|
|
Luciano
Joined: 29 Nov 2004 Posts: 3149 Location: Italy
|
Posted: Sat Jun 04, 2005 9:49 am Post subject: |
|
|
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 |
|
|
GKnops
Joined: 29 Apr 2005 Posts: 7 Location: Netherlands
|
Posted: Sat Jun 04, 2005 4:19 pm Post subject: |
|
|
Yes, it works. I downloaded the new 1.11.8 bascavr.exe and now a .bin (nearly 3kB) and .hex (nearly 8kB) is created.
Thanks for your help. |
|
Back to top |
|
|
Juergen
Joined: 13 Nov 2004 Posts: 85 Location: AZ, USA
|
Posted: Sat Jun 04, 2005 5:27 pm Post subject: |
|
|
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.
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 |
|
|
GKnops
Joined: 29 Apr 2005 Posts: 7 Location: Netherlands
|
Posted: Sat Jun 04, 2005 5:46 pm Post subject: |
|
|
See the post of Luciano:
I couldn't find anything on the MCS site also |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Sat Jun 04, 2005 5:49 pm Post subject: |
|
|
There is only a demo 1.11.7.8
The commercial version is 1.11.7.7. |
|
Back to top |
|
|
Juergen
Joined: 13 Nov 2004 Posts: 85 Location: AZ, USA
|
Posted: Sat Jun 04, 2005 7:17 pm Post subject: |
|
|
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 |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Sat Jun 04, 2005 10:48 pm Post subject: |
|
|
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 |
|
|
|