freertos_use_task_fpu_support set by default to 0x2 for support float#380
Open
Partokus wants to merge 1 commit into
Open
freertos_use_task_fpu_support set by default to 0x2 for support float#380Partokus wants to merge 1 commit into
Partokus wants to merge 1 commit into
Conversation
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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?