Quality RTOS & Embedded Software

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


Loading

AT91SAM7S64

Posted by Nobody/Anonymous on August 12, 2005
Hi, I'm considering using the port for the AT91SAM7S64 (EK) I will be using external serial flash, and also communicating to a FPGA using SSC I have looked at the demo and it seems fine for what it is, but how complex is it to use the memory and SSC ports, does anyone have experience?
What are the downfalls? I have heard there are problems with nested interrupts?

Thanks in advance for your help.
Paul

RE: AT91SAM7S64

Posted by Richard on August 12, 2005
The peripheral questions are more processor support rather than directly FreeRTOS support questions.

Regarding nested interrupts: As downloaded the FreeRTOS demo for the SAM7 has changed the standard Atmel interrupt handling code to remove support for nested interrupts as it is not compatible with using FreeRTOS.

However, the use of FreeRTOS reduces the requirement for nested interrupts.
All the ISR has to do is send any data or event information onto a queue for processing at the task level. This can be done very quickly and be done immediately upon the interrupt occurance (rather than running the Atmel code which performs some manipulation prior to the ISR executing in order to allow nesting).

The priority of the tasks can then be set to ensure that any data or events are processed in accordance with your systems requirements. For example, if an interrupt is of top priority the task that handles the interrupt data can have the highest priority ensuring it always executes immediately following the interrupt. While it executes interrupts will be enabled allowing other events to be buffered.

If you want to use nested interrupts then you have to modify the FreeRTOS port code to basically count the nesting depth (just increment a counter each interrupt occurrence), then only allow a context switch when the nesting depth unwinds back to zero.

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