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

Tick priority

Posted by Chandra V on July 25, 2009
Hi

I wanted to assign proper interrupt priority (not task priority) in interrupt control register for a hardware timer, which is responsible for generating 2HZ system tick as my application need.

Configuration:

Controller : NEC V850
Compiler : IAR
Clk frequency : 2MHZ

My doubt is

Is any other thump rule defined (recommendation) by freeRTOS for system tick handling?
Like a) system tick must not interrupted by any other ISR b) it could be handled in tasks also c) nested interrupt is allowed during execution of tick isr etc.,

Regards

RE: Tick priority

Posted by Richard Damon on July 25, 2009
The basic rule is that interrupt that interact with the FreeRTOS kernel (the tick interrupt and any interrupt that calls the FromISR api) should not nest. If your post supports nesting, then interrupts that do not interact with kernel can nest or interrupt ones that do interact. Basically the FromISR routines assume that they are executing inside a critical section of sorts and don't need (or can't) worry about being interrupt in the middle of manipulating critical structures.

RE: Tick priority

Posted by Chandra V on July 25, 2009
Hello Richard,

So, i came to following conclusions based on your input:

1. Unexpected system behavior is expected when an interrupt that interact with the FreeRTOS kernel.
2. freeRTOS kernel delay service won't work in expected manner even if its managed to run.

Thanks a lot for your feedback.

Regards


[ 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