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

help with freertos Interrupt Handlers in IAR

Posted by Nobody/Anonymous on December 5, 2005
im using IAR dev environment with the str711 controller and im fairly new to the freeRtos environment. Im trying to port my application to be used with freeRtos. Everything is compiling ok, but whats left to do is the interrupt handling. so far i have the uart handlers figured out (that was included with the demo) but more importantly im trying to get my USB along with a couple of timers working. Anybody have any tips on how or what interrupt handling is required for the usb, or any pointers on how to write the handlers properly with the rtos ? at the moment all the interrupt handlers except the uarts are handled by a DefaultISR which does nothing.

thanks for any help.

RE: help with freertos Interrupt Handlers in IAR

Posted by Richard on December 5, 2005
The peripheral details of the chip you are using are somewhat out of scope of this thread - but here are some general tips.

+ Make sure that you are using the startup and interrupt vectoring code supplied with the FreeRTOS ST ports. This will ensure that the interrupts are entered correctly and that the required stacks are setup. By default only the IRQ and Supervisor stacks are allocated any memory. You can allocate some to others if required.

+ The USB handlers can follow the same model as per the UART. The same rules apply, as detailed on the ST port documentation page. You can take a look at the SAM7 sample USB drivers for guidance also. Sample USB drivers for both HID and CDC classes are included in the download for the SAM7.

+ Remember that the sample drivers all use a queue mechanism to pass data out of the ISR. When this is done it allows you to prioritise your ISR's by waking a task within the ISR that executes immediately that the ISR completes. However if you have no requirement to do this then a simple circular buffer may be more efficient.

+ Remember to keep the ISR very short - simply collect the data, then process the data within a task.

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