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.
Greetings, My processor is a Dallas DS80C320.
I'm programming along saving, compiling and testing as I go. I have now received the following error: "L107 Address Space Overflow" That was my "first" error - at the top of the list. I have more errors, the next one is: "L105 Public refers to ignored segment".
Do I not have something not setup correctly?
My code is that that big (maybe it is), I don't believe I should have reached a size upper limit - unless I need to specify something. In my directory, the lst file is 87K, the hex file is 36k. The c code is 2288 lines with many comments.
Help?
Thanks Sparky
"No I didn't know the 8051 architecture has several distinct address spaces."
That is essential, fundamental information!
It is outlined in the C51 manual:
http://www.keil.com/support/man/docs/c51/c51_le_memareas.htm
For full details, as Erik says, you will need to study the so-called "bible"
"I have found them now (Small, Compact and Large)."
No, they are not Address Spaces - they are Memory Models. Each Memory Model uses a different Address Space as its default.
The Address Spaces are a feature of the 8051 Architecture; The Memory Models are a feature of Keil's implementation of their C51 tools.
"I do not know how to use the map - I assume it's the *.M51 file."
Correct. The are some details in the Linker manual, and you will find more by searching the Knowledgebase on this site.
further resources:
http://www.keil.com/books/8051books.asp http://www.8052.com/tutorial
Erik and Andy
Thanks for the resources.
I'm downloading them now.
Erik - I'm going with option 2 -
Once again - thanks!!!
You can tell - I've jumped in without reading all I should.
Part of the problem is (no excuse though) I'm on a tight deadline to have this working for a customer.
I have done a similar project with a different family of controllers so I was picked to for this job.
Erik - you are correct - I have been playing hunt and bungle with the menus - most of my questions and problems have been with using uVision and things unique to the Dallas 80c320 / 8051 arch. not the actual "C" programming.
I will be going through these pdf's and web sites -
Thanks again