HI all, I am working on a project based on Electronic lockers using 89V51RD2 microcontroller. and keil for programming. but when i try to compile i am getting an error
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: DATA SEGMENT: ?DT?SAS_USING_89V51RD2 LENGTH: 006BH Program Size: data=160.1 xdata=0 code=9272 Target not created
As per the datasheet of controller i am using, it contains the 1-KB of data ram and 64-KB of Flash memory. so why i am getting this error in keil while i am trying to build it... please give me an solution to this. thanks...
Time to learn about the different memory regions of a 8051 processor.
You did notice that the printout contained:
Program Size: data=160.1 xdata=0 code=9272
where data=160.1 while xdata=0, and that the error did not mention XDATA but DATA?
So please take a closer look in the datasheets how much DATA you can use and how much XDATA you can use - you can't just assume that a datasheet claiming 1kB of RAM means you have 1kB of DATA. Especially since a 8051 chip can't address 1kB of DATA without using banking.
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
View all questions in Keil forum