State of IAR FPU support?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

State of IAR FPU support?

Post by russian »

In this viewtopic.php?t=234 older thread it is stated that IAR port does not support FPU

I wonder if things have changed since, or if they have not if there are plans to add IAR FPU support at some point?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: State of IAR FPU support?

Post by Giovanni »

Hi,

The IAR port does support FPU already.

Giovanni
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

Re: State of IAR FPU support?

Post by russian »

That's great news!

Anyway, apparently I am missing something basic: I am trying to build ChibiOS with a one-line main.c and I am getting five compilation errors:

Code: Select all

Error[Pe147]: declaration is incompatible with "__interwork __softfp void _port_irq_epilogue(void)" (declared at line 498 of "C:\stuff\rusefi\chi_dist\chibios\ C:\stuff\rusefi\chi_dist\chibios\os\ports\IAR\ARMCMx\chcore_v6m.c 102 


That's about

Code: Select all

void _port_irq_epilogue(regarm_t lr) {
vs

Code: Select all

  void _port_irq_epilogue(void);


And four instances of another error:

Code: Select all

Error[Pe165]: too few arguments in function call C:\stuff\rusefi\chi_dist\chibios\os\kernel\src\chschd.c 128 

that's about

Code: Select all

chSysSwitch(currp, otp);



I am trying to compile all this with a fresh copy of IAR - so, it's "for ARM" version 6.60.2
I have created a new project and hopefully specified F407VG device target.

I am not sure where is "__softfp" coming from, so I have tried both options for FPU IAR setting and with and without CORTEX_USE_FPU
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: State of IAR FPU support?

Post by Giovanni »

Are you able to compile the F4 demo?

Giovanni
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

Re: State of IAR FPU support?

Post by russian »

Giovanni wrote:Are you able to compile the F4 demo?

Giovanni


I will never stop thanking you for your patience with us idiots. Yes, I am able to compile the F4 demo and that should do it for me :)
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: State of IAR FPU support?

Post by Giovanni »

It is just part of the process that goes from the problem to the solution :)

Giovanni
Post Reply