beautypg.com

12 nand flash, Bsp operations – Artesyn COMX-P4080 Installation and Use (August 2014) User Manual

Page 97

background image

BSP Operations

COMX-P4080 COM Express Module Installation and Use (6806800L20C)

97

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.12 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.

For more information on the NAND Flash and its memory map, see

Table "NAND Flash Map" on

page 75

.

protect on start +len

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

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-5 NOR Flash Command Usage (continued)

Command

Description