When I am trying to compile my code, i am getting the following error ERROR L115: PARTIAL SEGMENT BELONGS TO DIFFERENT MEMORY CLASS SEGMENT: ?C_C51STARTUP MODULE: C:\KEIL\C51\LIB\CH51L.LIB (?C_INIT) can any body explain me why this error and how it can be resolved?
Are you sure?
Here is the L115 error as shown for the L251 linker:
INPAGE Segment is Larger Than 256 Bytes
http://www.keil.com/support/man/docs/l251/l251_l115.htm
This doesn't match what you initially posted, does it?
And here is the L115 error as shown for the LARM linker:
Partial Segment Belongs to Different Memory Class
http://www.keil.com/support/man/docs/la/la_l115.htm
This does match what you initially posted, doesn't it?
"can you tell me how to check that wrong toolset is specified in uvision?"
It's on the 'Device' tab of the project options.
Note that this forum also has an "MCU (Toolset)" option for each post that you make on the forum.
in properties of uvision it is shown that Linker/Locator LX51.exe so by this i am saying that i am using L251 linker, if it is wrong kindly let me know.