Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

floating point support

Posted by Nobody/Anonymous on May 7, 2007
Hi everybody,
sorry, but Iam a complete newbie on FreeRTOS here.
My question is, does FreeRTOS support floating point math?
I use the GCC on ARMSAM7x256.
Thanks

RE: floating point support

Posted by Çağlar Akyüz on May 7, 2007
FreeRTOS doesn't but GCC does. :)

RE: floating point support

Posted by Nobody/Anonymous on May 7, 2007
Hi Çağlar Akyüz
thank you for your response.
Do you know a trick to use floating points on FreeRTOS?
Perhaps: stopping (freezing) RTOS and INTERRUPTS, then perform a
floating point algorithm, go back to RTOS?
Thanks in advance

RE: floating point support

Posted by Richard on May 7, 2007
This would only be necessary if the floating point libraries are not re-entrant. Do you know if this is the case or not? I suspect they are re-entrant, in which case you do not need to take any special measures in order to use floating point from within a task (other than ensuring the task has enough stack space to call the library functions).

Regards.

RE: floating point support

Posted by Çağlar Akyüz on May 7, 2007
If you want to stop scheduler or interrupts you can but I don't think it is something desirable.
Besides it is something application specific.

Moreover, SAM7X do not have a floating-point hardware. That's make floating point code nothing different, from the
rtos point of view. That's a matter of fact for the compiler-library couple.

What I want to say is just implement your favourite algorithm, measure the results. if you *need* more time then you can
always think about disabling interrupts/scheduler.

I hope I get the point.

Best Regards

RE: floating point support

Posted by Nobody/Anonymous on May 7, 2007
many thanks to Richard and Çağlar Akyüz.
Great help for my next steps with FreeRTOS.
Best Regards
Michael


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner