I'm trying to port an Eclipse project template that I have set up for the NRF52 using SDK 13. I want to downgrade the SDK to v12.3 in order to be able to use the template for the NRF51 family.
The project template uses managed make and I have already changed all the required symbols in Eclipse. I don't know why I'm getting this error.
The console output is this:
Invoking: Cross ARM GNU C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -Os -ffunction-sections -fdata-sections -fno-builtin -Wall -g3 -DBLE_STACK_SUPPORT_REQD -DNRF_SD_BLE_API_VERSION=2 -DSOFTDEVICE_PRESENT -DSWI_DISABLE0 -DNRF_LOG_BACKEND_SERIAL_USES_RTT=1 -DNRF_LOG_BACKEND_SERIAL_USES_UART=0 -DS130 -DNRF51 -DNRF51422 -DNRF51422_XXAA -DBOARD_PCA10028 -[LOTS OF FILES HERE] -std=c99 -fno-strict-aliasing --short-enums -MMD -MP -MF"src/main.d" -MT"src/main.o" -c -o "src/main.o" "../src/main.c"
In file included from /Users/andresovela/fool/nRF5_SDK_12.3.0_d7731ad/components/device/nrf51.h:119:0,
/Users/andresovela/fool/nRF5_SDK_12.3.0_d7731ad/components/toolchain/cmsis/include/core_cm0.h:138:6: error: #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
I think there might be some residue from the previous setup that I haven't changed but I do not know what it could be. Does anyone have any idea why this could be happening?
Solved it. The problem was that I still had setup up the processor as a Cortex-M4. I changed it to an M0 and the error disappeared.