Hi Sliva,
i also want to copy some functions from flash to RAM..
i doing in below way!!
but @ memory map in .map file .code
.my_ram_code 40009000 00000000 00001df8 0(its allocating memory but not copying function in that location)
#pragma push
#pragma section code_type ".code_ram" ".code_ram" code_mode=far_abs
void Sector_Erase_Function (void);
#pragma pop
void Sector_Erase_Function (void)
{
..
}
in .LCF file i declared
MEMORY
{
resetvector: org = 0x00000000, len = 0x00000008
init: org = 0x00000020, len = 0x00000FE0
exception_handlers: org = 0x00001000, len = 0x00001000
internal_flash: org = 0x00002000, len = 0x0003E000
internal_ram: org = 0x40000000, len = 0x00003000
code_ram: org = 0x40009000, len = 0x00001000 //ADDED EXTRA
heap : org = 0x40003000, len = 0x00001000
stack : org = 0x40004000, len = 0x00001000
}
GROUP : {
.__uninitialized_intc_handlertable ALIGN(2048) : {}
.data : {}
.sdata : {}
.sbss : {}
.sdata2 : {}
.sbss2 : {}
.bss : {}
} > internal_ram
.code_ram (VLECODE) : {} > code_ram //ADDED EXTRA
}
what might be the prblem?/
kindly help>>> i am using MPC5602p