From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16081 invoked by alias); 3 Jul 2008 15:30:59 -0000 Received: (qmail 16069 invoked by uid 22791); 3 Jul 2008 15:30:58 -0000 X-Spam-Check-By: sourceware.org Received: from yx-out-1718.google.com (HELO yx-out-1718.google.com) (74.125.44.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 03 Jul 2008 15:30:41 +0000 Received: by yx-out-1718.google.com with SMTP id 34so249404yxf.66 for ; Thu, 03 Jul 2008 08:30:39 -0700 (PDT) Received: by 10.114.161.11 with SMTP id j11mr652262wae.105.1215099038130; Thu, 03 Jul 2008 08:30:38 -0700 (PDT) Received: by 10.114.173.18 with HTTP; Thu, 3 Jul 2008 08:30:38 -0700 (PDT) Message-ID: Date: Thu, 03 Jul 2008 15:30:00 -0000 From: Alexandre Reply-To: thekyz@gmail.com To: Alexandre , "eCos Mailing List" In-Reply-To: <20080703152403.GA31275@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080703101011.GC27831@lunn.ch> <20080703140339.GG27831@lunn.ch> <20080703152403.GA31275@lunn.ch> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Can excessive/intensive serial flow cause stack overflow? X-SW-Source: 2008-07/txt/msg00022.txt.bz2 On Thu, Jul 3, 2008 at 5:24 PM, Andrew Lunn wrote: > Nope. Look at the code where the asserts are. Interrupts < 16 need to be unique. > > However, i don't quite get this: > > lunn@londo:~/eCos/anoncvs-clean/packages/hal/arm/lpc2xxx$ grep -r CYGNUM_HAL_INTERRUPT_UART * > var/current/src/hal_diag.c: CYGNUM_HAL_INTERRUPT_UART0, > var/current/src/hal_diag.c: CYGNUM_HAL_INTERRUPT_UART1, > var/current/include/hal_var_ints.h:#define CYGNUM_HAL_INTERRUPT_UART0 6 > var/current/include/hal_var_ints.h:#define CYGNUM_HAL_INTERRUPT_UART1 7 > > So the default setup is they have different interrupt values. > > Does your target override the values from the variant package? > > Maybe there is something more subtle going on here. Sorry I should have added a bit more. As you can see here: ********************************************************************************************** TRACE: intr.cxx [ 86] Cyg_Interrupt::Cyg_Interrupt() ((vector=6, priority=4, data=4000077c, isr=000049ec, dsr=00004a3c)) // lots of stuff..... TRACE: intr.cxx [ 86] Cyg_Interrupt::Cyg_Interrupt() ((vector=7, priority=4, data=40000860, isr=000049ec, dsr=00004a3c)) TRACE: intr.cxx [ 452] void Cyg_Interrupt::attach() {{enter ASSERT FAIL: <1>lpc2xxx_misc.c[472]hal_interrupt_set_level() Priority already used by another vector ASSERT FAIL: lpc2xxx_misc.c [ 472] hal_interrupt_set_level() Priority already used by another vector ********************************************************************************************** They do have different vectors, what troubles me is that they have the same priority, & I can't find any place where I could change that. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss