Link external static lib to section / location

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Link external static lib to section / location

726 Views
martinkoehler
Contributor II

Hello everybody,

I need to bring the constant part (mainly text, preferably also rodata) to RAM but my "normal" code text needs to stay in SPIFI flash. Having tried some ideas with the linker script (disabled the managed linker script file and changed it) and googling around I found no solution for me (except adding the section to use to every function in the lib which is impracticable).

Best regards

Martin Koehler

0 Kudos
1 Reply

591 Views
lpcxpresso_supp
NXP Employee
NXP Employee

See the MCUXpresso IDE v10.1 User Guide, Chapter 14, "Memory Configuration and Linker Scripts", and in particular - section 14.11.1, "Relocating code from FLASH to RAM, subsection "Relocating particular libraries into RAM".

Regards,

MCUXpresso IDE Support

0 Kudos