From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25600 invoked by alias); 26 Feb 2007 14:57:11 -0000 Received: (qmail 25591 invoked by uid 22791); 26 Feb 2007 14:57:11 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Feb 2007 14:57:02 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 687FA19500DF; Mon, 26 Feb 2007 07:57:01 -0700 (MST) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 0CFC4195008F; Mon, 26 Feb 2007 07:56:59 -0700 (MST) Message-ID: <45E2F53A.7090403@mlbassoc.com> Date: Mon, 26 Feb 2007 14:57:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Julien_St=E9phane?= CC: ecos-discuss@ecos.sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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] SPI usage X-SW-Source: 2007-02/txt/msg00249.txt.bz2 Julien Stéphane wrote: > sorry, here is my code... The kernel, more importantly, interrupts are not running when 'cyg_user_start()' is called. That's why your code hangs. Try putting these functions into 'main()', which is called with a proper thread environment and the kernel+interrupts running. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss