📄 nf_install.txt
字号:
General information:
-------------------
There is 4 drivers for Nand Flash, depending on memory type and board configuration.
1) nf_1x_512b
This driver supports one nand flash memory with a page size of 512bytes.
2) nf_2x_512b
This driver supports two parallel nand flash memory with a page size of 512bytes.
3) nf_1x_2kb
This driver supports one nand flash memory with a page size of 2kbytes.
4) nf_2x_2kb
This driver supports two parallel nand flash memory with a page size of 2kbytes.
Project files
-------------
To include one of this driver in your project, you have to modify the file location in compiler.
File to change are :
- nf.c
- nf_drv.c
- nf_drv_load.a51
Nand Flash size auto-detection
------------------------------
All drivers support nand flash size autodetection. This feature can be activated by defining
NF_CAPACITY_AUTO_DETECT to TRUE, in board.h. If you want to optimize code generation, define
NF_CAPACITY_AUTO_DETECT to FALSE. In this case, total memory size must be defined in board.h
from NF_16 (16Mbytes) to NF_512 (512Mbytes)
Reserved zone
-------------
It's possible to define a reserved zone for application inside nand-flash memory. This reserved
zone can not be modified by an operating system when application is in mass storage mode, except
by set application in update mode.
To set application in update mode, set flag reserved_disk_space (see variable.c for definition)
to TRUE.
Size of reserved space is defined in config.h file. For example following line
#define MEM_RESERVED_SIZE 1024
will keep a reserved space on nand flash with a size of 1024 sectors (512bytes for all drivers).
Logical starting address of this reserved space is stored in the variable nf_reserved_space_start.
Reserved zone can be read/write with all low level funtions (nf_read_open, nf_read_write, ...).
Full Chip Erase
---------------
Define NF_FULL_CHIP_ERASE determines how the function nf_erase_all_block will erase block during a
format.
If NF_FULL_CHIP_ERASE is set to TRUE, then all physicals blocks, except bad block, specific block and
reserved block will be erased.
If NF_FULL_CHIP_ERASE is set to FALSE, then only blocks that contains LUT will be erased.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -