This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why are some functions in arm_math.h getting redefined? How can I solve this?

Hi,

I am using a Silicon Labs MCU (ARM M33 cortex based) and using the CMSIS DSP library to run the example code provided by ARM for FIR functionality. I added the library into my project and added the symbols "ARM_MATH_CM3 = 1" and "__FPU_PRESENT = 1". For reference, I followed this page. It seems like I have a couple of problems in the "arm_math.h" header file. I have attached the image for the same. Can someone guide me on how to solve this issue?

 

  • Hi

    I have moved your question to the Architectures and Processors forum where someone may be able to help you.

    Thanks

    Oli

  • Update: I was able to solve the "redefinition" issue. I had to add these 2 macros: "ARM_MATH_DSP=1" and "ARM_MATH_ARMV8MML=1" I am using this microcontroller (datasheet).

    However, I am facing this one more problem, I receive an error which says, "#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"". I checked other sources as well but cannot figure out how to solve it, without this issue, I am unable to build the program. The image shows the macros I have added (highlighted in yellow). Would appreciate any help, Thanks.