Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no definition for "arm_cfft_init_1024_f32" #200

Closed
vipinthomas123 opened this issue Jul 19, 2024 · 4 comments
Closed

no definition for "arm_cfft_init_1024_f32" #200

vipinthomas123 opened this issue Jul 19, 2024 · 4 comments
Labels
DONE Issue done but not yet closed question Further information is requested

Comments

@vipinthomas123
Copy link

Apologies for a simple question here, I've followed the usage instructions and explored all option to resolve the issue but with no luck.

We are are having trouble in compiling the arm_fft_bin_example.ewp. There is linker error for the arm_cfft_init_1024_f32 function.

I have added below library -
C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm\CMSIS\Lib\IAR\iar_cortexM4lf_math.a

I have added below path for header files -
..\IAR-CMSIS-DSP\CMSIS_5\CMSIS\Core\Include
..\IAR-CMSIS-DSP\CMSIS-DSP\Include
..\IAR-CMSIS-DSP\CMSIS-DSP\Include\dsp

Development environment
image

Error displayed -

Error[Li005]: no definition for "arm_cfft_init_1024_f32" [referenced from ..\IAR-CMSIS-DSP\Examples\cortexM4lf\Obj\arm_fft_bin_example\arm_fft_bin_example_f32.o]

Are we missing any additional settings.

Reference - ARM-software/CMSIS_5#1670

Additionally can anyone please confirm example is for 1024 samples but testInput_f32_10khz (test input data) is of 2048, it is always expected the data samples to be double of processing samples??

@christophe0606
Copy link
Contributor

@vipinthomas123 Can you tell me which version of CMSIS-DSP is provided with your IAR environment ?

@vipinthomas123
Copy link
Author

20240726_115508~2

I believe it's CMSIS 5.7

One update

If I use arm_cfft_init_f32(&varInstCfftF32,1024), I am able to compile without any error.

@vipinthomas123
Copy link
Author

@christophe0606 can you pls confirm this same CMSIS library can be used for Cortex R4? Or if there is different repo, pls share the link. Thank you

@christophe0606
Copy link
Contributor

@vipinthomas123 You're using an older version. So you can initialize with arm_cfft_init_f32 but it may not be good for code size since it prevents the linker from deducing which FFT lengths you really use.

You may use the old way of initializing by settings the field of arm_cfft_instance_f32 using structures from CommonTables/arm_const_structs_f32.c. For instance, arm_cfft_sR_f32_len512 for length 512. In that case, you don't use arm_cfft_init_f32.

Note that this method of initializing will not work with Helium instruction set.

The library is never tested on Cortex-R because we focus on Cortex-M and have recently started to look at Cortex-A.

It should work on Cortex-R4 if it is supported by CMSIS-Core. If it is not supported by CMSIS-Core, you won't be able to build and you should open a github issue on the CMSIS-6 repository to ask for R4 support.

@christophe0606 christophe0606 added question Further information is requested DONE Issue done but not yet closed and removed review Under review labels Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DONE Issue done but not yet closed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants