Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Compilation Problem

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
AIVA

Bascom Member



Joined: 15 Nov 2008
Posts: 17

italy.gif
PostPosted: Sat Aug 28, 2021 2:10 pm    Post subject: Compilation Problem Reply with quote

Hello

I have a strange problem
in my .bas program (file size = 256K) if I insert a further comment

example:
' led 1 on"

the compilation gives me an error:
Error : 117 Line : 765 Unknown interrupt [OVF2] , in File : E:\master NEW.bas
Error : 85 Line : 766 Unknown interrupt source [TIMER2] , in File : E:\master NEW.bas
Error : 326 Line : 766 #ENDIF expected , in File : E:\master NEW.bas

if I delete the comment line inserted, the program compiles correctly.
If I insert further program lines and compile I have no compilation error
If I delete as an example 5 lines of comment I can insert 5 new comment lines

$regfile = "m2560def.dat"
$crystal = 14745600
$hwstack = 94
$swstack = 94
$framesize = 94

Compiler version :2.0.7.8

Config Timer2 = Timer , Prescale = 64
On Timer2 Dec_timer
Enable Timer2

Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Config Serialin = Buffered , Size = 254
Config Serialout = Buffered , Size = 100
Open "Com1:" For Binary As #1

Config Int4 = Falling
Enable Int4
On Int4 Cn2


Best Regards,

(BASCOM-AVR version : 2.0.7.8 , Latest : 2.0.8.4 )
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1939

blank.gif
PostPosted: Sat Aug 28, 2021 9:00 pm    Post subject: Reply with quote

How anyone without your code should be able to reproduce your problem?
This is a case for support@mcselec.com
Back to top
View user's profile
AIVA

Bascom Member



Joined: 15 Nov 2008
Posts: 17

italy.gif
PostPosted: Sat Aug 28, 2021 9:07 pm    Post subject: Reply with quote

I think I habe found the problem
if I insert more than 500 comment lines before the program code, I get a compilation error that disappears if I stay below 500 program lines
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 997
Location: France

france.gif
PostPosted: Sun Aug 29, 2021 10:29 am    Post subject: Reply with quote

hi AIVA
I am surprised that you are still in version 7.8
Mark has made many improvements, the updates are free
JP Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR 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