ARM compilation error, VFP registers used by executable, not object file

后端 未结 11 709
面向向阳花
面向向阳花 2020-11-28 07:47

I have been having this problem for the last few days and I can\'t get my head around what is really happening here, or what is the problem.

I have a makefile with t

11条回答
  •  天命终不由人
    2020-11-28 08:16

    I encountered the issue using Atollic for ARM on STM32F4 (I guess it applies to all STM32 with FPU).

    Using SW floating point didn't worked well for me (thus compiling correctly).

    When STM32cubeMX generates code for TrueStudio (Atollic), it doesn't set an FPU unit in C/C++ build settings (not sure about generated code for other IDEs).

    Set a FPU in "Target" for (under project Properties build settings):

    • Assembler
    • C Compiler
    • C Linker

    Then you have the choice to Mix HW/SW fp or use HW.

    Generated command lines are added with this for the intended target:

    -mfloat-abi=hard -mfpu=fpv4-sp-d16
    

    armatollic

提交回复
热议问题