Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner