FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2008 Threads] dynamic test failed at pre-emptivePosted by Yen on March 4, 2008 Hi,
I am using FreeRTOS 4.7.1.
Executing the dynamic test with all the other tests using the pre-emptive scheduler fail after a certain period (usually more than 5 minutes on my platform), at the vQueueSendWhenSuspendedTask. It works fine at cooperative scheduler. The followings summarise the test scenario.
Running at preemptive [Fail]:Running at cooperative [PASS]: blockQ,blockQ, blocktim,comtest, comtest,countsem, countsem,death, death,dynamic, dynamic, [FAIL]flash, flash,flop, flop,GenQtest, GenQtest,integer, integer,pollQ, pollQ,Qpeek, Qpeek,recmutex, recmutex,semtest. semtest.
What is causing the dynamic test to fail in pre-emptive mode please?
RE: dynamic test failed at pre-emptivePosted by Yen on March 4, 2008 Oops...to tidy up previous message on the test scenario:
Running at preemptive [Fail]: blockQ, blocktim, comtest, countsem, death, dynamic, [FAIL] flash, flop, GenQtest, integer, pollQ, Qpeek, recmutex, semtest.
Running at cooperative [PASS]: blockQ, comtest, countsem, death, dynamic, flash, flop, GenQtest, integer, pollQ, Qpeek, recmutex, semtest.
RE: dynamic test failed at pre-emptivePosted by Richard on March 4, 2008 I can't tell from the information provided, but it could be to do with the relative priorities of the tasks, or the performance of the CPU you are using.
Regards.
RE: dynamic test failed at pre-emptivePosted by Yen on March 4, 2008 Thanks!
The followings are the priority setting used: GenQtest ( tskIDLE_PRIORITY ) integer ( tskIDLE_PRIORITY ) flop ( tskIDLE_PRIORITY ) flash ( tskIDLE_PRIORITY + 1 ) semtest ( tskIDLE_PRIORITY + 1 ) PollQ ( tskIDLE_PRIORITY + 2 ) BlockQ ( tskIDLE_PRIORITY + 2 ) Comtest ( tskIDLE_PRIORITY + 2 ) death ( tskIDLE_PRIORITY + 4 )
I noticed that when I change blockQ test to priority 1 instead of 2, the dynamic failed much later, but still is failing. Why would relative priorities affect the dynamic test please?
dynamic test failed at pre-emptive(solved)Posted by Yen on March 5, 2008 The cause of the failure is because of too high tick resolution. I have set my platform to use a very high clock speed and thus causing the tick interrupt not generating the RTOS tick at resolution of 1 second for 1000 ticks.
RE: dynamic test failed at pre-emptivePosted by Yen on March 5, 2008 Apology for the unclear message, to change my previous comments: I have set my platform's Timer to use a very high clock speed...
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|