error: ***.elf uses VFP register arguments, ***.o does not
Xilinx Application Note : xapp1206
將-mfpu=vfpv3 -mfloat-abi=hard (default)設定成-mfpu=neon -mfloat-abi=softfp
會出現下列錯誤訊息
solution:
將-mfpu=vfpv3 -mfloat-abi=hard (default)設定成-mfpu=neon -mfloat-abi=softfp
會出現下列錯誤訊息
solution:
step1: C/C++ Build ->
Settings -> Tool Settings
ARM v7 gcc compiler
-> Miscellaneous
Linker Flags : -c
-fmessage-length=0 -MT"$@" -mcpu=cortex-a9 -mfpu=neon
-mfloat-abi=softfp
ARM v7 gcc linker ->
Miscellaneous
Linker Flags : -mcpu=cortex-a9
-mfpu=neon -mfloat-abi=softfp -Wl,-build-id=none
-specs=Xilinx.spec
step2 : Modify this BSP’s
Settings -> Overview -> Drivers -> ps7_cortexa9_0
Extra_compiler_flags : -mcpu=cortex-a9
-mfpu=neon -mfloat-abi=softfp -nostartfiles -Wall -Wextra
留言
張貼留言