Fullscreen
Loading...
 

System Workbench for STM32 Help

Forums » System Workbench for STM32» __SOFTFP__ defined even if hard floating-point ABI is selected

__SOFTFP__ defined even if hard floating-point ABI is selected

Hello

while trying to enable FPU support for a STM32F732, I have noticed that also the SOFTFP define is set (probably by the GCC compiler) when hard floating-point ABI is selected in the MCU settings. Only VFP_FP should be defined in this case.

This creates problems with CMSIS in core_cm7.h since a check for the presence of conflicting defines is performed:

#if defined (VFP_FP) && !defined(SOFTFP)
#if (__FPU_PRESENT == 1U)
#define __FPU_USED 1U
#else
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#define __FPU_USED 0U
#endif
#else
#define __FPU_USED 0U
#endif

The result is that FPU_USED is set to zero and the coprocessor units are not enabled in SystemInit.

Rgds,

Alberto


Show posts:
 

Newest Forum Posts

  1. Error in final launch sequence by judoka_acl, 12:18
  2. STM32469I mipi read funtion by jimmylee0407, 11:38
  3. multiple definition of g_pfnVectors by mike796, 2017-07-20 15:27
  4. PROGMEM equivalent by bugmenot, 2017-07-20 11:31
  5. multiple definition of g_pfnVectors by judoka_acl, 2017-07-19 10:20
  6. PROGMEM equivalent by straubm, 2017-07-18 18:55
  7. Breakpoint at the wrong line by Andrei from The Great White North, 2017-07-18 18:01
  8. Breakpoint at the wrong line by judoka_acl, 2017-07-18 09:14
  9. Breakpoint at the wrong line by judoka_acl, 2017-07-18 09:01
  10. Breakpoint at the wrong line by tang, 2017-07-17 17:22

Last-Modified Blogs