LPC54628 moving functions into board flash

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

LPC54628 moving functions into board flash

跳至解决方案
1,702 次查看
mateuszkiełbasa
Contributor III

I would like to move some functions into BOARD_FLASH region because internal flash has too small capacity. I know tat including "cr_section_macros.h" file and __TEXT() macro works but it's tiring when for example 100 functions should be decorated this way. I any way to for example move all functions from directory into specified region of flash? I searched tutorials and I found how to place it in SDRAM but it requires own linker script. Is any simple way to do that?

标签 (1)
0 项奖励
回复
1 解答
1,592 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Mateuz,

This is possible to do, please check the link bellow:

https://community.nxp.com/thread/389110

Best Regards,

Alexis Andalon

在原帖中查看解决方案

3 回复数
1,593 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Mateuz,

This is possible to do, please check the link bellow:

https://community.nxp.com/thread/389110

Best Regards,

Alexis Andalon

1,592 次查看
mateuszkiełbasa
Contributor III

Hi,

Thanks for your answer. Your solution works fine but I am wondering about one thing. Is it possible to move static library (like emWin which is provided with header files and .a file). In this case the compiler doesn't make .o file for emWin and I don't know how to do that.

Best regards!

0 项奖励
回复
1,592 次查看
mateuszkiełbasa
Contributor III

Using archive:file section did the job.

0 项奖励
回复