cancel
Showing results for 
Search instead for 
Did you mean: 

SMT32h750 - Placing the math library in a specific memory section

WSHAN.1
Associate II

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

1 REPLY 1
Nikita91
Lead II

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.