From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18356 invoked by alias); 23 May 2013 01:48:02 -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 18222 invoked by uid 89); 23 May 2013 01:48:01 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 23 May 2013 01:48:00 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 688564680008 for ; Thu, 23 May 2013 02:47:57 +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 3AW7bjcYSQW9; Thu, 23 May 2013 02:47:49 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM Date: Thu, 23 May 2013 01:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Flash X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mjones@linear.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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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/msg00351.txt.bz2 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850 Bug ID: 1001850 Summary: Flash Driver for Cypress FM25VXX FRAM Product: eCos Version: unknown Target: freescale_twr_k60n512 (Freescale Kinetis TWR-K60N512) Architecture/Host Cortex-M OS: Status: UNCONFIRMED Severity: enhancement Priority: low Component: Flash Assignee: unassigned@bugs.ecos.sourceware.org Reporter: mjones@linear.com CC: ecos-bugs@ecos.sourceware.org Created attachment 2239 --> http://bugs.ecos.sourceware.org/attachment.cgi?id=2239&action=edit Cypress Flash support for FM25VXX FRAM on Kinetis This is a working driver for Cypress FM25VXX FRAM for Kinetis K60 FXM. Several things to note about its current status: - Supports 256kB, 512KB, 1MB devices (tested with 512KB device) - FRAM has no blocks, so the flash API is implemented as a single block device. - Erase is implemented by writing 0xFF. It is not very time efficient, but it is very memory efficient. If one really wants to erase, it will be much faster to write 0xFF from your own larger buffer. - It has a CDL setting to control the write block size if desired. - It works with SPI polled mode, but does not completely work with SPI DMA mode. A write followed by a read produces read data that has one 0x00 byte at the beginning. This seems to be related to the underlying SPI code. - The test code has been run in other application files and should work, but the erase will be very slow. You can comment the erase and it should run. The code is just a tweaked version of SST25 test code. - Normal READ mode tested. FAST READ mode not tested. - It has been used with an existing application and is reliable in polled mode with normal READ mode. - With the SPI speed set to 25Mhz, the actual frequency is 12.5Mhz. Increasing SPI setting has no effect. Issues that need resolving: - DMA function - SPI frequency - Block erase strategy - More testing -- You are receiving this mail because: You are on the CC list for the bug.