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);
One more thing is that __FPU_PRESENT in nrf52.h is already set to 1.
You need to have:
after the #include "nrf52.h"
You also need to configure the Library configuration as shown here.
Thanks for your reply. I am looking onto the link that you have suggested. Its really helpful. I have resolve this issue. But can anyone implemented any basic transforms in NRF52 and IAR. Do you have link for this sample example.
Also there are no sample projects on DSP library?