[En-Nut-Discussion] GCC optimizations

Ole Reinhardt ole.reinhardt at embedded-it.de
Tue Mar 17 10:01:59 CET 2009


Hi,

> My H/W platform is based on the AT91SAM7X256.  Has anyone else had
> trouble
> with the YAGARTO tools when working with this CPU?
> 
I'm using a self build arm-elf-gcc toolchain on Ubuntu Linux for this
CPU without any problems ever. Perhaps you should try the new 4.8 NutOS
version / release candidate and implement the abort handler to see where
a data abort is happening.

Dataaborts could result (randomly) from stack overflows. You might check
if you gave your threads enough stack space. The resulting data aborts
might occur quite randomly as the stack usage is not always
deterministic and in case of an underrun there might be any (non
deterministic) data from other threads overwritten. This might (also non
determinstic) lead to a data abort condition in some situtions.

So first I'd check the stack spaces, perhaps output the current usage
from time to time (see demo code below) and also implement the data
abort handler.

Bye,

Ole

-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|




More information about the En-Nut-Discussion mailing list