Quality RTOS & Embedded Software

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




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) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists