This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Halting Ecos


ngad@uci.edu wrote:
> Hi,
> 
> I'm using TSIM to simulate an application that was compiled and linked
> with eCos configuration for LEON3. I want to measure performance of the
> application but once the application finishes, it runs eCos's idle loop.
> Is there any way to stop/halt eCos when the application returns?


You could add an 'asm("ta 0")' statement at the end of your
application. This should cause the processor to go into
error mode and halt.

Jiri.

> 
> Thank you,
> Nga
> 
> 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]