FRDM KL25Z - FFT

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

FRDM KL25Z - FFT

933 Views
nithinkumar
Contributor I

Does the FRDM KL25Z (Arm Cortex M0+) support this DSP instruction  "arm_rfft_init_q15" ? This function throws me some errors when I try to build.. The error that I got "Too many arguments passing"

Tags (1)
1 Reply

358 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Nithin Kumar:

Yes, I think that function is supported. I tried to use it in a project for KL25 with CW v10.6 and it compiled without errors, just a couple of warnings since I used random parameters.

As the error implies, you may be including more parameters than required, it should only receive 5 parameters as the description indicates:

  arm_status arm_rfft_init_q15(

  arm_rfft_instance_q15 * S,

  arm_cfft_radix4_instance_q15 * S_CFFT,

  uint32_t fftLenReal,

  uint32_t ifftFlagR,

  uint32_t bitReverseFlag);

  * @param[in, out] *S            points to an instance of the Q15 RFFT/RIFFT structure.

  * @param[in]      *S_CFFT        points to an instance of the Q15 CFFT/CIFFT structure.

  * @param[in]      fftLenReal    length of the FFT.

  * @param[in]      ifftFlagR      flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform.

  * @param[in]      bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output.

The next threads in the community might also be useful:

https://community.freescale.com/thread/329163

https://community.freescale.com/thread/324740


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------