Page 1 of 1
State of IAR FPU support?
Posted: Sun Oct 13, 2013 3:40 pm
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?
Re: State of IAR FPU support?
Posted: Sun Oct 13, 2013 5:00 pm
by Giovanni
Hi,
The IAR port does support FPU already.
Giovanni
Re: State of IAR FPU support?
Posted: Sun Oct 13, 2013 7:46 pm
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
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
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
Re: State of IAR FPU support?
Posted: Sun Oct 13, 2013 7:54 pm
by Giovanni
Are you able to compile the F4 demo?
Giovanni
Re: State of IAR FPU support?
Posted: Sun Oct 13, 2013 8:05 pm
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

Re: State of IAR FPU support?
Posted: Sun Oct 13, 2013 8:12 pm
by Giovanni
It is just part of the process that goes from the problem to the solution

Giovanni