AnsweredAssumed Answered

How can I locate the memcpy funktion in RAM ?

Question asked by Lutz Köhler on Mar 12, 2019
Latest reply on Mar 18, 2019 by stanish

Hi,

 

Hello,

I use S32K144 with S32DS 2018.R1.

How can I locate the memcpy  function from in the RAM, that this function ist executed from RAM.

My linker file:

*(EXCLUDE_FILE(lib_a-memcpy-stub.o) .text)

…..

  .code : AT(__CODE_ROM)
  {
    . = ALIGN(4);
    __CODE_RAM = .;
    __code_start__ = .;      /* Create a global symbol at code start. */
    __code_ram_start__ = .;
    *(.code_ram)             /* Custom section for storing code in RAM */
            *libc_nano.a:lib_a-memcpy-stub.o (.text).

 

But it doesn't work. 

In my map file memcpy is locatet in rom

.iplt           0x00022110        0x0
 .iplt          0x00022110        0x0 c:/nxp/s32ds_arm_v2018.r1/cross_tools/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o
.text.memcpy    0x00022110       0x16
 .text.memcpy   0x00022110       0x16 C:/NXP/S32DS_ARM_v2018.R1/Cross_Tools/gcc-6.3-arm32-eabi/arm-none-eabi/newlib/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memcpy-stub.o)
                0x00022110                memcpy

Outcomes