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] [July 2009 Threads] Tick priorityPosted 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 priorityPosted 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 priorityPosted 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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|