전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

UM0851 데이터시트(PDF) 132 Page - STMicroelectronics

부품명 UM0851
상세설명  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 데이터시트(HTML) 132 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 128Page - STMicroelectronics UM0851 Datasheet HTML 129Page - STMicroelectronics UM0851 Datasheet HTML 130Page - STMicroelectronics UM0851 Datasheet HTML 131Page - STMicroelectronics UM0851 Datasheet HTML 132Page - STMicroelectronics UM0851 Datasheet HTML 133Page - STMicroelectronics UM0851 Datasheet HTML 134Page - STMicroelectronics UM0851 Datasheet HTML 135Page - STMicroelectronics UM0851 Datasheet HTML 136Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 132 / 245 page
background image
Non-volatile memory device drivers
UM0851
132/245
Doc ID 16604 Rev 2
argument which distinguishes between read and write operations. This function must
only be provided if hardware ECC is available.
●
calculate_ecc(): this function is called after read/write from/to the chip. It transfers the
ECC from the hardware to the buffer.
●
correct_data(): in case of an ECC error, this function is called for error detection and
correction. If the hardware generator matches the default algorithm of the nand_ecc
software generator, then use the correction function provided by nand_ecc instead of
implementing duplicated code.
In the SPEAr platform, ECC calculation is done by hardware (FSMC) and ECC correction by
software. The FSMC hardware in the SPEAr3xx and SPEAr600 platforms generates 3 bytes
ECC for 512 bytes page. As already stated, these 3 bytes are at the 2, 3, and 4th offset of
the OOB area. For the 2048 bytes page size NAND Flash number of ECC are 12 bytes at
the offset 2, 3, 4, 18, 19, 20, 34, 35, 36, 50, 51, and 52th respectively.
NAND partitioning
Partitioning can be done by 2 ways: static or dynamic. Static partitions need to define a
partitioning table in the NAND driver.
#define NUM_PARTITIONS 4
static struct mtd_partition partition_info64M[] = {
/* 4096 X 0x00004000 */
{.name = "XLoader",
.offset = 0,
.size = 0x00010000
/* 4 X 0x00004000 */
},
{.name = "Uboot",
.offset = 0x00010000,
.size = 0x00050000
/* 20 X 0x00004000 */
},
{.name = "Kernel",
.offset = 0x00060000,
.size = 0x00400000
/* 256 X 0x00004000 */
},
{.name = "Root File system",
.offset = 0x00460000,
.size = 0x03BA0000
/*3816 X 0x00004000 */
}
};
Please note that the offset of any partition is in multiple of sector size of the NAND Flash.
While modifying the static partition table, you should take care of this to avoid warning
messages when creating partitions.
Dynamic partitions are defined in the command-line arguments by using the command:
setenv bootargs console=ttyS0 root=/dev/mtdblock7 rootfstype=yaffs mtdparts =spear-
nand:4k(XLoader),200k(uBoot),2M(Linux),61M(Ramdisk)
The command-line argument creates 4 partitions in the NAND Flash.
5.1.4
NAND device usage
The user space application can access the NAND Flash device content using the mtdblock
nodes (/dev/mtdblockN) and mtdchar nodes (/dev/mtdN), either in raw mode, for example
using the 'dd' command, or in logical mode, mounting a file system (usually YAFFS2 or
JFFS2) and accessing its files through open/read/write system calls.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com