Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20590

BASCOM-AVR : makeint : REPLY

$
0
0
I have spent a whole day on this and am no further ahead. Symptoms: When the program reaches the line before [code:1:9828b27d0a] 1213 Print #1, ">> 18B20 temperature = "; temperaturesng [/code:1:9828b27d0a] the sw uart spews out a page of CRLF. I have tried: increasing stack to 500 - no change increasing frame to 1000 - no change Turning off all interrupts - no change Turning off the watchdog - the problem goes away. Adding print #1, "" just after config watchdog - the problem goes away deleting a couple of dim statements - the problem goes away Silly things like adding a second line "start watchdog" immediately after the first "start watchdog" causes the problem to go away. An extra "print #1" line anywhere between the dim statements and line 1213 will also cause the problem to go away. Clues; In the rpt file, it reports the following: [quote:9828b27d0a] Length of string might not be enough to hold the result. A length of 16 is desir in line 589 Length of string might not be enough to hold the result. A length of 16 is desir in line 1213[/quote:9828b27d0a] But these two lines are do not involve strings as such. the two lines in question are: [quote:9828b27d0a] 589 Print #1 , ">> Wind Cal =" ; Tempsng 1213 print #1 , ">> 18B20 temperature = " ; temperaturesng [/quote:9828b27d0a] Note that the two variables being printed are both singles. Other than the spewing forth of the CRLF at line 1213, the program runs perfectly, but i know from bitter experience that if something is happening that you don't understand, it will come back and bite you at the worst possible opportunity. I am totally exhausted of new ideas here. My program is 4500 lines long so a bit impractical to include it.

Viewing all articles
Browse latest Browse all 20590

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>