From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16758 invoked by alias); 21 Jun 2012 07:01:31 -0000 Received: (qmail 16746 invoked by uid 22791); 21 Jun 2012 07:01:29 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Jun 2012 07:01:15 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 4F62D2F78010 for ; Thu, 21 Jun 2012 08:01:14 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nU2CfUqlFlmw; Thu, 21 Jun 2012 08:01:08 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001561] Internal flash driver for Freescale TWR-K60N512 board X-Bugzilla-Reason: CC 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: nau@csm-instruments.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: ilijak@siva.com.mk X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 21 Jun 2012 07:01:00 -0000 Message-Id: <20120621070108.C64202F78004@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2012-06/txt/msg00013.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001561 --- Comment #23 from Nicolas Aujoux 2012-06-21 08:00:56 BST --- (In reply to comment #21) > Hi Nicolas > > I'm sorry for late reply, but I was busy. I tried to disable keeping Redboot > configuration data in FLASH bit it still raises exception. Can you post your > ECM file? No problem. I posted a working for me configuration. I hope this works for you as well. > > (In reply to comment #20) > > Hi Ilija, > > > > I have made some tests and in order for the driver to work, I desactivated the > > "Redboot FIS support" (in Redboot ROM monitor -> Allow RedBoot tu support FLASH > > programming) and desactivated the "Keep Redboot configuration data in flash" > > option. > > When this options are enabled, Redboot try to read a portion of flash (with a > > memcpy) which leads to a problem. > > Have you tried with cyg_flash_read()? It is recommended in manual and I would > recommend too. I found out something about that : it seems to come from th "Flash block containing the directory" option which has the value "-1". This value should correspond to the last block of flash but when I put the value to 2, I get a prompt and the fis command (even if it still crash when I do a fis init). > > > > > I also try to move the CYG_FLASH_DRIVER into a new kinetis_flash.c file and add > > it to the file to be compile in the .cdl file. Redboot builds fine with it but > > when I launch it, it seems that there is no flash init done. I'll keep working > > on that but if you have any idea of what I am missing ... > > Probably the object file containing CYG_FLASH_DRIVER has been discarded by the > linker since effectively there aren't references to it. > If the driver is general for all Kinetis devices you can leave it in > kinetis_misc.c or put it in kinetis_flash.inl and include in kinetis_misc.c. > Otherwise you can put copies in platforms (see STM32 for example). However > driver inclusion for compilation should be conditional with some #ifdef. So I let it where it is for the moment. Thanks > > Ilija -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.