I use arm_cortexM7lfsp_math.a in my project, I program my code to flash but I'd like to make the functions in arm_cortexM7lfsp_math.a run in itc_ram. What should I do for that? Thanks.
Solved! Go to Solution.
Please refer to my below blog, you need to make use of MCUX freemarker.
https://www.cnblogs.com/henjay724/p/16928122.html
I have also attached example linkscripts, you can put it to your mcux_project_root/
Hi @yalin,
Thank you so much for your interest in our products and for using our community.
I found a post and a Knowledge Base in the community that may be useful to you:
Hope it helps you. Please let me know if you have more questions about it.
Have a nice day!
@_Leo_ Thanks for reply. I have checked the links you mentioned, and I can I allocate some function to itc_ram through add '__RAMFUNC(RAM2)' before the function name in the source code.
But I can't make arm_cortexM7lfsp_math.a run in itc_ram still because it is a lib, and I can't get and modify the source code in it. Do you have more suggestion about how to make the function in a lib run in itc_ram?
Thanks.
Please refer to my below blog, you need to make use of MCUX freemarker.
https://www.cnblogs.com/henjay724/p/16928122.html
I have also attached example linkscripts, you can put it to your mcux_project_root/
@jay_heng Thanks for support.
I use your linkscripts but arm_cortexM7lfsp_math.a can't run in itc_ram.
However, I modify your linkscripts like the following, some function in arm_cortexM7lfsp_math.a can run in itc_ram.
main_text.ldt
*(EXCLUDE_FILE(*arm_q15_to_float.o *arm_scale_f32.o) .text*)
data.ldt
<#if memory.name=="SRAM_ITC_cm7">
*arm_q15_to_float.o (.text*)
*arm_scale_f32.o (.text*)
</#if>
yes, I just gave you one example, you can modify it as you want.