i have a nandflash need the bad block mangement func, and "Average capacity"
is FFS support?.
thank you for your help, but I still do not know if FFS support "nand flash bad block management"...
Hello,
First time usage of FFS requires to run "nanderasechip" command. It is used to build the bad block information for the FFS later use. This is written in the MQXFFSUG manual.
As the bad blocks develop during lifetime of the application, FFS marks them as bad and updates bad block information table.
You can check the mfs_nandflash example project. To run FFS example (the first time), make sure that you erased all necessary blocks which are defined to use with FFS (you can use “nanderasechip” command).
Please try "nanderasechip" command of \ffs\examples\mfs_nandflash\ on the NAND flash, before doing format.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello,
wearout meaning:
Flash memory is a non-volatile memory that can be easily erased and reprogrammed when compared to some predecessor memories such as EEPROM. Flash memory is popular as a result of its small physical size, light weight, low power consumption, high shock resistance, and fast read performance. Currently there are two types of flash memory: NAND flash memory and NOR flash memory.
NAND flash memory is organized as an array of blocks. Each block contains 32 to 64 pages, where a page is the smallest unit for read and write operation. On the other hand, to erase, the input must be a block rather than a pages.
On the other hand, NAND flash memory has a limited number of program/erase cycles (typically known as P/E cycles). Today the most available flash products in the market are designed to endure around 100,000 P/E cycles before the cells become unreliable. This phenomenon is called memory wear or wearout.
The MQX Wear Leveling module currently supports all platforms on MQX RTOS that have the NAND flash device.
MQX 4.2 release contains NAND flash file system (FFS), after install MQX there is an example code at the path:
C:\Freescale\Freescale_MQX_4_2\ffs\examples\mfs_nandflash
This example code is used to demonstrate how to communicate with FFS (flash file system) on NAND flash.
The example code opens NAND flash device and installs MFS. It allows user to perform some basic operation with the NAND flash through the terminal interface for example write/copy/create/rename. It shows how to work with the driver and how to use shell commands.
Please find more information in the attached doc.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------