From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12133 invoked by alias); 2 Oct 2009 10:35:39 -0000 Received: (qmail 12123 invoked by uid 22791); 2 Oct 2009 10:35:38 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=BAYES_20 X-Spam-Check-By: sourceware.org Received: from firewall.logopak.de (HELO Firewall.logopak-it.com) (212.224.3.37) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Oct 2009 10:35:33 +0000 Received: from [10.1.3.18] (port=1602 helo=10.1.3.18) by Firewall.logopak-it.com with esmtp (Exim 4.69) (envelope-from ) id 1MtfTx-0004IX-0P for ecos-discuss@ecos.sourceware.org; Fri, 02 Oct 2009 12:35:25 +0200 Received: from il [10.1.60.50] by logopak.de with David.fx (0293.454946444646504A4C53); 02 Oct 2009 10:35:24 UT From: Iris Lindner Date: Fri, 02 Oct 2009 10:35:00 -0000 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Disposition: inline To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200910021236.44312.ilindner@logopak.de> 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: [ECOS] FLASH API v.2 and interrupts X-SW-Source: 2009-10/txt/msg00012.txt.bz2 Hi everyone, (Please excuse if I have overlooked a solution to our problem in mailing lists for example.) we have the following problem with our system (using redboot romram mode): We can't properly harmonize flash operations and interrupt handling. There are regularly frames coming in on CAN bus (lifesign signals of the nodes) which have to be treated. We use Version 1 eCos FLASH API (chip: Spansion S29GL256P) and get terrible crashes (including completely empty flash afterwards) when interrupts are NOT disabled and flash is programmed for example when meanwhile CAN bus traffic is increased. If we disable interrupts on device driver level (HAL_[DISABLE| RESTORE]_INTERRUPTS()) flash operations all work fine but CAN frames get lost and the task goes offline (-> whole machine no longer able to work). Could Version 2 of eCos FLASH API solve the problem? (It is interrupt safe now, isn't it?) Do you need more information about our system/configuration (I'm not sure about what details are useful to know)? Thank you very much in advance for your help, I'm looking forward to any comment! Kind regards, Iris Lindner -- Iris Lindner Software Development Industrial Print and Apply Labelling www.Logopak.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss