DSP Basicmath source file does not seem to be included in the build error undefined reference to `zdsp_mult_f32' SDK2.6.1

Hello,
I am having an issue with DSP library basicmath where the source file does not seem to be included in the build and I am getting error undefined reference to `zdsp_mult_f32'.

There were multiple issues with the library first, there was a library included called "#include "zdsp_backend.h"" I had to comment it because it was undefined and gave me an error.


using filtering function required me to include "#include "dsp/filtering_functions.h"" which was not documented anywehere.


and now I am having issues with using the basicmath functions specifically zdsp_mult_f32 is undefined even though I have directly included 
#include "dsp/basic_math_functions.h".
I believe this is caused by the library src file not getting included in the build.
if anyone else had this issue and was able to fix it please let me know.

CONFIG_CPP=y
CONFIG_CPP_MAIN=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=128
CONFIG_NEWLIB_LIBC=y

CONFIG_CMSIS_DSP=y
CONFIG_CMSIS_DSP_FLOAT16=y
CONFIG_FP16=y
# Additional configurations for logging or debug (if needed)
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3

#include <zephyr/dsp/dsp.h>
#include <zephyr/dsp/basicmath.h>
#include "arm_math_types.h"
#include "arm_math_memory.h"

#include "dsp/none.h"
#include "dsp/utils.h"
#include "dsp/transform_functions.h"
#include "dsp/support_functions.h"
#include "dsp/fast_math_functions.h"
#include "dsp/filtering_functions.h"
#include "dsp/basic_math_functions.h"

Parents
  • Hello,

    There were multiple issues with the library first, there was a library included called "#include "zdsp_backend.h"" I had to comment it because it was undefined and gave me an error.

    This suggests that you have not enabled a DSP backend. Please revert this change, and try adding CONFIG_DSP_BACKEND_CMSIS=y to your project configuration.

    Best regards,

    Vidar

  • Dear Vidar,
    Even with CONFIG_DSP_BACKEND_CMSIS=y 
    I still get this error fatal error: zdsp_backend.h: No such file or directory
    43 | #include "zdsp_backend.h"
    so I thoiught it was better to comment it out. still I tried it again and got the same error.
    but my problem is not with the backend I just need to be able to use basic math functions from the library.
    Regards,
    Kalbani

Reply
  • Dear Vidar,
    Even with CONFIG_DSP_BACKEND_CMSIS=y 
    I still get this error fatal error: zdsp_backend.h: No such file or directory
    43 | #include "zdsp_backend.h"
    so I thoiught it was better to comment it out. still I tried it again and got the same error.
    but my problem is not with the backend I just need to be able to use basic math functions from the library.
    Regards,
    Kalbani

Children
Related