Quality RTOS & Embedded Software

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


Loading

CM3, rtos crashes after starting a third task

Posted by paz on April 23, 2011
Hey guys,

i've got a question but first of all I am sorry for my bad english.

Here's the problem:
i've got an stm32f107vc and i would like to use freeRTOS because I have to do a few tasks in parallel.

that's my task list:

Task 1......................................................
controler_task: (priority 2)
read data form a Sensory Queue and handle them, if there is no data available the task increases the binary semaphore NeedSensoryData. Then it is blocked for 100ms

Task 2......................................
sensory_task: (priority 1)
this one is responsible for reading the sensory data an add them into the queue. But this is only executed when the NeedSensoryData semaphore is set otherwise the task is blocked.

Task 3.........................................
wlan_task: (priority 0)
this task should read incomming data form the wlan-module (rn131gsx) and process them. Incoming bytes (from connected wlan modul via rs232) are stored in an character queue.


so the problem is: if I only start task1 and 2 everything is ok, but if i try to start the third task, the whole rtos system is crashing (but interrupts still work: LED is flashing if a byte is received)

It would be grateful if somebody could help me.

RE: CM3, rtos crashes after starting a third task

Posted by Dave on April 23, 2011
If you read through the forum you will find lots of posts where people are using a cortex and say it crashes when an interrupt is used. Especially on STM32. See item number 3 on the link http://www.freertos.org/FAQHelp.html

RE: CM3, rtos crashes after starting a third task

Posted by paz on April 23, 2011
Thank you for your help, but that's not the problem.
I'm using another 2 different uarts for communication and reading the sensory data...the ISRs are complete the same except the used receive queues. So I can't image that this is an interrupt problem.

RE: CM3, rtos crashes after starting a third task

Posted by paz on April 23, 2011
Sorry I've forgotten:

including all 3 tasks the system is running for approximately 2 to 5 seconds until it crashes...maybe this is relevant


[ 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