This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CMSIS DSP APIs not working with nrf52840 (nrf Connect SDK v1.5.0)

Hi, 

   I have been trying to use CMSIS DSP library over nRF52840. I added appropriate CONFIGs in prj.conf file, and cmake file. However, whenever I try to use function from <arm_math.h> I receive "undefined reference" error to the function that I am trying to use from the arm_math.h file. I am attaching source code, prj.conf, and CMakeLists files with this message. I would be really grateful, if you could please help me in getting the CMSIS DSP library to function in my applications. Please note that I am using nRF Connect SDK version 1.5.0. 

   I look forward to hearing from you soon. 

Best regards,

1
2
3
4
5
6
7
8
9
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(dsp_check)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
include_directories(..\\..\\..\\..\\modules\\hal\\cmsis\\CMSIS\\DSP\\Include)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
4744.prj.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2012 ARM Limited. All rights reserved.
*
* $Date: 17. January 2013
* $Revision: V1.4.0
*
* Project: CMSIS DSP Library
* Title: arm_fft_bin_data.c
*
* Description: Data file used for example code
*
* Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <device.h>
#include <devicetree.h>
#include <arm_math.h>
#include <arm_const_structs.h>
#define SEMIHOSTING
#if defined(SEMIHOSTING)
#include <stdio.h>
#endif
#define TEST_LENGTH_SAMPLES 2048
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Omer