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

CMSIS-DSP support seems broken on link #32206

Closed
mkvenkit opened this issue Feb 11, 2021 · 3 comments
Closed

CMSIS-DSP support seems broken on link #32206

mkvenkit opened this issue Feb 11, 2021 · 3 comments

Comments

@mkvenkit
Copy link

mkvenkit commented Feb 11, 2021

Describe the bug

I am trying to use CMSIS-DSP in a simple project. I added the following to prj.conf:

CONFIG_CMSIS_DSP=y
CONFIG_NEWLIB_LIBC=y
CONFIG_FPU=y
# # Set CONFIG_NEWLIB_LIBC_FLOAT_PRINTF if  printf should be able to print float
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

In my code I am using:

#include "arm_math.h"
#include "arm_const_structs.h"
...

arm_rfft_fast_f32(&S, testInput, testOutput, 0);

This results in a linker error:

undefined reference to `arm_rfft_fast_f32'

As a workaround, I downloaded CMSIS_5 repo and modified CMakeLists.txt to include the necessary files.

Environment (please complete the following information):

  • Linux
  • Zephyr 2.5.0-rc3
  • nRF52840-DK
@galak
Copy link
Collaborator

galak commented Feb 11, 2021

Did you also enable CONFIG_CMSIS_DSP_TRANSFORM=y ?

@mkvenkit
Copy link
Author

That fixes the issue, thanks. But is this documented anywhere?

@galak
Copy link
Collaborator

galak commented Feb 11, 2021

That fixes the issue, thanks. But is this documented anywhere?

Kinda in the Kconfig help for CMSIS_DSP.

@stephanosio stephanosio added question and removed bug The issue is a bug, or the PR is fixing a bug labels Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants