View previous topic :: View next topic |
Author |
Message |
AIVA
Joined: 15 Nov 2008 Posts: 18
|
Posted: Sat Aug 28, 2021 2:10 pm Post subject: Compilation Problem |
|
|
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 |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Sat Aug 28, 2021 9:00 pm Post subject: |
|
|
How anyone without your code should be able to reproduce your problem?
This is a case for support@mcselec.com |
|
Back to top |
|
|
AIVA
Joined: 15 Nov 2008 Posts: 18
|
Posted: Sat Aug 28, 2021 9:07 pm Post subject: |
|
|
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 |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sun Aug 29, 2021 10:29 am Post subject: |
|
|
hi AIVA
I am surprised that you are still in version 7.8
Mark has made many improvements, the updates are free
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
|