lancaster-university / microbit-v2-samples

CODAL build tools and sample programs for the micro:bit v2.x
MIT License
64 stars 83 forks source link

Trying to include "arm_math.h" functions definitions from CMSIS-DSP. #66

Open savakazakov opened 1 year ago

savakazakov commented 1 year ago

Hello,

As part of my TYP project I need to use an FFT implementation based on CMSIS-DSP's transformation functions. link: https://github.com/ARM-software/CMSIS-DSP/tree/main/Source/TransformFunctions

Namely I need:

I saw that there is a "arm_math.h" header file in this path: "libraries/codal-nrf52/inc/cmsis/arm_math.h"

However there are no function definitions.

What I have tried so far:

  1. Follow the instructions from the CMSIS-DSP repository described here: https://github.com/ARM-software/CMSIS-DSP#how-to-build-cmsis-dsp-with-cmake
  2. Added the CMSIS_5 and CMSIS-DSP repos as submodules and try to alter the parent CMakeLists.txt
  3. Adding separate source files to the sources/ directory.
  4. Follow the steps in CMakeLists.txt from a private lancaster-university repository "codal-microbit-fft"
  5. And various combinations of the above.

I would appreciate any suggestions and aid as I am very new to cmake and I'm not sure how the project is built in its entirety. What I suppose I am really asking is: What is the procedure of adding library dependencies to the project?

microbit-carlos commented 1 year ago

Hopefully this will help: