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

Fast periodic task on Microblaze

Posted by waszil on November 20, 2013

I am currently experimenting with FreeRTOS on a Microblaze processor. I need to run a physical model with strict timing at high, minimum 1kHz frequency. Besides, i have to handle a field-bus communication with mixed-timing: sending with multiple fix frequencies and asynchronous/cyclic receiving (cyclic freqs less then 100 Hz). If i try to create a task for the physical model computation with vTaskDelayUntil(), then i suppose it is not the best, because the OS's tick is 1kHz also, max. I tried to increase the tick frequency, but it did not work properly (the timer interrupt is ok, but the OS cannot do the task's delay properly). My question is: what should be the correct way to organize the tasks in this situation? Should i use a specific HW timer for the fast model-computing task? Thank you in advance for any help!


Fast periodic task on Microblaze

Posted by davedoors on November 20, 2013

Normally going over 1KHz tick is not a good idea, but it should work at higher frequencies. portTICKRATEMS cannot be used when the tick is over 1KHz though. Maybe that was your problem.

As you are using an FPGA is it possible to move your high frequency calculation into hardware? If it has to be software then another option might be to have two soft cores so one can do the high frequency parts.

If neither of those are an option then using a timer interrupt could be best as long as executing the calculations do not take so long as to mess up the field bus. Personally I would not try doing something so fast in a task.


Fast periodic task on Microblaze

Posted by waszil on November 21, 2013

I did not use portTICKRATEMS, but maybe I did something else wrong. Anyway, it is already a multi-core system, but yes, it would be the best to translate the fast model to hardware. I was just playing around with FreeRTOS, whether it could be used for this problem or not. I think, for now I stick with some basic timer-driven infinite-loop implementation. Anyways, thanks for the reply!


[ 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