Quality RTOS & Embedded Software

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


Loading

FreeRTOS 6.0.3 & ST 2.0.3 Periph. Li...

Posted by Sniper39 on June 8, 2012
Hi all,
I'm a beginner in FreeRTOS.
We have a machine based on 3 electronic boards:
1/ Button and Display board 8051
2/ Command board (runs FreeRTOS 6.0.2 + ST peripheral Lib 2.0.3)
3/ Valves board (runs FreeRTOS 6.0.2 + ST peripheral Lib 2.0.3)
In normal cycle the system is activated by buttons for a 30 min cycle.
During this cycle the command board sends a data stream to the valves boards with desired pressure and a duration to achieve that task. The valve board is supposed to control a pump and to switch on and off different valves to obtain the right pressure. When the task is completed the valve board sends back an acknowledge data stream to confirm that the task has been well executed. So the command board, sends the next data and it keep working like that.
The machines can get to work well for several days and sometimes they bugs 2 or 3 times a day.
The unknown bug stops the machine before the end of the 30 min cycle:
In fact, as we checked with a scope, the valve board sends back the last acknowledge but the command board seems like it didn't received it and keep on waiting.
So my question is...
Is there a way to check each task or interrupt routine running on the command board when the acknoledge is suppose to arrive.
Is there some update or correction to be done on the 6.0.2 FreeRTOS. (6.0.2 is it a stable version ?)
Is there some update or correction to be done on the 2.0.3 ST Peripheral Lib ?
Do you recommend the use of those versions ?
Thanks in advance



RE: FreeRTOS 6.0.3 & ST 2.0.3 Periph. Li...

Posted by Richard on June 8, 2012
Version 6.0.2 is very old, but all official releases are stable, so it should be fine other than it won't include the latest features.

If you are using the IAR or Eclipse IDEs then you can get basic information from their respective FreeRTOS state viewer plug-ins.

If you can determine the time the error occurs, then the most powerful debug method will be to use FreeRTOS+Trace. Leave the trace recording running using a circular buffer, and have it stop when the error occurs (if that can be determined) so the trace buffer will show the behaviour of the tasks in the system at the time something was supposed to happen but didn't.

Do you have stack overflow checking switched on? If not, that could help too.

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