From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10613 invoked by alias); 5 Jul 2005 09:43:33 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 10575 invoked by uid 22791); 5 Jul 2005 09:43:27 -0000 Received: from otoro.itis.ethz.ch (HELO otoro.itis.ethz.ch) (129.132.24.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 05 Jul 2005 09:43:27 +0000 Received: from localhost (localhost [127.0.0.1]) by otoro.itis.ethz.ch (Postfix) with ESMTP id 7991E5B384; Tue, 5 Jul 2005 11:43:24 +0200 (MEST) Received: from otoro.itis.ethz.ch ([127.0.0.1]) by localhost (otoro [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19074-03-6; Tue, 5 Jul 2005 11:43:24 +0200 (MEST) Received: from cadpad (itis-speag-094-dhcp.itis.ethz.ch [129.132.24.94]) by otoro.itis.ethz.ch (Postfix) with SMTP id 87A515B381; Tue, 5 Jul 2005 11:43:23 +0200 (MEST) Message-ID: <00ae01c58145$fae9ccc0$5e188481@cadpad> Reply-To: "oliver munz @ s p e a g" From: "oliver munz @ s p e a g" To: "Fabian Scheler" , "Andrew Lunn" Cc: References: <006101c580e1$b3a48df0$5e188481@cadpad> <69dd805e05070500163304862@mail.gmail.com> <20050705072746.GC30398@lunn.ch> Date: Tue, 05 Jul 2005 09:43:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0527-0, 04.07.2005), Outbound message X-Antivirus-Status: Clean Subject: Re: [ECOS] Timecritical interrupt-debuging ... printf in DSR's ... Cyg_Scheduler_Implementation::rem_thread() ... cyg_assert_fail() X-SW-Source: 2005-07/txt/msg00044.txt.bz2 ----- Original Message ----- From: "Andrew Lunn" To: "Fabian Scheler" Cc: "Oliver Munz" ; Sent: Tuesday, July 05, 2005 9:27 AM Subject: Re: [ECOS] Timecritical interrupt-debuging ... printf in DSR's ... Cyg_Scheduler_Implementation::rem_thread() ... cyg_assert_fail() > On Tue, Jul 05, 2005 at 09:16:44AM +0200, Fabian Scheler wrote: >> Hi, >> >> > I don't know if it's allowed to use the buffered IO from ISR and DSR's. >> > If >> > everybody know's if it should work or not in threory, let me know.... >> > Im >> > also intressted in other hints how to debug driveres... >> >> well, I don't know the exact implementation of buffered IO in eCos, >> but buffered IO always is blocking (if you want to ensure that no data >> gets lost), and blokcing operations are never allowed within an ISR or >> a DSR. > > Correct. > > You can use the infrastructure trace functions and instramentation > functions which are safe when writting to a buffer. Or you can > implement your own buffering which is ISR/DSR safe. > > Andrew Thanks a lot... Then I can try the option "CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING" (and hope there rise no other problems)... If I use the "CYG_TRACE0(bool, msg)" function family, then I have to use "CYG_TRACE_PRINT()" if I want control over the timing, because "CYG_TRACE_PRINT()" blocks until the hole trace-buffer ist written to diag_write(). Right? Greatings Oli -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss