This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

using library compiled with gcc gives error

I am using a library compiled with gcc for cortex-M4 and options
-mcpu=cortex-m4 -mthumb-mfloat-abi=hard -mfpu=fpv4-sp-d16

I tried to use this library in Keil with options
--wchar32 --fpu=vfpv4_d16
but I get this error:

.\bin\demo.axf: Error: L6366E: flash_write_apollo2.o attributes are not compatible with the provided attributes .
Object flash_write_apollo2.o contains Build Attributes that are incompatible with the provided attributes. Tag_ABI_HardFP_use = Permitted VFP use is implied by Tag_FP_arch (=0)

I tried different options for --fpu but none work. Does anyone know how to solve this problem? I am not able to get a different library. Thanks.