UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant sythez
Participant
225 Views
Registered: ‎03-22-2011

FreeRTOS floating data corruption

Hello, I am using vivado 2017.3 and freertos v9.0.1.

I had floating data corruption.

In my task, arithmetic result using double variables  has fault randomly such as nan.

I declare portTASK_USES_FLOATING_POINT(); before the loop of my task but data corruption is not solved. 

and I do not use memcpy / memset .

I looked this document but I can not change the configUSE_TASK_FPU_SUPPORT to 2.

https://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html#floating-point

 

anyone got solution ?

0 Kudos
2 Replies
Moderator
Moderator
183 Views
Registered: ‎10-06-2016

Re: FreeRTOS floating data corruption

Hi @sythez 

Could you provide more details about the target? Are you building for Microblaze or ARM processors?

Regards


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Participant sythez
Participant
175 Views
Registered: ‎03-22-2011

Re: FreeRTOS floating data corruption

Hi @ibaie  thanks for your reply

I am using ZC706 and freertos v901.

The issue is the double type data from task stack (at ddr3) is corrupted. some time is right value, other time is not valid (such as nan, inf or odd value)

I have 3 tasks(100ms) and 1 interrupt(~1ms)

I have some development using below link :

https://forums.xilinx.com/t5/Embedded-Development-Tools/Feature-request-Static-allocation-for-FreeRTOS/td-p/847801

so I change the define :

#define configUSE_TASK_FPU_SUPPORT 2

#define configSUPPORT_STATIC_ALLOCATION 1

but, still, have floating data corruption.

 

0 Kudos