SARY wrote: When I am trying to add some more files to the code .It shows some link error.But when I remove these files ,it disappears.
You need to provide more details. What is the linker error?
SARY wrote: I just wanna know how do we make the RAM ,ROM,flash memory register setting for MC9S12XHZ512 controller.
I don't understand that sentence. Are you talking about the RPAGE, EPAGE, and PPAGE registers that allow you to access paged RAM/EEPROM/FLASH? Are you wondering how to place certain code/data in certain places?