Skip to main content
WSHAN.1
Associate
June 28, 2022
Question

SMT32h750 - Placing the math library in a specific memory section

  • June 28, 2022
  • 1 reply
  • 855 views

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

This topic has been closed for replies.

1 reply

Nikita91
Lead II
June 29, 2022

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.