Running CMSIS DSP code from ITCM/DTCM

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

Running CMSIS DSP code from ITCM/DTCM

903 次查看
etronic_arg
Contributor III

Hi,

I just want to run some CMSIS DSP routines in TCM RAM (ITCM/DTCM) on my iMX RT1064, so that they run at the fastest speed. However, It is not necessary that initialization functions run at full speed and they could run from Flash.

Example: 
arm_fir_init_f32 function running from Flash
arm_fir_f32 function running from ITCM

What is the best way to do it?
and what about data buffers and coefficients, etc.? Should they be placed in DTCM?

Thanks!

标记 (1)
0 项奖励
回复
1 回复

876 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @etronic_arg ,

    If you want to put the arm_fir_f32 function to the internal RAM.

   You can define that arm_fir_f32 function API to the internal RAM address.

   In the linker file, give a range for the customer area, then you can define that API to your customer area, you can put it to ITCM or DTCM, the same.

    To the data buffer, if you want to make it fast, you also can put to the DTCM.

  This is the mcuxpresso IDE method for your reference:

 https://community.nxp.com/t5/Kinetis-Design-Studio-Knowledge/Relocating-Code-and-Data-Using-the-MCUX...

 

Wish it helps you!

Best Regards,

Kerry

0 项奖励
回复