beautypg.com

14 nand flash, Table 7-7, Nand flash command usage – Artesyn COMX-P40x0 ENP2 Installation and Use (August 2014) User Manual

Page 99

background image

BSP

COMX-P40x0 ENP2 Installation and Use (6806800R95B)

99

The following is a NOR Flash operation example that upgrades the U-Boot.

tftpboot $loadaddr $ubootfile; protect off 0xeff00000 +$filesize;

erase 0xeff00000 +$filesize; cp.b $loadaddr 0xeff00000 $filesize;

protect on 0xeff00000 +$filesize;

7.14 NAND Flash

The NAND Flash is Numonyx NAND08GW3B2CN6E which is 1 GB in size. It is attached to the
FCM on the local bus and works at 8-bit mode. Boot up message will appear as "NAND: 1024
MiB".

Each page contains 2,112 bytes, including 2048 bytes of data with 64 bytes spare. Each block
contains 64 pages, including 128 KB of data with 4 KB spare, making a total of 8192 blocks.

NAND Flash supports the following commands:

protect on all

Protects all flash banks

protect off start end

Makes flash from address "start" to address "end" writable

protect off start +len

Makes flash from address "start" to end of section with address
"start"+"len"-1 writable

protect off all

Makes all flash banks writable

erase start end

Erases flash from address ’start’ to address ’end’

erase start +len

Erases flash from address ’start’ to the end of section with address
’start’+len-1

erase all

Erases all flash banks

Table 7-6 NOR Flash Command Usage (continued)

Command

Description

Table 7-7 NAND Flash Command Usage

Command

Description

nand info

Shows available NAND devices

nand device [dev]

Shows or sets current device

nand read

Addr off|partition size