Hi all, i am working on am small project using 89s52. can anybody please help me with the error in keil.. while compiling i am getting an error in keil...
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: REEAD SEGMENT: ?DT?SAS_WITH_RTC Program Size: data=136.1 xdata=0 code=4953 Target not created
what does this error mean. how can i get out of this...
How are you helping yourself?
Have you spent time with the map file?
Have you considered what memory model you have - which controls where data variables are stored?
Have you considered how much RAM your processor has?
If using external XDATA RAM - have you considered if it is directly available?
Have you read any documentation to learn the different memory ranges of a 8051 processor?
Where have you posted how much variables you have, and why _you_ think there should be room for these variables?
You realize you need to do something yourself too? And not just "trial by error" but spending some time doing things that makes you learn and know more about the processor, your program, your situation, the meaning of the different error messages and what functionality the tools have to help you solve these issues.
You are the developer in charge here. And development involves reading and analyzing too. Testing/debugging are important parts of developing. "Writing a program" doesn't end after you have written a number of source code lines.
now its giving me an error Build target 'Target 1' compiling SAS With RTC.c... SAS WITH RTC.C(1922): error C249: 'DATA': SEGMENT TOO LARGE Target not created what's wrong now...
what are this map files... how can i refer to it.. memory is 256b RAM i am not using any external RAM
Yes - isn't it strange. I also wonder what "'DATA': SEGMENT TOO LARGE" might mean.
Because it can't just be that the DATA segment happens to be too large, now can it???
what can be done now.... i tried changing the memory model from small to large... it complies but cant stimulate in proteus... can you help me out of this
"what are this map files..."
Maybe Google would know what map files are?
Maybe Keil documentation would know what map files are?
"i am not using any external RAM"
The same moment you did switch to large memory model you started to use external memory - you did read up on the meaning on large memory model? You have read up on the different memory areas of the 8051 architecture?
Don't you find it hard to write programs for a tiny microcontroller chip if you don't first spend some time to learn the capabilities of the microcontroller? At least I would not know how to use a new processor without first spending time with datasheets, user manuals and maybe additional architecture documents.
Very good point indeed!
methinks it's bible time www.danlhenry.com/.../80C51_FAM_ARCH_1.pdf www.danlhenry.com/.../80C51_FAM_HARDWARE_1.pdf www.danlhenry.com/.../80C51_FAM_PROG_GUIDE_1.pdf