Fabrizio Caucci

Copying ROM -> RAM

Discussion created by Fabrizio Caucci on Jul 7, 2006
Latest reply on Jul 10, 2006 by Marc Vincent
Hi all,
I'm working with 5275EVB. I have to copy the data code from Flash to SRAM, but until now unsuccesfullness.

I have tried with the command memcpy() from my application but the result is not correct.

I have also tried the linker Command:

_romp_at = .text_rom + SIZEOF(.text_ram);
.romp : AT (_romp_at)
{
__S_romp = _romp_at;
WRITEW(ADDR(.text_rom));
WRITEW(ADDR(.text_ram));
WRITEW(SIZEOF(.text_ram));
WRITEW(0);
WRITEW(0);
WRITEW(0);
}
where:
.text_rom --> it is an section in memory flash with *(.text) & *(.data)
.text_ram --> it is an section in SRAM


Anybody can help me to solve this problem, please ?


Thank you in advance for your help.

Outcomes