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


PIC32 port ticks

Posted by wne on September 8, 2009
I am new to FreeRTOS. I run it in debug mode. I made a break point at lcd.c file line 244, prvLCDPutString( xMessage.pcMessage );. I notice that teh xTickCount increase 500 ticks when the program stop at the break point, but the xMessage.xMinDisplayTime is 200. Could you tell me why? Thanks.

RE: PIC32 port ticks

Posted by MEdwards on September 8, 2009
Having just looked at the code I would say xMinDisplayTime is a hard coded value that is never changed.

RE: PIC32 port ticks

Posted by wne on September 8, 2009
what is hard coded value? The main.c defines:
xLCDMessage xMessage = { ( 200 / portTICK_RATE_MS ), cStringBuffer };
Cause portTICK_TATE_MS is 1, it make sense that xMinDisplayTime is 200.
why the break point stop every 500 ticks?

RE: PIC32 port ticks

Posted by MEdwards on September 8, 2009
Ok now I understand your question.

I would say it was because there are two delays in the task. You are just looking at vTaskDelay() which blocks for the 200 ticks, but there is also a call to xQueueReceive() which blocks for ever. What ever posts to the queue probably does so every 500 ticks. This would be normal for a 'check' task which inspects system status every 300 or 500ms (depending on the demo) then shows a status message or toggles and led.

RE: PIC32 port ticks

Posted by wne on September 9, 2009
I see. Thank you!

[ 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