Link external static lib to section / location

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Link external static lib to section / location

1,628件の閲覧回数
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,493件の閲覧回数
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 件の賞賛
返信