Keil™, An ARM® Company

Discussion Forum

RTX

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Author
Paul Lee
Posted
26-Jun-2008 14:00
Toolset
ARM
New! RTX

Hello,

How would RTX fail apart from stack overflow?

Currently, my software runs for approx. 10 hours and fail using RTX. I have increase the task overflow and also the interrupt and user mode.

Regards
Paul

Author
Per Westermark
Posted
26-Jun-2008 14:57
Toolset
ARM
New! RE: RTX

The nice thing about stack overflows is that you do not know how the application will fail. Just that it can be unpredictable and in some situations very spectacular.

You use an ARM - have you looked at the analysis that the compiler can produce, with max stack depth and amount of info needed for auto variables etc?

Or are you using recursive calls?

Memory overwrites anywhere? All buffers of correct size and no uninitialized pointers?

Author
Christopher Hicks
Posted
2-Jul-2008 08:39
Toolset
ARM
New! RE: RTX

A memory leak?

(eg repeated calls to malloc() without matching calls to free() )

Christopher
==

Author
yann suisini
Posted
9-Jul-2008 02:16
Toolset
ARM
New! RE: RTX

some tips :

- for each dynamic allocation buffer array, use a semaphore .

- Create a high priority task with a dedicated mailbox that trap errors. Personnaly , I use a task that get the last 100 errors with a timestamp, the faulty task ID and a specific error code.

- And as Christopher said : verify the malloc/free _alloc_box / _free_box couples ... :-)

Next Thread | Thread List | Previous Thread Start a Thread | Settings