Quality RTOS & Embedded Software

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


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