2022-06-28 10:38 AM
Hi
I need to place the math standard library in a specific memory section (otherwise, It won't be linked appropriately - luck of space)
so I add to the ld file the following lines:
.mylib :
{
. = ALIGN(4);
*(.lib*);
*(.libc) *(.libm) *(.libdsp); /* keep together in this order */
. = ALIGN(4);
} > RAM_D3
But it seems now working. Assuming that the library is not found by the linker or something else is wrong.
please help
2022-06-29 01:50 AM
are you sure the standard libraries use section names like the ones you are using?
Can you point me to a link that gives this information?
When you say you're running out of space, is it FLASH?
Because the code is always placed in flash by the linker, and then copied to RAM on boot, you don't save FLASH by doing this sort of thing.
It is not possible to link directly into RAM.