From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20295 invoked by alias); 3 Sep 2013 12:31:31 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org Received: (qmail 20276 invoked by uid 89); 3 Sep 2013 12:31:30 -0000 Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Sep 2013 12:31:30 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail.ecoscentric.com Received: by mail.ecoscentric.com (Postfix, from userid 48) id 42858468000F; Tue, 3 Sep 2013 13:31:27 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001897] lpc2xxx CAN driver improvements / enhancements Date: Tue, 03 Sep 2013 12:31:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bernard.fouche@kuantic.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013/txt/msg00585.txt.bz2 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=3D1001897 --- Comment #12 from Bernard Fouch=C3=A9 --- FYI I obtained documents from NXP stating that the LPC1765 CAN cell is exac= tly the same one than on the LPC2xxx, that conformance tests have been done by = NXP on the LPC2xxx and so that these tests apply to the LPC1765. NXP wrote that= I'm not allowed to give away these documents, but I got them simply by asking N= XP on their website, so I suppose anyone can get them too. AFAIK the LPC1765 never had any CAN related errata reported. However I repo= rted an error in the documentation to NXP in January 2012 (CAN controller number= ing is wrong), they acknowledged the error but they never released an updated version of UM10360.pdf. So maybe there are other reported problems that don= 't make it to an errata document. The NXP test document I have is dated September 2006 and includes bus off testing. I can't test on the LPC1765 before next week at the earliest and the driver= I use is different because of the LPC1765 "pending interrupt problem", but wh= at you describe should appear here also if we have the same CAN cell. Can you describe what you do on the CAN bus to reach bus off? I could try to reproduce here and see if I also see RM staying at zero. Did you check the value of EWL? If is 0 or 255 I wonder what happens... --=20 You are receiving this mail because: You are the assignee for the bug. >>From ecos-bugs-return-10555-listarch-ecos-bugs=sources.redhat.com@sourceware.org Tue Sep 03 12:37:16 2013 Return-Path: Delivered-To: listarch-ecos-bugs@sources.redhat.com Received: (qmail 24010 invoked by alias); 3 Sep 2013 12:37:16 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org Delivered-To: mailing list ecos-bugs@sourceware.org Received: (qmail 23988 invoked by uid 89); 3 Sep 2013 12:37:16 -0000 Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Sep 2013 12:37:16 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail.ecoscentric.com Received: by mail.ecoscentric.com (Postfix, from userid 48) id 0651A4680001; Tue, 3 Sep 2013 13:37:13 +0100 (BST) X-Original-To: unassigned@bugs.ecos.sourceware.org Delivered-To: unassigned@bugs.ecos.sourceware.org From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001897] lpc2xxx CAN driver improvements / enhancements Date: Tue, 03 Sep 2013 12:37:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: uwe_kindler@web.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013/txt/msg00586.txt.bz2 Content-length: 1209 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001897 --- Comment #13 from Uwe Kindler --- > I can't test on the LPC1765 before next week at the earliest and the driver > I use is different because of the LPC1765 "pending interrupt problem", but > what you describe should appear here also if we have the same CAN cell. > > Can you describe what you do on the CAN bus to reach bus off? I could try to > reproduce here and see if I also see RM staying at zero. > > Did you check the value of EWL? If is 0 or 255 I wonder what happens... Create a thread that prints a debug message in a loop via diag_printf (i.e. one message per second). Create a second thread that simply sends CAN messages (i.e. one message per second). When this application is running, simply unplug the CAN bus cable from the CAN connector. If your debug message from the thread stops, then you know you are spinning in the CAN ISR. You can activate the debug output in the driver to see register contents and ISR reason (ICR_BUS_OFF) - it will be printed again and again ... -- You are receiving this mail because: You are the assignee for the bug.