How to make arm_cortexM7lfsp_math.a run in itc_ram

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

How to make arm_cortexM7lfsp_math.a run in itc_ram

Jump to solution
2,489 Views
yalin
Contributor II

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.

0 Kudos
Reply
1 Solution
2,455 Views
jay_heng
NXP Employee
NXP Employee

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/

MCUX_FreeMarker_SourceFolder.PNG

View solution in original post

5 Replies
2,475 Views
_Leo_
NXP TechSupport
NXP TechSupport

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:

Moving code to ITC memory

Reallocating the FlexRAM

Hope it helps you. Please let me know if you have more questions about it.

Have a nice day!

0 Kudos
Reply
2,460 Views
yalin
Contributor II

@_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.

0 Kudos
Reply
2,456 Views
jay_heng
NXP Employee
NXP Employee

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/

MCUX_FreeMarker_SourceFolder.PNG

2,427 Views
yalin
Contributor II

@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>

0 Kudos
Reply
2,400 Views
jay_heng
NXP Employee
NXP Employee

yes, I just gave you one example, you can modify it as you want.

0 Kudos
Reply