Dear reader
- We want to use the floating point unit (FPU) in our project
- We are building using the IAR compiler (8.5.x)
- We'd like to use the hardware acceleration (CC310)
- we have a makefile where we configure the build process
So what we did:
- Add the compiler flag (--fpu=VFPv4_sp)
Now my question is, how can I tell the compiler to link the libnrf library, found in the SDK at: nRF5_SDK_17.1.0_ddde560/external/nrf_cc310/lib/cortex-m4/hard-float/libnrf_cc310_0.9.13.a
We've tried using --semihosted, but this does not work.
Or is this not required? I do not fully grasp the topic yet...
here is a snipped of our makefile:
CFLAGS_xC :=--cpu=cortex-m4 --cpu_mode=thumb --endian=little --aapcs=std --abi=ilp32 --fpu=VFPv4_sp -e CPP_FLAGS_xC:=--c++ --cpu=cortex-m4 --cpu_mode=thumb --endian=little --aapcs=std --abi=ilp32 --fpu=VFPv4_sp -e . . . LD_FLAGS_xC :=--no_out_extension \ --entry __iar_program_start \ --semihosting $(ROOT_DIR)/_Libs/nRF5_SDK_17.1.0_ddde560/external/nrf_cc310/lib/cortex-m4/hard-float/libnrf_cc310_0.9.13.a \ --fpu=VFPv4_sp \ ...
Any help would be much appreciated!
Regards
David