Quality RTOS & Embedded Software

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




Loading

dynamic test failed at pre-emptive

Posted 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-emptive

Posted 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-emptive

Posted 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-emptive

Posted 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-emptive

Posted 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...


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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