From 72179b777310811cf78d67224e21574c4b0c4a1e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 3 May 2013 12:52:33 -0600 Subject: [PATCH] Rearchitecting of some MTD, partition, SMART interfaces, and FLASH drivers to: Better use the byte write capbility when available and to use smaller erase sectors for the erase sector size when available). --- ChangeLog | 8 +- Documentation/NuttX.html | 45 ++++ configs/mikroe-stm32f4/Kconfig | 69 ++++- configs/mikroe-stm32f4/README.txt | 15 +- configs/mikroe-stm32f4/src/up_nsh.c | 82 ++++-- configs/mikroe-stm32f4/usbnsh/defconfig | 67 ++--- configs/stm32f4discovery/README.txt | 15 +- drivers/mtd/Kconfig | 27 +- drivers/mtd/m25px.c | 332 ++++++++++++------------ drivers/mtd/mtd_partition.c | 11 +- drivers/mtd/rammtd.c | 55 ++-- drivers/mtd/smart.c | 313 ++++++++++++---------- fs/smartfs/smartfs_smart.c | 9 +- fs/smartfs/smartfs_utils.c | 22 +- include/nuttx/fs/ioctl.h | 9 - include/nuttx/mtd.h | 13 +- tools/kconfig2html.c | 3 +- 17 files changed, 643 insertions(+), 452 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8b8c3152d7..1d10872fc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4651,7 +4651,7 @@ * configs/sim/mtdpart: A new configuration to test MTD partitions (2013-4-30). * configs/sim/mkroe-stm32f4: Support for the MikroElektronika - Mikromedia for STM32F4 development board (from Ken Petit, 2013-4-30). + Mikromedia for STM32F4 development board (from Ken Pettit, 2013-4-30). * fs/smartfs: Add Ken Pettits SMART FS (2013-4-30). * include/nuttx/mtd.h and most MTD drivers: Add support for (optional) method to perform byte oriented writes if so configured @@ -4663,3 +4663,9 @@ (option) byte write method (2013-5-3). * arch/arm/src/kl: Repartitioning of definitions in headef files from Alan Carvalho de Assis (2013-5-3). + * drivers/mtd/smart.c, fs/smart, and other files: SMART file system + now makes use of the MTD byte write capabilities when present (from + Ken Pettit, 2013-5-3). + * drivers/mtd/m25px.c: Some rearchitecting to use the byte write + capability (when possible) and to use 4KB sectors for the erase block + size when the part supports it (Ken Pettit, 2013-5-3). diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index f758564eab..322667449d 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -2552,6 +2552,19 @@ nsh>

STMicro STM32F4-Discovery (STM32 F4 family). This port uses the STMicro STM32F4-Discovery board featuring the STM32F407VGT6 MCU. + The STM32F407VGT6 is a 168MHz Cortex-M4 operation with 1Mbit Flash memory and 128kbytes. + The board features: +

+ +

Refer to the STMicro web site for further information about this board.