Running CMSIS DSP code from ITCM/DTCM

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

Running CMSIS DSP code from ITCM/DTCM

531 Views
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!

Tags (1)
0 Kudos
Reply
1 Reply

504 Views
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 Kudos
Reply