I am getting following error while compiling template example with DSP CMSIS library in IAR.
Fatal Error[Pe035]: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" \nRF5_SDK_11.0.0_89a8197\components\toolchain\CMSIS\Include\core_cm4.h 165
Does anyone has any idea regarding this?
well the error message seems very clear doesn't it. Have you checked __FPU_PRESENT to see if it's set or not? If not, why not. A very quick check shows __FPU_PRESENT is set in nrf52.h, are you not including that, are you trying to build the code for nrf51?
Thanks for your response. I am working on nrf52 and included the nrf52.h file in the project. Following is the code that I am trying to compile
float32_t f_input_cmsis_dsp = 2;
float f_input = 2;
/* Using CMSIS-DSP library */
/* Standard math function */
f_result = sqrt(f_input);