Skip to content

freertos_use_task_fpu_support set by default to 0x2 for support float#380

Open
Partokus wants to merge 1 commit into
Xilinx:masterfrom
Partokus:patch-1
Open

freertos_use_task_fpu_support set by default to 0x2 for support float#380
Partokus wants to merge 1 commit into
Xilinx:masterfrom
Partokus:patch-1

Conversation

@Partokus
Copy link
Copy Markdown

@Partokus Partokus commented May 4, 2026

Question on adaptivesupport.amd.com:
https://adaptivesupport.amd.com/s/feed/0D5Pd00001VvcoWKAR?language=en_US

I programming cortex r5 processor on Xilinx Zynq us+ and i faced problem with garbage and impossible values in float and double.

I spend WHOLE WEEK finding cause of this problem. Issue was in FreeRTOS config setting "freertos_use_task_fpu_support" (configUSE_TASK_FPU_SUPPORT). By default it set to value "1". It meens that tasks DON'T support FPU context saving when switch context between tasks. I set it to "2" and problem solved. I using 5 freertos tasks and it was crucial for me.

My question is:
Why in Xilinx BSP drivers in lib freertos there "freertos_use_task_fpu_support" is set to "1" by default? Okey, it increase speed of context switch between tasks, but who cares? I don't think default people want to get max speed of switch context. It is rare case when developer want to speed up context switch. Xilinx Zynq US+ very powerfull and speedy processor... Can we think about set this option by default to "2" in Xilinx BSP drivers?

Question on adaptivesupport.amd.com:
https://adaptivesupport.amd.com/s/feed/0D5Pd00001VvcoWKAR?language=en_US

I programming cortex r5 processor on Xilinx Zynq us+ and i faced problem with garbage and impossible values in float and double.

I spend WHOLE WEEK finding cause of this problem. Issue was in FreeRTOS config setting "freertos_use_task_fpu_support" (configUSE_TASK_FPU_SUPPORT). By default it set to value "1". It meens that tasks DON'T support FPU context saving when switch context between tasks. I set it to "2" and problem solved. I using 5 freertos tasks and it was crucial for me.

 

My question is:

Why in Xilinx BSP drivers in lib freertos there "freertos_use_task_fpu_support" is set to "1" by default? Okey, it increase speed of context switch between tasks, but who cares? I don't think default people want to get max speed of switch context. It is rare case when developer want to speed up context switch. Xilinx Zynq US+ very powerfull and speedy processor... Can we think about set this option by default to "2" in Xilinx BSP drivers?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant