public inbox for ecos-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM
@ 2013-05-23 1:48 bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
` (6 more replies)
0 siblings, 7 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-05-23 1:48 UTC (permalink / raw)
To: ecos-bugs
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.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
@ 2013-06-01 13:45 ` bugzilla-daemon
2013-06-01 13:54 ` bugzilla-daemon
` (5 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-01 13:45 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2239|0 |1
is obsolete| |
--- Comment #1 from Mike Jones <mjones@linear.com> ---
Created attachment 2242
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2242&action=edit
Updated patch against latest CVS
This patch was made with the latest CVS. It also has a small fix in a #define.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
@ 2013-06-01 13:54 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
` (4 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-01 13:54 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
--- Comment #2 from Mike Jones <mjones@linear.com> ---
Actually, it was an #ifdef in fm25vxx_freescale_dspi.c
+#ifdef CYGHWR_DEVS_FLASH_FM25VXX_DEV0_SPI_USE_DBR
+# define FM25VXX_SPI_DBR_DEV0 1
+#else
+# define FM25VXX_SPI_DBR_DEV0 0
+#endif
CYGHWR_DEVS_FLASH_FM25VXX_DEV0_SPI_USE_DBR was incorrect. It was copied from
SST25 driver and that was also incorrect and I have put in a bugzilla fix for
it.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
2013-06-01 13:54 ` bugzilla-daemon
@ 2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
` (3 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-09 2:35 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2242|0 |1
is obsolete| |
--- Comment #3 from Mike Jones <mjones@linear.com> ---
Created attachment 2253
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2253&action=edit
Main Patch
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
` (2 preceding siblings ...)
2013-06-09 2:35 ` bugzilla-daemon
@ 2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:37 ` bugzilla-daemon
` (2 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-09 2:35 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
--- Comment #4 from Mike Jones <mjones@linear.com> ---
Created attachment 2254
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2254&action=edit
ecos.db patch
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
` (3 preceding siblings ...)
2013-06-09 2:35 ` bugzilla-daemon
@ 2013-06-09 2:37 ` bugzilla-daemon
2013-06-26 16:55 ` bugzilla-daemon
2013-06-26 16:56 ` bugzilla-daemon
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-09 2:37 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
--- Comment #5 from Mike Jones <mjones@linear.com> ---
Comment on attachment 2253
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2253
Main Patch
This patch now includes support for ST25XX and FM25XX on the TWR-K70F120M
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
` (4 preceding siblings ...)
2013-06-09 2:37 ` bugzilla-daemon
@ 2013-06-26 16:55 ` bugzilla-daemon
2013-06-26 16:56 ` bugzilla-daemon
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-26 16:55 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2253|0 |1
is obsolete| |
--- Comment #6 from Mike Jones <mjones@linear.com> ---
Created attachment 2271
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2271&action=edit
Core Patch
Replacing the patch after fixing a problem with it. No functional changes. Just
removed some garbage.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
` (5 preceding siblings ...)
2013-06-26 16:55 ` bugzilla-daemon
@ 2013-06-26 16:56 ` bugzilla-daemon
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-26 16:56 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2254|0 |1
is obsolete| |
--- Comment #7 from Mike Jones <mjones@linear.com> ---
Created attachment 2272
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2272&action=edit
Ecos DB Patch
Replacing just in case I fixed this one too. Noticed the file date changed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM
@ 2013-05-23 1:48 bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
` (6 more replies)
0 siblings, 7 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-05-23 1:48 UTC (permalink / raw)
To: unassigned
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 the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
@ 2013-06-01 13:45 ` bugzilla-daemon
2013-06-01 13:54 ` bugzilla-daemon
` (5 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-01 13:45 UTC (permalink / raw)
To: unassigned
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2239|0 |1
is obsolete| |
--- Comment #1 from Mike Jones <mjones@linear.com> ---
Created attachment 2242
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2242&action=edit
Updated patch against latest CVS
This patch was made with the latest CVS. It also has a small fix in a #define.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
@ 2013-06-01 13:54 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
` (4 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-01 13:54 UTC (permalink / raw)
To: unassigned
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
--- Comment #2 from Mike Jones <mjones@linear.com> ---
Actually, it was an #ifdef in fm25vxx_freescale_dspi.c
+#ifdef CYGHWR_DEVS_FLASH_FM25VXX_DEV0_SPI_USE_DBR
+# define FM25VXX_SPI_DBR_DEV0 1
+#else
+# define FM25VXX_SPI_DBR_DEV0 0
+#endif
CYGHWR_DEVS_FLASH_FM25VXX_DEV0_SPI_USE_DBR was incorrect. It was copied from
SST25 driver and that was also incorrect and I have put in a bugzilla fix for
it.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
2013-06-01 13:54 ` bugzilla-daemon
@ 2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
` (3 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-09 2:35 UTC (permalink / raw)
To: unassigned
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2242|0 |1
is obsolete| |
--- Comment #3 from Mike Jones <mjones@linear.com> ---
Created attachment 2253
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2253&action=edit
Main Patch
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
` (2 preceding siblings ...)
2013-06-09 2:35 ` bugzilla-daemon
@ 2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:36 ` bugzilla-daemon
` (2 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-09 2:35 UTC (permalink / raw)
To: unassigned
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
--- Comment #4 from Mike Jones <mjones@linear.com> ---
Created attachment 2254
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2254&action=edit
ecos.db patch
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
` (3 preceding siblings ...)
2013-06-09 2:35 ` bugzilla-daemon
@ 2013-06-09 2:36 ` bugzilla-daemon
2013-06-26 16:55 ` bugzilla-daemon
2013-06-26 16:56 ` bugzilla-daemon
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-09 2:36 UTC (permalink / raw)
To: unassigned
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
--- Comment #5 from Mike Jones <mjones@linear.com> ---
Comment on attachment 2253
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2253
Main Patch
This patch now includes support for ST25XX and FM25XX on the TWR-K70F120M
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
` (4 preceding siblings ...)
2013-06-09 2:36 ` bugzilla-daemon
@ 2013-06-26 16:55 ` bugzilla-daemon
2013-06-26 16:56 ` bugzilla-daemon
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-26 16:55 UTC (permalink / raw)
To: unassigned
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2253|0 |1
is obsolete| |
--- Comment #6 from Mike Jones <mjones@linear.com> ---
Created attachment 2271
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2271&action=edit
Core Patch
Replacing the patch after fixing a problem with it. No functional changes. Just
removed some garbage.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug 1001850] Flash Driver for Cypress FM25VXX FRAM
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
` (5 preceding siblings ...)
2013-06-26 16:55 ` bugzilla-daemon
@ 2013-06-26 16:56 ` bugzilla-daemon
6 siblings, 0 replies; 15+ messages in thread
From: bugzilla-daemon @ 2013-06-26 16:56 UTC (permalink / raw)
To: unassigned
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001850
Mike Jones <mjones@linear.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2254|0 |1
is obsolete| |
--- Comment #7 from Mike Jones <mjones@linear.com> ---
Created attachment 2272
--> http://bugs.ecos.sourceware.org/attachment.cgi?id=2272&action=edit
Ecos DB Patch
Replacing just in case I fixed this one too. Noticed the file date changed.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2013-06-26 16:56 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-23 1:48 [Bug 1001850] New: Flash Driver for Cypress FM25VXX FRAM bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
2013-06-01 13:54 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:37 ` bugzilla-daemon
2013-06-26 16:55 ` bugzilla-daemon
2013-06-26 16:56 ` bugzilla-daemon
2013-05-23 1:48 [Bug 1001850] New: " bugzilla-daemon
2013-06-01 13:45 ` [Bug 1001850] " bugzilla-daemon
2013-06-01 13:54 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:35 ` bugzilla-daemon
2013-06-09 2:36 ` bugzilla-daemon
2013-06-26 16:55 ` bugzilla-daemon
2013-06-26 16:56 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).