beautypg.com

13 nor flash, Table 7-6, Nor flash command usage – Artesyn COMX-P40x0 ENP2 Installation and Use (January 2015) User Manual

Page 109

background image

BSP

COMX-P40x0 ENP2 Installation and Use (6806800R95C)

109

7.13 NOR Flash

The NOR Flash is Numonyx™ Axcell™ JS28F00AM29EWL or Spansion S29GL01GP11TFIR2 and
is attached to the GPCM on local bus and works with 16-bit data width. It is either 1 GB or 128
MB and has 1024 uniform blocks of 128 K (or 64 K words each). The 36-bit physical address of
NOR Flash is 0xFE8000000 - 0xFEFFFFFFF. Boot up message in U-Boot is "FLASH: 128 MiB".

NOR Flash supports the following commands: md, cp, cmp, protect and erase.

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;

Table 7-6 NOR Flash Command Usage

Command

Description

protect on start end

Protects flash from address "start" to address "end"

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