This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Help! Program stops recognizing IRQ2 interrupts
- From: "sandeep kumar" <sandeep at codito dot com>
- To: "Giri Raja" <giri_amf at yahoo dot com>, <ecos-discuss at ecos dot sourceware dot org>
- Date: Sat, 24 Apr 2004 22:42:17 +0530
- Subject: Re: [ECOS] Help! Program stops recognizing IRQ2 interrupts
- Organization: Codito Technologies Pvt. Ltd.
- References: <20040423225019.2841.qmail@web41701.mail.yahoo.com>
> Interrupted while waiting for the program.
> Give up (and stop debugging it)? (y or n) y
>
> and when I type y, obviously the whole program exits.
> But still I typed 'bt' but the reply was 'No Stack'
> Same is the case with info threads.
similar had been our experience too.
> However when I do see the printfs, I ctrl-c ed and
> typed info threads. this is what I get
> 2 ( Name: main, State: exited, Priority: 10 )
> 0x0002575c in cyg_libc_main_thread ()
> 2 Thread 1 ( Name: Idle Thread, State: ready,
> Priority: 31 ) idle_thread_main(unsigned) (data=1)
> at
> /home/giri/ecos/packages/kernel/current/src/common/thread.cxx:1243
> * 1 Thread 3 ( Name: FIFO THREAD, State: running,
> Priority: 12 ) cyg_hal_user_break (regs=0x0)
> at
> /home/giri/ecos/packages/hal/common/current/src/hal_misc.c:138
>
> the priority level that I set for my simple thread was
> 12.
>
> Can you suggest me something here.
- may be you can try increasing the priority of your simple thread to, say
highest
- get rid of main thread from coming into picture, if possible, in your
situation
though i don't see these causing any change in situation (based on your info
threads) but may-be aid in debugging by reducing some parameters.
other thing that can go wrong is -- if unlock_inner gets called (and leads to
thread switch) during dsr processing (when you are on interrupt stack) this will
lead to unexpectedly wrong things to happen.
other more experienced people on the list will be able to give better debugging
pointers (may be solutions too).
HTH
sandeep
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss