I am trying to get all functions in a file Loader.c to be located at 0xFA00 onwards.
I have tried putting the following command….
CODE (?pr?*?Loader (0xFA00))
found in the following link..
http://www.keil.com/support/docs/1451.htm
I am using uVision 2 with C51 v7.5 to build the project, it creates a file Loader.obj I get the following ERROR
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2004 "PUTCHAR.obj", ".\I2c-00-03.obj", ".\AD9833Driver-00-01.obj", "Ireact.obj", ".\IIcMemoryDriver.obj", ".\Flash.obj", ".\SST25VF080B.obj", ".\Loader.obj", "START_AD.obj", "..\LCD-20x4-Driver\LCD-01.LIB" TO "IreactA" RAMSIZE(256) CODE (?pr?*?Loader (0FA00h)) CODE( 0X0000-0XFFFF ) XDATA( 0X0000-0X0FFF ) *** FATAL ERROR L224: DUPLICATE KEYWORD OR CONFLICTING CONTROL POS: 265 CD-01.LIB TO IreactA RAMSIZE (256) CODE (?PR?*?LOADER (0FA00H)) CODE (# Target not created
PROBLEM now fixed from Tsuneo on Silabs forum
The error message says that the 'CODE' directive is duplicated. Do you actually need the second "CODE( 0X0000-0XFFFF )" directive? It's the default. Delete this directive.
Tsuneo