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


FreeRTOS without any interrupt source?

Posted by michaelmoese on March 14, 2014

Hello Everybody. I'm currently evaluating options for implementing some functionality for a custom FPGA-based CPU. I'd strongly prefer using FreeRTOS over some homegrown solution. However, my processor, while being perfectly suitable for my task, does not provide me any interrupt handling. For the target application, this would be fine. Also, pure Cooperative Multitasking would be fine (I know I can't preempt without timer interrupt). Now to my question: Will I be able to successfully port FreeRTOS to my CPU, even if it does not support interrupts? I got sources for my CPU, so I could add interrupts to the processor - however I'm a software developer who is happy when being able to connect two IP-cores inside an FPGA design.. I'm pretty sure I will have a hard time adding interrupts to the CPU.

FreeRTOS without any interrupt source?

Posted by rtel on March 15, 2014

I have never tried it, but presumably you could use a pure cooperative scheme (with configUSE_PREEMPTION set to 0) provided you don't ever try to delay. For example, without modifying the code you would not be able to call things like vTaskDelay(), or specify a block time to a queue, semaphore or event group function.

If you had a free running time source that didn't generate interrupts you could potentially add some time management into a trace macro that gets called each time a yield was performed. That would be somewhat non-trivial as you would need to figure out how much time had passed between successive yields, then manually call the 'increment tick' function that many times in a loop.


FreeRTOS without any interrupt source?

Posted by michaelmoese on March 17, 2014

Thanks for your reply. I'm aware of not being able to block tasks when no timer interrupt is available. However, due to the lack of interrupts, I wouldn't even need real semaphores - I could just use variables for event notifications, and I would never need to protect any critical sections, as no preemption could happen. I think I will just try this out, porting of FreeRTOS does not seem a too difficult task.

I'll keep you updated.

[ 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