We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello
I got the DTMF tone generator example from http://www.keil.com/download/docs/234.asp and it works great, however when I integrate the routines into another program I get a compiliation error :
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: ?DT?MAIN LENGTH: 001CH
I'm trying to figure out what would be using so much RAM. I see the code is using a lot of struct's, are those stored in RAM?
I've looked at the M51 file I just don't understand why it would run out of space in the MAIN segment, there isn't a lot of code in there
thanx!
Xarion
I just don't understand why it would run out of space in the MAIN segment, there isn't a lot of code in there"
the '51 is a HARVARD architecture
Erik
Strictly, it has a modified Harvard architecture:
" ... a variation of the Harvard computer architecture that allows the contents of the instruction memory to be accessed as if it were data. Most modern computers that are documented as Harvard Architecture are, in fact, Modified Harvard Architecture."
en.wikipedia.org/.../Modified_Harvard_architecture
Note also that the 8051 doesn't just have separate code and data spaces - it also has several distinct data spaces. Again, see: http://www.keil.com/support/man/docs/c51/c51_le_memareas.htm
For the basics of the 8051 architecture, see: www.8052.com/.../120112 and: http://www.8052.com/tut8051