Hi Shweta,
My ram and rom settings in CodeWarrior are ram=0x0200_0000 and rom=0x0001_0000, Entry Point is set to "__nand_download" and "Use Linker Command File" is checked. I've pasted in the MEMORY section of the *.lcf file that I use for the "Ext Nand Download Release" target. Hope this helps.
~Tim
MEMORY
{
//Physical layout - hardware dependent
//----------------------------------------------------------------------------
SDRAM: org = 0x00000000, len = 0x10000000 //256MB DDR SDRAM = 0x0000_0000 to 0x0FFF_FFFF
SRAM: org = 0x30000000, len = 0x00008000 //32K Internal SRAM = 0x3000_0000 to 0x3000_7FFF
IMMR: org = 0x80000000, len = 0x00100000 //1MB = 0x8000_0000 to 0x800F_FFFF
FLASH: org = 0xFFF00000, len = 0x00800000 //8MB FLASH = 0xFFF0_0000 to 0x1_006F_FFFF (33 bit value? )
//Logical layout - change to suit application if required (boot_rom needs to remain at 0x003F_EF00 else won't run)
//
//** boot_rom section being in the middle of the rom section may be a problem when the **
//** objects placed in the rom section grow past 0x003FEF00 into the boot_rom section **
//** this will happen when rom objects grow past 4,124,416 bytes in size **
//** Maybe can start the rom section after the boot_rom section at 0x003F_FF00 to 0x01FF_FFFF **
//** this would allow for 29,360,384 (0x01C0_0100) bytes in the rom section **
/----------------------------------------------------------------------------
//SDRAM(unused) =0x0000_0000 to 0x0000_FFFF (65,536 bytes)
rom: org = 0x00010000, len = 0x01FF0000 //SDRAM(<32MB rom)=0x0001_0000 to 0x01FF_FFFF (33,488,896 bytes - 4,096 byte rom overlap)
boot_rom: org = 0x003FEF00, len = 0x00001000 //SDRAM(4KB boot_rom)=0x003F_EF00 to 0x003F_FEFF (4,096 bytes - 4,096 byte rom overlap)
ram: org = 0x02000000, len = 0x08000000 //SDRAM(128MB ram) = 0x0200_0000 to 0x09FF_FFFF (134,217,728 bytes)
kernel_data: org = 0x0A000000, len = 0x05800000 //SDRAM( 88MB kernel) = 0x0A00_0000 to 0x0F7F_FFFF ( 92,274,688 bytes)
nand: org = 0x40000000, len = 0x00000000 //NOSPEC(nand) = 0x4000_0000 to ?
// Page table memory - 2MB for 256MB mapped If not using page tables, set len to 0
//----------------------------------------------------------------------------
page_tables: org = 0x01000000, len = 0x0
//Physical memory backing the virtual context If not using virtual memory, set len to 0
//----------------------------------------------------------------------------
virtual_ram: org = 0x01200000, len = 0x0
//Cached vs. non cached region -
//Maps to logical layout above. the BSP will set up these two regions
//if you need more, the BSP will need to set any addition regions up too
//----------------------------------------------------------------------------
cached_ram: org = 0x00000000, len = 0x0A000000 //SDRAM (160MB cached_ram) = 0x0000_0000 to 0x09FF_FFFF (167,772,160 bytes)
uncached_ram: org = 0x0F800000, len = 0x00800000 //SDRAM (8MB uncached_ram) = 0x0F80_0000 to 0x0FFF_FFFF (8,388,608 bytes)
}