Tuesday, May 22nd 2018, 1:44pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Kenny

Beginner

Date of registration: Jul 17th 2008

Posts: 77

Location: San Francisco Bay Area

Occupation: Embedded Systems Engineer

1

Sunday, October 9th 2016, 12:47am

__ARMVFP__

My imported ST Cube project is complaining:

Quoted


#ifndef __ARMVFP__
#error This port can only be used when the project options are configured to enable hardware floating point support.
#endif
I've selected hard floating point and the correct architecture in `Code Generation` (see attached). I can hack this and try to define this macro but what is the proper way to get this work. I have another (non-Cube) based project that does not use the ST HAL for this same processor with FreeRTOS integrated and do not have this error but I cannot find the difference between the two.

Thanks.
Kenny has attached the following image:
  • Screen Shot 2016-10-08 at 3.36.40 PM.png

Kenny

Beginner

Date of registration: Jul 17th 2008

Posts: 77

Location: San Francisco Bay Area

Occupation: Embedded Systems Engineer

2

Monday, October 10th 2016, 9:56pm

I believe this is another artifact of the EWARM import. I have given up on this approach and exported Atollic projects from Cube which has been successful.

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 379

3

Tuesday, October 11th 2016, 4:07pm

Hi,

Yes, __ARMVFP__ is a preprocessor define which is set by the IAR compiler.
These defines are set by Embedded Studio / GCC, based on the project configuration:
__ARM_ARCH_VFP__
__ARM_ARCH_VFP3_D32__
__ARM_ARCH_VFP3_D16__
__ARM_ARCH_VFP4_D32__
__ARM_ARCH_VFP4_D16__
__ARM_ARCH_FPV4_SP_D16__
__ARM_ARCH_FPV5_SP_D16__
__ARM_ARCH_FPV5_D16__

Best regards
Johannes