Sorry to be vague, but using latest version with a 16F887, I briefly encountered this compiler error, and when I put
my 'Main' module code in a MyMain sub, the error went away...
It may be that the compiler wasn't calculating the length of Main very well.
(My own sloppy code)
I'm new to GCB, but LOVE it btw!
Last edit: Mikorians 2016-02-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wouldv'e liked to post it - honestly!
But I can't. It isn't top secret or anything... but also getting it
back to the state the source was in when it happened...
It was just one of those disorganized moments, you know?
But I know I hadn't discovered Subs yet - believe it or not!
I had re/discovered them when I had a memory page full type of
problem and wanted to use the rest of my 8K.
Found the posting on keeping small subs so that GCB could sort them
better into pages of memory for you... Aha!
Before that I was using old-school strict microcontroller basic coding.
So it was all one long program with no subs at all to make it easy for the compiler.
I didn't have any idea of the capabilities of GCB.
I'm real rusty. I wasn't going to push it hard. :)
I was keeping it really basic (pardon the pun).
Another important tidbit:
The program went like this tiny example
dim T1 as byte
...defines...
serprint "hi there"
hserprint "me too"
endless bla blah...
Somenew subs
end subs
Compiler gave page overwrite 2048...
Much consternation, Googling, etc...
Changed on whim to:
dim T1 as byte
...defines...
MyMain
Sub MyMain
serprint "hi there"
hserprint "me too"
same endless bla bla...
End Sub
SAME SUBS
That's why I thought I'd let you all know.
Sorry I can't be more specific other than I had
bracketed my 'Main' code manually into MyMain.
I felt I had caught something for you.
Last edit: Mikorians 2016-02-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the warm welcome Anobium.
I've seen many posts by you in the past as I've hunted
for reference material, and it's a far cry from the brutal
treatment I seem to get on other forums.
I'm a BASIC man and have a huge robotics project
I've been working on these last 8 months (bucket list)
I'm totally dependent on the excellent GCB to program
the nifty little MCUs.
I will be posting anything helpful I can contribute (you all seem
to have it covered) that I can think of in the form of
useful source code.
My machine uses almost every breakout I could buy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry to be vague, but using latest version with a 16F887, I briefly encountered this compiler error, and when I put
my 'Main' module code in a MyMain sub, the error went away...
It may be that the compiler wasn't calculating the length of Main very well.
(My own sloppy code)
I'm new to GCB, but LOVE it btw!
Last edit: Mikorians 2016-02-17
Hello,
WELCOME
Please post some example code. Let us have a look for you.
:-)
I wouldv'e liked to post it - honestly!
But I can't. It isn't top secret or anything... but also getting it
back to the state the source was in when it happened...
It was just one of those disorganized moments, you know?
But I know I hadn't discovered Subs yet - believe it or not!
I had re/discovered them when I had a memory page full type of
problem and wanted to use the rest of my 8K.
Found the posting on keeping small subs so that GCB could sort them
better into pages of memory for you... Aha!
Before that I was using old-school strict microcontroller basic coding.
So it was all one long program with no subs at all to make it easy for the compiler.
I didn't have any idea of the capabilities of GCB.
I'm real rusty. I wasn't going to push it hard. :)
I was keeping it really basic (pardon the pun).
Another important tidbit:
The program went like this tiny example
dim T1 as byte
...defines...
serprint "hi there"
hserprint "me too"
endless bla blah...
Somenew subs
end subs
Compiler gave page overwrite 2048...
Much consternation, Googling, etc...
Changed on whim to:
dim T1 as byte
...defines...
MyMain
Sub MyMain
serprint "hi there"
hserprint "me too"
same endless bla bla...
End Sub
SAME SUBS
That's why I thought I'd let you all know.
Sorry I can't be more specific other than I had
bracketed my 'Main' code manually into MyMain.
I felt I had caught something for you.
Last edit: Mikorians 2016-02-18
😃 not a spy, nothing top secret. Disappointed. It would have cool to have a top secret discussion in 'code'.
No problem on your initial issue. It was probably resolved by the use of a SUBroutine.
😃
Thanks for the warm welcome Anobium.
I've seen many posts by you in the past as I've hunted
for reference material, and it's a far cry from the brutal
treatment I seem to get on other forums.
I'm a BASIC man and have a huge robotics project
I've been working on these last 8 months (bucket list)
I'm totally dependent on the excellent GCB to program
the nifty little MCUs.
I will be posting anything helpful I can contribute (you all seem
to have it covered) that I can think of in the form of
useful source code.
My machine uses almost every breakout I could buy.
So, you don't deny being a spy....
Post all good works!!! Cheers.