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

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