FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2011 Threads] CM3, rtos crashes after starting a third taskPosted 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 taskPosted 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 taskPosted 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 taskPosted 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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|