This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using FPU of nrf 52

hello, I am using Keil's uVision 5 v 5.22. Please tell me how to enable FPU. thank you,

Parents Reply
  • Yes, you have the linker flag called LDFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16, and CFLAG CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 and also might need to add these ARM_MATH_CM4 flags:

    CFLAGS += -DARM_MATH_CM4
    ASMFLAGS += -DARM_MATH_CM4
    

    Take look at e.g. the makefile for the example, located in the folder SDK_folder\examples\peripheral\fpu_fft\pca10040\blank\armgcc\

Children
No Data
Related