DocID025202 Rev 7
232/1080
RM0365
Flexible static memory controller (FSMC)
286
Wrap support for NOR Flash/PSRAM
Wrap burst mode for synchronous memories is not supported. The memories must be
configured in linear burst mode of undefined length.
14.4.2
NAND Flash memory/PC Card address mapping
In this case, three banks are available, each of them being divided into memory areas as
indicated in
For NAND Flash memory, the common and attribute memory spaces are subdivided into
three sections (see in
below) located in the lower 256 Kbytes:
•
Data section (first 64 Kbytes in the common/attribute memory space)
•
Command section (second 64 Kbytes in the common / attribute memory space)
•
Address section (next 128 Kbytes in the common / attribute memory space)
The application software uses the 3 sections to access the NAND Flash memory:
•
To sending a command to NAND Flash
memory
, the software must write the
command value to any memory location in the command section.
•
To specify the NAND Flash address that must be read or written
, the software
must write the address value to any memory location in the address section. Since an
address can be 4 or 5 bytes long (depending on the actual memory size), several
1. In case of a 16-bit external memory width, the FMC will internally use HADDR[25:1] to generate the
address for external memory FMC_A[24:0].
Whatever the external memory width, FMC_A[0] should be connected to external memory address A[0].
Table 45. NAND/PC Card memory mapping and timing registers
Start address
End address
FMC bank
Memory space
Timing register
0x9C00 0000
0x9FFF FFFF
Bank 4 - PC card
I/O
FMC_PIO4 (0xB0)
0x9800 0000
0x9BFF FFFF
Attribute
FMC_PATT4 (0xAC)
0x9000 0000
0x93FF FFFF
Common
FMC_PMEM4 (0xA8)
0x8800 0000
0x8BFF FFFF
Bank 3 - NAND Flash
Attribute
FMC_PATT3 (0x8C)
0x8000 0000
0x83FF FFFF
Common
FMC_PMEM3 (0x88)
0x7800 0000
0x7BFF FFFF
Bank 2- NAND Flash
Attribute
FMC_PATT2 (0x6C)
0x7000 0000
0x73FF FFFF
Common
FMC_PMEM2 (0x68)
Table 46. NAND bank selection
Section name
HADDR[17:16]
Address range
Address section
1X
0x020000-0x03FFFF
Command section
01
0x010000-0x01FFFF
Data section
00
0x000000-0x0FFFF