Hello Stan,
it doesn't work to locate the memcpy into the ram.
I tested it with functions from S32K14xMMCLIB. It works fine. But with memcpy it doesnt work.
In the mapfile I have this entries:
.text.memcpy 0x00017648 0x16
.text.memcpy 0x00017648 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.a(lib_a-memcpy-stub.o)
0x00017648 memcpy
*S32K14x_AMMCLIB.a:GDFLIB_FilterMA_c.o(.text)
.text 0x1fffaf08 0x11c C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32K14x_AMMCLIB_v1.1.15/lib/s32ds_arm32/S32K14x_AMMCLIB.a(GDFLIB_FilterMA_c.o)
0x1fffaf08 GDFLIB_FilterMAInit_F32
0x1fffaf10 GDFLIB_FilterMASetState_F32
0x1fffaf50 GDFLIB_FilterMA_F32
0x1fffaf88 GDFLIB_FilterMAInit_F16
0x1fffaf90 GDFLIB_FilterMASetState_F16
0x1fffafd4 GDFLIB_FilterMA_F16
0x1fffafec GDFLIB_FilterMAInit_FLT
0x1fffaff4 GDFLIB_FilterMASetState_FLT
0x1fffb004 GDFLIB_FilterMA_FLT
fill 0x1fffb024 0x4
.text.__stub 0x1fffb028 0x118 linker stubs
*S32K14x_AMMCLIB.a:GFLIB_Sqrt_c.o(.text)
*libc.a:lib_a-memcpy-stub.o(.text)
0x1fffb140 . = ALIGN (0x4)
0x1fffb140 __code_end__ = .
0x1fffb140 __code_ram_end__ = .
0x0001a3a8 __CODE_END = (__CODE_ROM + (__code_end__ - __code_start__))
0x0001a3a8 __CUSTOM_ROM = __CODE_END
When I debug, the memcpy code on 0x00017648 is ececued.
BR Lutz
Von: stanish
Gesendet: Donnerstag, 14. März 2019 15:49
An: Köhler, Lutz <lutz.koehler@acd-antriebstechnik.de>
Betreff: Re: - Re: How can I locate the memcpy funktion in RAM ?
NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>
Re: How can I locate the memcpy funktion in RAM ?
reply from Stanislav Sliva<https://community.nxp.com/people/stanish?et=watches.email.thread> in S32 Design Studio - View the full discussion<https://community.nxp.com/message/1125081?commentID=1125081&et=watches.email.thread#comment-1125081>