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?
State of IAR FPU support?
Moderators: RoccoMarco, lbednarz, tfAteba
- 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?
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:
That's about vs
And four instances of another error:
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
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) {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
- 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?
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
- 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?
It is just part of the process that goes from the problem to the solution 
Giovanni
Giovanni