Dear all,
I'm using TI ARM Code Generation Tools 5.1.6.
If I've got an array or structure in a function which needs initialization, this is done during run-time, and is copied from the .const section with the no_stm_memcpy_t2 function. Example:
#pragma SET_CODE_SECTION(".LIB_CODE") void foo(void) { char x[100] = {1,2,3}; // These 100 bytes for x will be copied from .const to the stack when the function is called. (void)x; }
#pragma SET_CODE_SECTION()
Can the source of these memcpy calls be changed, maybe for specific code sections? I would like to allocate these initializers to one specific memory range (maybe linked together .LIB_CODE), but would not put the whole .const section to that memory range, if possible.
Thanks in advance for your reply.
Best regards,
Laszlo Treszkai