Link external static lib to section / location

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Link external static lib to section / location

1,321 次查看
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 项奖励
回复
1 回复

1,186 次查看
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 项奖励
回复