18. Flexible static memory controller (FSMC)

18.1 Introduction

The flexible static memory controller (FSMC) includes two memory controllers:

This memory controller is also named flexible memory controller (FMC).

18.2 FMC main features

The FMC functional block makes the interface with: synchronous and asynchronous static memories, and NAND Flash memory. Its main purposes are:

All external memories share the addresses, data and control signals with the controller. Each external device is accessed by means of a unique chip select. The FMC performs only one access at a time to an external device.

The main features of the FMC controller are the following:

The Write FIFO is common to all memory controllers and consists of:

The Write FIFO can be disabled by setting the WFDIS bit in the FMC_BCR1 register.

At startup the FMC pins must be configured by the user application. The FMC I/O pins which are not used by the application can be used for other purposes.

The FMC registers that define the external device type and associated characteristics are usually set at boot time and do not change until the next reset or power-up. However, the settings can be changed at any time.

18.3 FMC implementation

Table 82. FMC implementation

ReferencesSTM32L4R7xx/STM32L4R9xx and
STM32L4S7xx/STM32L4S9xx
STM32L4P5xx and
STM32L4Q5xx
PSRAM chip select counter-X

18.4 FMC block diagram

The FMC consists of the following main blocks:

The block diagram is shown in the figure below.

Figure 46. FMC block diagram

FMC block diagram showing internal components and external signal connections.

The block diagram illustrates the internal architecture of the FMC. On the left, an AHB interface connects to 'Configuration registers' and receives 'HCLK' from a clock controller. Above the FMC block, an arrow indicates 'FSMC interrupts to NVIC'. The internal structure includes a 'NOR/PSRAM memory controller' and a 'NAND memory controller'. On the right, various pins are shown with their functions:

The diagram is labeled MSV39280V1 in the bottom right corner.

FMC block diagram showing internal components and external signal connections.

18.5 AHB interface

The AHB slave interface allows internal CPUs and other bus master peripherals to access the external memories.

AHB transactions are translated into the external device protocol. In particular, if the selected external memory is 16- or 8-bit wide, 32-bit wide transactions on the AHB are split into consecutive 16- or 8-bit accesses. The FMC chip select (FMC_NEx) does not toggle between the consecutive accesses except in case of Access mode D when the Extended mode is enabled.

The FMC generates an AHB error in the following conditions:

The effect of an AHB error depends on the AHB master which has attempted the R/W access:

The AHB clock (HCLK) is the reference clock for the FMC.

18.5.1 Supported memories and transactions

General transaction rules

The requested AHB transaction data size can be 8-, 16- or 32-bit wide whereas the accessed external device has a fixed data width. This may lead to inconsistent transfers.

Therefore, some simple transaction rules must be followed:

There is no issue in this case.

In this case, the FMC splits the AHB transaction into smaller consecutive memory accesses to meet the external data width. The FMC chip select (FMC_NEx) does not toggle between the consecutive accesses. If the bus turnaround timings is configured

to any other value than 0, the FMC chip select (FMC_NEx) toggles between the consecutive accesses. This feature is required when interfacing with FRAM memory.

The transfer may or not be consistent depending on the type of external device:

In this case, the FMC allows read/write transactions and accesses the right data through its byte lanes NBL[1:0].

Bytes to be written are addressed by NBL[1:0].

All memory bytes are read (NBL[1:0] are driven low during read transaction) and the useless ones are discarded.

This situation occurs when a byte access is requested to a 16-bit wide Flash memory. Since the device cannot be accessed in Byte mode (only 16-bit words can be read/written from/to the Flash memory), Write transactions and Read transactions are allowed (the controller reads the entire 16-bit memory word and uses only the required byte).

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.

Configuration registers

The FMC can be configured through a set of registers. Refer to Section 18.7.6 , for a detailed description of the NOR Flash/PSRAM controller registers. Refer to Section 18.8.7 , for a detailed description of the NAND Flash registers.

18.6 External device address mapping

From the FMC point of view, the external memory is divided into fixed-size banks of 256 Mbytes each (see Figure 47 ):

For each bank the type of memory to be used can be configured by the user application through the Configuration register.

Figure 47. FMC memory banks

Diagram of FMC memory banks showing address ranges and supported memory types for Bank 1 and Bank 3.
AddressBankSupported memory type
0x6000 0000Bank 1
4 x 64 Mbyte
NOR/PSRAM/SRAM
0x6FFF FFFF
0x7000 0000Not used
0x7FFF FFFF
0x8000 0000Bank 3
4 x 64 Mbyte
NAND Flash memory
0x8FFF FFFF
0x9000 0000Not used
0x9FFF FFFF

MSV34475V2

Diagram of FMC memory banks showing address ranges and supported memory types for Bank 1 and Bank 3.

18.6.1 NOR/PSRAM address mapping

HADDR[27:26] bits are used to select one of the four memory banks as shown in Table 83 .

Table 83. NOR/PSRAM bank selection

HADDR[27:26] (1)Selected bank
00Bank 1 - NOR/PSRAM 1
01Bank 1 - NOR/PSRAM 2
10Bank 1 - NOR/PSRAM 3
11Bank 1 - NOR/PSRAM 4

1. HADDR are internal AHB address lines that are translated to external memory.

The HADDR[25:0] bits contain the external memory address. Since HADDR is a byte address whereas the memory is addressed at word level, the address actually issued to the memory varies according to the memory data width, as shown in the following table.

Table 84. NOR/PSRAM External memory address

Memory width (1)Data address issued to the memoryMaximum memory capacity (bits)
8-bitHADDR[25:0]64 Mbytes x 8 = 512 Mbit
16-bitHADDR[25:1] >> 164 Mbytes/2 x 16 = 512 Mbit

1. In case of a 16-bit external memory width, the FMC internally uses 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].

18.6.2 NAND Flash memory address mapping

The NAND bank is divided into memory areas as indicated in Table 85 .

Table 85. NAND memory mapping and timing registers

Start addressEnd addressFMC bankMemory spaceTiming register
0x8800 00000x8BFF FFFFBank 3 - NAND FlashAttributeFMC_PATT (0x8C)
0x8000 00000x83FF FFFFCommonFMC_PMEM (0x88)

For NAND Flash memory, the common and attribute memory spaces are subdivided into three sections (see in Table 86 below) located in the lower 256 Kbytes:

Table 86. NAND bank selection

Section nameHADDR[17:16]Address range
Address section1X0x020000-0x03FFFF
Command section010x010000-0x01FFFF
Data section000x000000-0x0FFFF

The application software uses the 3 sections to access the NAND Flash memory:

Since the NAND Flash memory automatically increments addresses, there is no need to increment the address of the data section to access consecutive memory locations.

18.7 NOR Flash/PSRAM controller

The FMC generates the appropriate signal timings to drive the following types of memories:

The FMC outputs a unique chip select signal, NE[4:1], per bank. All the other signals (addresses, data and control) are shared.

The FMC supports a wide range of devices through a programmable timings among which:

The FMC Clock (FMC_CLK) is a submultiple of the HCLK clock. It can be delivered to the selected external device either during synchronous accesses only or during asynchronous and synchronous accesses depending on the CCKEN bit configuration in the FMC_BCR1 register:

The size of each bank is fixed and equal to 64 Mbytes. Each bank is configured through dedicated registers (see Section 18.7.6: NOR/PSRAM controller registers ).

The programmable memory parameters include access times (see Table 87 ) and support for wait management (for PSRAM and NOR Flash accessed in Burst mode).

Table 87. Programmable NOR/PSRAM access parameters

ParameterFunctionAccess modeUnitMin.Max.
Address setupDuration of the address setup phaseAsynchronousAHB clock cycle (HCLK)015
Address holdDuration of the address hold phaseAsynchronous, muxed I/OsAHB clock cycle (HCLK)115
NBL setupDuration of the byte lanes setup phaseAsynchronousAHB clock cycle (HCLK)03
Data setupDuration of the data setup phaseAsynchronousAHB clock cycle (HCLK)1256
Data holdDuration of the data hold phaseAsynchronousAHB clock cycle (HCLK)03
Bust turnDuration of the bus turnaround phaseAsynchronous and synchronous read / writeAHB clock cycle (HCLK)015
Clock divide ratioNumber of AHB clock cycles (HCLK) to build one memory clock cycle (CLK)SynchronousAHB clock cycle (HCLK)216
Data latencyNumber of clock cycles to issue to the memory before the first data of the burstSynchronousMemory clock cycle (CLK)217

18.7.1 External memory interface signals

Table 88, Table 89 and Table 90 list the signals that are typically used to interface with NOR Flash memory, SRAM and PSRAM.

Note: The prefix “N” identifies the signals that are active low.

NOR Flash memory, non-multiplexed I/Os

Table 88. Non-multiplexed I/O NOR Flash memory

FMC signal nameI/OFunction
CLKOClock (for synchronous access)
A[25:0]OAddress bus
D[15:0]I/OBidirectional data bus
NE[x]OChip select, x = 1..4
NOEOOutput enable
NWEOWrite enable
NL(=NADV)OLatch enable (this signal is called address valid, NADV, by some NOR Flash devices)
NWAITINOR Flash wait input signal to the FMC

The maximum capacity is 512 Mbits (26 address lines).

NOR Flash memory, 16-bit multiplexed I/Os Table 89. 16-bit multiplexed I/O NOR Flash memory
FMC signal nameI/OFunction
CLKOClock (for synchronous access)
A[25:16]OAddress bus
AD[15:0]I/O16-bit multiplexed, bidirectional address/data bus (the 16-bit address A[15:0] and data D[15:0] are multiplexed on the databus)
NE[x]OChip select, x = 1..4
NOEOOutput enable
NWEOWrite enable
NL(=NADV)OLatch enable (this signal is called address valid, NADV, by some NOR Flash devices)
NWAITINOR Flash wait input signal to the FMC

The maximum capacity is 512 Mbits.

PSRAM/FRAM/SRAM, non-multiplexed I/Os Table 90. Non-multiplexed I/Os PSRAM/SRAM
FMC signal nameI/OFunction
CLKOClock (only for PSRAM synchronous access)
A[25:0]OAddress bus
D[15:0]I/OData bidirectional bus
NE[x]OChip select, x = 1..4 (called NCE by PSRAM (CellularRAM™ i.e. CDRAM))
NOEOOutput enable
NWEOWrite enable
NL(= NADV)OAddress valid only for PSRAM input (memory signal name: NADV)
NWAITIPSRAM wait input signal to the FMC
NBL[1:0]OByte lane output. Byte 0 and Byte 1 control (upper and lower byte enable)

The maximum capacity is 512 Mbits.

PSRAM, 16-bit multiplexed I/Os Table 91. 16-Bit multiplexed I/O PSRAM
FMC signal nameI/OFunction
CLKOClock (for synchronous access)
A[25:16]OAddress bus
AD[15:0]I/O16-bit multiplexed, bidirectional address/data bus (the 16-bit address A[15:0] and data D[15:0] are multiplexed on the databus)

Table 91. 16-Bit multiplexed I/O PSRAM (continued)

FMC signal nameI/OFunction
NE[x]OChip select, x = 1..4 (called NCE by PSRAM (CellularRAM™ i.e. CRAM))
NOEOOutput enable
NWEOWrite enable
NL(= NADV)OAddress valid PSRAM input (memory signal name: NADV)
NWAITIPSRAM wait input signal to the FMC
NBL[1:0]OByte lane output. Byte 0 and Byte 1 control (upper and lower byte enable)

The maximum capacity is 512 Mbits (26 address lines).

18.7.2 Supported memories and transactions

Table 92 below shows an example of the supported devices, access modes and transactions when the memory data bus is 16-bit wide for NOR Flash memory, PSRAM and SRAM. The transactions not allowed (or not supported) by the FMC are shown in gray in this example.

Table 92. NOR Flash/PSRAM: example of supported memories and transactions

DeviceModeR/WAHB data sizeMemory data sizeAllowed/not allowedComments
NOR Flash (muxed I/Os and nonmuxed I/Os)AsynchronousR816Y-
AsynchronousW816N-
AsynchronousR1616Y-
AsynchronousW1616Y-
AsynchronousR3216YSplit into 2 FMC accesses
AsynchronousW3216YSplit into 2 FMC accesses
Asynchronous pageR-16NMode is not supported
SynchronousR816N-
SynchronousR1616Y-
SynchronousR3216Y-
Table 92. NOR Flash/PSRAM: example of supported memories and transactions (continued)
DeviceModeR/WAHB data sizeMemory data sizeAllowed/not allowedComments
PSRAM (multiplexed I/Os and non-multiplexed I/Os)AsynchronousR816Y-
AsynchronousW816YUse of byte lanes NBL[1:0]
AsynchronousR1616Y-
AsynchronousW1616Y-
AsynchronousR3216YSplit into 2 FMC accesses
AsynchronousW3216YSplit into 2 FMC accesses
Asynchronous pageR-16NMode is not supported
SynchronousR816N-
SynchronousR1616Y-
SynchronousR3216Y-
SynchronousW816YUse of byte lanes NBL[1:0]
SynchronousW16/3216Y-
SRAM and ROMAsynchronousR8 / 1616Y-
AsynchronousW8 / 1616YUse of byte lanes NBL[1:0]
AsynchronousR3216YSplit into 2 FMC accesses
AsynchronousW3216YSplit into 2 FMC accesses
Use of byte lanes NBL[1:0]

18.7.3 General timing rules

Signals synchronization

18.7.4 NOR Flash/PSRAM controller asynchronous transactions

Asynchronous static memories (NOR Flash, PSRAM, SRAM, FRAM)

Mode 1 - SRAM/FRAM/PSRAM (CRAM)

The next figures show the read and write transactions for the supported modes followed by the required configuration of FMC_BCRx, and FMC_BTRx/FMC_BWTRx registers.

Figure 48. Mode 1 read access waveforms

Timing diagram for Mode 1 read access waveforms. The diagram shows the relationship between address (A[25:0]), non-byte-latch (NBL[x:0]), non-execute (NEx), non-output-enable (NOE), non-write-enable (NW E), and the data bus over time. The 'Memory transaction' starts when the address is stable and NBL is latched, and ends when the data is latched by the memory controller. Timing parameters are defined in HCLK cycles: NBLSET (time from NBL latching to address change), ADDSET (time from address change to data start), DATAST (time from data start to data latching), and DATAHLD (time from data latching to data tri-state). The data bus is 'Data driven by memory' during the DATAST and DATAHLD phases. NW E is shown as 'High' throughout the transaction.

Timing parameters in HCLK cycles:

MSV41664V1

Timing diagram for Mode 1 read access waveforms. The diagram shows the relationship between address (A[25:0]), non-byte-latch (NBL[x:0]), non-execute (NEx), non-output-enable (NOE), non-write-enable (NW E), and the data bus over time. The 'Memory transaction' starts when the address is stable and NBL is latched, and ends when the data is latched by the memory controller. Timing parameters are defined in HCLK cycles: NBLSET (time from NBL latching to address change), ADDSET (time from address change to data start), DATAST (time from data start to data latching), and DATAHLD (time from data latching to data tri-state). The data bus is 'Data driven by memory' during the DATAST and DATAHLD phases. NW E is shown as 'High' throughout the transaction.

Figure 49. Mode 1 write access waveforms

Timing diagram for Mode 1 write access waveforms showing signals A[25:0], NBL[x:0], NEx, NOE, NWE, and Data bus over time. The diagram illustrates the sequence of a memory transaction with labels for NBLSET, ADDSET, DATAST, and DATAHLD in HCLK cycles. The data bus is shown as 'Data driven by controller' during the write phase.
Timing diagram for Mode 1 write access waveforms showing signals A[25:0], NBL[x:0], NEx, NOE, NWE, and Data bus over time. The diagram illustrates the sequence of a memory transaction with labels for NBLSET, ADDSET, DATAST, and DATAHLD in HCLK cycles. The data bus is shown as 'Data driven by controller' during the write phase.

The DATAHLD time at the end of the read and write transactions guarantee the address and data hold time after the NOE/NWE rising edge. The DATAST value must be greater than zero (DATAST > 0).

Table 93. FMC_BCRx bitfields (mode 1)

Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]As needed
21WFDISAs needed
20CCLKENAs needed
19CBURSTRW0x0 (no effect in Asynchronous mode)
18:16CPSIZE0x0 (no effect in Asynchronous mode)
15ASYNCWAITSet to 1 if the memory supports this feature. Otherwise keep at 0.
14EXTMOD0x0
13WAITEN0x0 (no effect in Asynchronous mode)
12WRENAs needed
11Reserved0x0
10Reserved0x0
9WAITPOLMeaningful only if bit 15 is 1
8BURSTEN0x0
7Reserved0x1
Table 93. FMC_BCRx bitfields (mode 1) (continued)
Bit numberBit nameValue to set
6FACCENDon't care
5:4MWIDAs needed
3:2MTYPAs needed, exclude 0x2 (NOR Flash memory)
1MUXE0x0
0MBKEN0x1
Table 94. FMC_BTRx bitfields (mode 1)
Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD HCLK cycles for read accesses, DATAHLD+1 HCLK cycles for write accesses).
29:28ACCMODDon't care
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles).
7:4ADDHLDDon't care
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles).
Minimum value for ADDSET is 0.

Mode A - SRAM/FRAM/PSRAM (CRAM) OE toggling

Figure 50. Mode A read access waveforms

Timing diagram for Mode A read access waveforms showing signals A[25:0], NBL[x:0], NEx, NOE, NWE, and Data bus over time. The diagram shows the sequence of events for a read transaction, including address setup, data drive by memory, and data hold phases.

The diagram illustrates the timing for a read access in Mode A. The signals shown are A[25:0] (address), NBL[x:0] (nibble byte lanes), NEx (next address), NOE (output enable), NWE (write enable), and the Data bus. The timing is measured in HCLK cycles. The sequence starts with NBLSET HCLK cycles, followed by ADDSET HCLK cycles, then DATAST HCLK cycles where data is driven by memory, and finally DATAHLD HCLK cycles. The memory transaction duration is indicated by a double-headed arrow at the top. The identifier MSv41681V1 is in the bottom right corner.

Timing diagram for Mode A read access waveforms showing signals A[25:0], NBL[x:0], NEx, NOE, NWE, and Data bus over time. The diagram shows the sequence of events for a read transaction, including address setup, data drive by memory, and data hold phases.

Figure 51. Mode A write access waveforms

Timing diagram for Mode A write access waveforms showing signals A[25:0], NBL[x:0], NEx, NOE, NWE, and Data bus over time. The diagram shows the sequence of events for a write transaction, including address setup, data drive by controller, and data hold phases.

The diagram illustrates the timing for a write access in Mode A. The signals shown are A[25:0] (address), NBL[x:0] (nibble byte lanes), NEx (next address), NOE (output enable), NWE (write enable), and the Data bus. The timing is measured in HCLK cycles. The sequence starts with NBLSET HCLK cycles, followed by ADDSET HCLK cycles, then DATAST HCLK cycles where data is driven by the controller, and finally DATAHLD +1 HCLK cycles. The memory transaction duration is indicated by a double-headed arrow at the top. The identifier MSv41665V1 is in the bottom right corner.

Timing diagram for Mode A write access waveforms showing signals A[25:0], NBL[x:0], NEx, NOE, NWE, and Data bus over time. The diagram shows the sequence of events for a write transaction, including address setup, data drive by controller, and data hold phases.

The differences compared with Mode 1 are the toggling of NOE and the independent read and write timings.

Table 95. FMC_BCRx bitfields (mode A)
Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]As needed
21WFDISAs needed
20CCLKENAs needed
19CBURSTRW0x0 (no effect in Asynchronous mode)
18:16CPSIZE0x0 (no effect in Asynchronous mode)
15ASYNCWAITSet to 1 if the memory supports this feature. Otherwise keep at 0.
14EXTMOD0x1
13WAITEN0x0 (no effect in Asynchronous mode)
12WRENAs needed
11WAITCFGDon't care
10Reserved0x0
9WAITPOLMeaningful only if bit 15 is 1
8BURSTEN0x0
7Reserved0x1
6FACCENDon't care
5:4MWIDAs needed
3:2MTYPAs needed, exclude 0x2 (NOR Flash memory)
1MUXEN0x0
0MBKEN0x1
Table 96. FMC_BTRx bitfields (mode A)
Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD HCLK cycles for read accesses).
29:28ACCMOD0x0
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles) for read accesses.
7:4ADDHLDDon't care
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles) for read accesses.
Minimum value for ADDSET is 0.

Table 97. FMC_BWTRx bitfields (mode A)

Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses).
29:28ACCMOD0x0
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles) for write accesses.
7:4ADDHLDDon't care
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles) for write accesses.
Minimum value for ADDSET is 0.

Mode 2/B - NOR Flash

Figure 52. Mode 2 and mode B read access waveforms

Timing diagram for Mode 2 and mode B read access waveforms showing address (A[25:0]), NADV, NEx, NOE, NWE, and data (D[15:0]) signals over time, divided into ADDSET, DATAST, and DATAHLD phases.

The diagram illustrates the timing for a read access in Mode 2 and Mode B. The signals shown are:

The transaction is divided into three phases measured in HCLK cycles:

The diagram shows the address (A[25:0]) and data (D[15:0]) signals. The address is stable during the memory transaction. The data is driven by the memory when NOE is low. The NADV signal is low during the memory transaction. The NEx signal is low during the memory transaction. The NOE signal is low during the memory transaction. The NWE signal is high during the memory transaction. The memory transaction starts when NADV and NEx go low and ends when they go high. The data is driven by the memory when NOE is low. The diagram also shows the ADDSET, DATAST, and DATAHLD phases.

Timing diagram for Mode 2 and mode B read access waveforms showing address (A[25:0]), NADV, NEx, NOE, NWE, and data (D[15:0]) signals over time, divided into ADDSET, DATAST, and DATAHLD phases.

Figure 53. Mode 2 write access waveforms

Timing diagram for Mode 2 write access waveforms showing signals A[25:0], NADV, NEx, NOE, NWE, and Data bus over time. The diagram is divided into three phases: ADDSET HCLK cycles, DATAST HCLK cycles, and DATAHLD + 1 HCLK cycles. The data bus is driven by the controller during the DATAST phase. The memory transaction starts when NADV and NEx are asserted and ends when NADV is deasserted.

Figure 53 shows the timing diagram for Mode 2 write access. The signals shown are A[25:0], NADV, NEx, NOE, NWE, and Data bus. The timing is defined by three phases: ADDSET HCLK cycles, DATAST HCLK cycles, and DATAHLD + 1 HCLK cycles. The data bus is driven by the controller during the DATAST phase. The memory transaction starts when NADV and NEx are asserted and ends when NADV is deasserted.

MSv41679V1

Timing diagram for Mode 2 write access waveforms showing signals A[25:0], NADV, NEx, NOE, NWE, and Data bus over time. The diagram is divided into three phases: ADDSET HCLK cycles, DATAST HCLK cycles, and DATAHLD + 1 HCLK cycles. The data bus is driven by the controller during the DATAST phase. The memory transaction starts when NADV and NEx are asserted and ends when NADV is deasserted.

Figure 54. Mode B write access waveforms

Timing diagram for Mode B write access waveforms showing signals A[25:0], NADV, NEx, NOE, NWE, and Data bus over time. The diagram is divided into three phases: ADDSET HCLK cycles, DATAST HCLK cycles, and DATAHLD + 1 HCLK cycles. The data bus is driven by the controller during the DATAST phase. The memory transaction starts when NADV and NEx are asserted and ends when NADV is deasserted.

Figure 54 shows the timing diagram for Mode B write access. The signals shown are A[25:0], NADV, NEx, NOE, NWE, and Data bus. The timing is defined by three phases: ADDSET HCLK cycles, DATAST HCLK cycles, and DATAHLD + 1 HCLK cycles. The data bus is driven by the controller during the DATAST phase. The memory transaction starts when NADV and NEx are asserted and ends when NADV is deasserted.

MSv41680V1

Timing diagram for Mode B write access waveforms showing signals A[25:0], NADV, NEx, NOE, NWE, and Data bus over time. The diagram is divided into three phases: ADDSET HCLK cycles, DATAST HCLK cycles, and DATAHLD + 1 HCLK cycles. The data bus is driven by the controller during the DATAST phase. The memory transaction starts when NADV and NEx are asserted and ends when NADV is deasserted.

The differences with mode 1 are the toggling of NWE and the independent read and write timings when extended mode is set (mode B).

Table 98. FMC_BCRx bitfields (mode 2/B)

Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]Don't care
21WFDISAs needed
20CCLKENAs needed
19CBURSTRW0x0 (no effect in Asynchronous mode)
18:16CPSIZE0x0 (no effect in Asynchronous mode)
15ASYNCWAITSet to 1 if the memory supports this feature. Otherwise keep at 0.
14EXTMOD0x1 for mode B, 0x0 for mode 2
13WAITEN0x0 (no effect in Asynchronous mode)
12WRENAs needed
11WAITCFGDon't care
10Reserved0x0
9WAITPOLMeaningful only if bit 15 is 1
8BURSTEN0x0
7Reserved0x1
6FACCEN0x1
5:4MWIDAs needed
3:2MTYP0x2 (NOR Flash memory)
1MUXEN0x0
0MBKEN0x1

Table 99. FMC_BTRx bitfields (mode 2/B)

Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD HCLK cycles for read accesses and DATAHLD+1 HCLK cycles for write accesses when Extended mode is disabled).
29:28ACCMOD0x1 if Extended mode is set
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the access second phase (DATAST HCLK cycles) for read accesses.
7:4ADDHLDDon't care
3:0ADDSETDuration of the access first phase (ADDSET HCLK cycles) for read accesses. Minimum value for ADDSET is 0.

Table 100. FMC_BWTRx bitfields (mode 2/B)

Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses).
29:28ACCMOD0x1 if Extended mode is set
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the access second phase (DATAST HCLK cycles) for write accesses.
7:4ADDHLDDon't care
3:0ADDSETDuration of the access first phase (ADDSET HCLK cycles) for write accesses. Minimum value for ADDSET is 0.

Note: The FMC_BWTRx register is valid only if the Extended mode is set (mode B), otherwise its content is don't care.

Mode C - NOR Flash - OE toggling

Figure 55. Mode C read access waveforms

Timing diagram for Mode C read access waveforms showing address, control signals, and data over time.

The diagram illustrates the timing for a read access in Mode C. The signals shown are:

The timing is divided into three phases relative to the HCLK signal:

The total duration of the memory transaction is the sum of these three phases. The diagram is labeled MSV41682V1.

Timing diagram for Mode C read access waveforms showing address, control signals, and data over time.

Figure 56. Mode C write access waveforms

Timing diagram for Mode C write access waveforms showing signals A[25:0], NADV, NEx, NOE, NWE, and Data bus over time. The diagram illustrates the sequence of a memory transaction with phases for address setup, data setup, and data hold. The data bus is driven by the controller during the data setup phase. The diagram is labeled with 'Memory transaction', 'ADDSET HCLK cycles', 'DATAST HCLK cycles', and 'DATAHLD +1 HCLK cycles'. A reference code 'MSV41679V1' is present in the bottom right corner of the diagram area.
Timing diagram for Mode C write access waveforms showing signals A[25:0], NADV, NEx, NOE, NWE, and Data bus over time. The diagram illustrates the sequence of a memory transaction with phases for address setup, data setup, and data hold. The data bus is driven by the controller during the data setup phase. The diagram is labeled with 'Memory transaction', 'ADDSET HCLK cycles', 'DATAST HCLK cycles', and 'DATAHLD +1 HCLK cycles'. A reference code 'MSV41679V1' is present in the bottom right corner of the diagram area.

The differences compared with mode 1 are the toggling of NOE and the independent read and write timings.

Table 101. FMC_BCRx bitfields (mode C)

Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]Don't care
21WFDISAs needed
20CCLKENAs needed
19CBURSTRW0x0 (no effect in Asynchronous mode)
18:16CPSIZE0x0 (no effect in Asynchronous mode)
15ASYNCWAITSet to 1 if the memory supports this feature. Otherwise keep at 0.
14EXTMOD0x1
13WAITEN0x0 (no effect in Asynchronous mode)
12WRENAs needed
11WAITCFGDon't care
10Reserved0x0
9WAITPOLMeaningful only if bit 15 is 1
8BURSTEN0x0
7Reserved0x1
6FACCEN0x1
Table 101. FMC_BCRx bitfields (mode C) (continued)
Bit numberBit nameValue to set
5:4MWIDAs needed
3:2MTYP0x02 (NOR Flash memory)
1MUXEN0x0
0MBKEN0x1
Table 102. FMC_BTRx bitfields (mode C)
Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD HCLK cycles for read accesses).
29:28ACCMOD0x2
27:24DATLAT0x0
23:20CLKDIV0x0
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles) for read accesses.
7:4ADDHLDDon't care
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles) for read accesses. Minimum value for ADDSET is 0.
Table 103. FMC_BWTRx bitfields (mode C)
Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses).
29:28ACCMOD0x2
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles) for write accesses.
7:4ADDHLDDon't care
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles) for write accesses. Minimum value for ADDSET is 0.

Mode D - asynchronous access with extended address

Figure 57. Mode D read access waveforms

Timing diagram for Mode D read access waveforms showing signals A[25:0], NADV, NBL[x:0], NEx, NOE, NWE, and Data bus over time, with labels for memory transaction phases and HCLK cycles.

The figure is a timing diagram for Mode D read access waveforms. It shows the relationship between address, control signals, and data bus over a series of HCLK cycles. The signals shown are:

The timing is divided into five phases relative to the HCLK signal:

  1. NBLSET HCLK cycles : The initial phase where NBL[x:0] signals are set.
  2. ADDSET HCLK cycles : The phase where the address A[25:0] is set and NADV goes low.
  3. ADDHLD HCLK cycles : The phase where the address is held and NADV goes high.
  4. DATAST HCLK cycles : The phase where data is driven by memory and NOE goes low.
  5. DATAHLD HCLK cycles : The final phase where the data is held and NOE goes high.

A horizontal double-headed arrow at the top indicates the entire duration as a "Memory transaction". The diagram is labeled with "MSV41683V1" in the bottom right corner.

Timing diagram for Mode D read access waveforms showing signals A[25:0], NADV, NBL[x:0], NEx, NOE, NWE, and Data bus over time, with labels for memory transaction phases and HCLK cycles.

Figure 58. Mode D write access waveforms

Timing diagram for Mode D write access waveforms. The diagram shows the relationship between address (A[25:0]), NADV, NBL[x:0], NEx, NOE, NWE, and the Data bus over time. The 'Memory transaction' is indicated by a double-headed arrow spanning from the first rising edge of NADV to the falling edge of NADV. The Data bus is driven by the controller during the 'DATAST HCLK cycles' and 'DATAHLD +1 HCLK cycles' phases. The timing parameters shown are NBLSET HCLK cycles, ADDSET HCLK cycles, ADDHLD HCLK cycles, DATAST HCLK cycles, and DATAHLD +1 HCLK cycles. The diagram is labeled MSv41684V1.
Timing diagram for Mode D write access waveforms. The diagram shows the relationship between address (A[25:0]), NADV, NBL[x:0], NEx, NOE, NWE, and the Data bus over time. The 'Memory transaction' is indicated by a double-headed arrow spanning from the first rising edge of NADV to the falling edge of NADV. The Data bus is driven by the controller during the 'DATAST HCLK cycles' and 'DATAHLD +1 HCLK cycles' phases. The timing parameters shown are NBLSET HCLK cycles, ADDSET HCLK cycles, ADDHLD HCLK cycles, DATAST HCLK cycles, and DATAHLD +1 HCLK cycles. The diagram is labeled MSv41684V1.

The differences with mode 1 are the toggling of NOE that goes on toggling after NADV changes and the independent read and write timings.

Table 104. FMC_BCRx bitfields (mode D)

Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]As needed
21WFDISAs needed
20CCLKENAs needed
19CBURSTRW0x0 (no effect in Asynchronous mode)
18:16CPSIZE0x0 (no effect in Asynchronous mode)
15ASYNCWAITSet to 1 if the memory supports this feature. Otherwise keep at 0.
14EXTMOD0x1
13WAITEN0x0 (no effect in Asynchronous mode)
12WRENAs needed
11WAITCFGDon't care
10Reserved0x0
9WAITPOLMeaningful only if bit 15 is 1
8BURSTEN0x0
Table 104. FMC_BCRx bitfields (mode D) (continued)
Bit numberBit nameValue to set
7Reserved0x1
6FACCENSet according to memory support
5:4MWIDAs needed
3:2MTYPAs needed
1MUXEN0x0
0MBKEN0x1
Table 105. FMC_BTRx bitfields (mode D)
Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD HCLK cycles for read accesses).
29:28ACCMOD0x3
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles) for read accesses.
7:4ADDHLDDuration of the middle phase of the read access (ADDHLD HCLK cycles)
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles) for read accesses. Minimum value for ADDSET is 1.
Table 106. FMC_BWTRx bitfields (mode D)
Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses).
29:28ACCMOD0x3
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles).
7:4ADDHLDDuration of the middle phase of the write access (ADDHLD HCLK cycles)
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles) for write accesses. Minimum value for ADDSET is 1.

Muxed mode - multiplexed asynchronous access to NOR Flash memory

Figure 59. Muxed read access waveforms

Timing diagram for muxed read access waveforms showing signals A[25:16], NADV, NBL[x:0], NEx, NOE, NWE, and AD[15:0] over time, with labels for memory transaction phases and HCLK cycles.

The diagram illustrates the timing for a muxed read access to NOR Flash memory. The signals shown are:

The timing is measured in HCLK cycles and is divided into several phases:

The entire sequence is labeled as a 'Memory transaction' at the top. The diagram is identified by the code MSV41685V1 in the bottom right corner.

Timing diagram for muxed read access waveforms showing signals A[25:16], NADV, NBL[x:0], NEx, NOE, NWE, and AD[15:0] over time, with labels for memory transaction phases and HCLK cycles.

Figure 60. Muxed write access waveforms

Timing diagram for Muxed write access waveforms showing signals A[25:16], NADV, NBL[x:0], NEx, NOE, NW E, and AD[15:0] over time. The diagram illustrates the sequence of a memory transaction with phases for address latching and data driving. Key timing parameters like NBLSET, ADDSET, ADDHLD, DATAST, and DATAHLD are indicated in HCLK cycles.

The diagram shows the following signals and timing phases:

Timing phases (in HCLK cycles):

Reference: MSV41686V1

Timing diagram for Muxed write access waveforms showing signals A[25:16], NADV, NBL[x:0], NEx, NOE, NW E, and AD[15:0] over time. The diagram illustrates the sequence of a memory transaction with phases for address latching and data driving. Key timing parameters like NBLSET, ADDSET, ADDHLD, DATAST, and DATAHLD are indicated in HCLK cycles.

The difference with mode D is the drive of the lower address byte(s) on the data bus.

Table 107. FMC_BCRx bitfields (Muxed mode)

Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]As needed
21WFDISAs needed
20CCLKENAs needed
19CBURSTRW0x0 (no effect in Asynchronous mode)
18:16CPSIZE0x0 (no effect in Asynchronous mode)
15ASYNCWAITSet to 1 if the memory supports this feature. Otherwise keep at 0.
14EXTMOD0x0
13WAITEN0x0 (no effect in Asynchronous mode)
12WRENAs needed
11WAITCFGDon't care
10Reserved0x0
9WAITPOLMeaningful only if bit 15 is 1
8BURSTEN0x0
7Reserved0x1
Table 107. FMC_BCRx bitfields (Muxed mode) (continued)
Bit numberBit nameValue to set
6FACCEN0x1
5:4MWIDAs needed
3:2MTYP0x2 (NOR Flash memory) or 0x1(PSRAM)
1MUXEN0x1
0MBKEN0x1
Table 108. FMC_BTRx bitfields (Muxed mode)
Bit numberBit nameValue to set
31:30DATAHLDDuration of the data hold phase (DATAHLD HCLK cycles for read accesses, DATAHLD+1 HCLK cycles for write accesses).
29:28ACCMOD0x0
27:24DATLATDon't care
23:20CLKDIVDon't care
19:16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15:8DATASTDuration of the second access phase (DATAST HCLK cycles).
7:4ADDHLDDuration of the middle phase of the access (ADDHLD HCLK cycles).
3:0ADDSETDuration of the first access phase (ADDSET HCLK cycles). Minimum value for ADDSET is 1.

WAIT management in asynchronous accesses

If the asynchronous memory asserts the WAIT signal to indicate that it is not yet ready to accept or to provide data, the ASYNCWAIT bit has to be set in FMC_BCRx register.

If the WAIT signal is active (high or low depending on the WAITPOL bit), the second access phase (Data setup phase), programmed by the DATAST bits, is extended until WAIT becomes inactive. Unlike the data setup phase, the first access phases (Address setup and Address hold phases), programmed by the ADDSET and ADDHLD bits, are not WAIT sensitive and so they are not prolonged.

The data setup phase must be programmed so that WAIT can be detected 4 HCLK cycles before the end of the memory transaction. The following cases must be considered:

  1. 1. The memory asserts the WAIT signal aligned to NOE/NWE which toggles:

\[ DATAST \geq (4 \times HCLK) + \max\_wait\_assertion\_time \]

  1. 2. The memory asserts the WAIT signal aligned to NEx (or NOE/NWE not toggling):
    if

\[ \max\_wait\_assertion\_time > \text{address\_phase} + \text{hold\_phase} \]

then:

\[ DATAST \geq (4 \times HCLK) + (\max\_wait\_assertion\_time - \text{address\_phase} - \text{hold\_phase}) \]

otherwise

\[ DATAST \geq 4 \times HCLK \]

where \( \max\_wait\_assertion\_time \) is the maximum time taken by the memory to assert the WAIT signal once NEx/NOE/NWE is low.

Figure 61 and Figure 62 show the number of HCLK clock cycles that are added to the memory access phase after WAIT is released by the asynchronous memory (independently of the above cases).

Figure 61. Asynchronous wait during a read access waveforms

Timing diagram for asynchronous wait during a read access. The diagram shows five signals over time: A[25:0] (Address), NEx (Next), NWAIT (Wait), NOE (Output Enable), and D[15:0] (Data). The 'Memory transaction' starts when A[25:0] is stable and NEx goes low. It is divided into 'address phase' (from NEx falling to NOE falling) and 'data setup phase' (from NOE falling to NEx rising). NWAIT is shown as 'don't care' before the address phase and after the data setup phase, but its state is irrelevant during the data setup phase. NOE goes low at the start of the data setup phase and goes high at the end. D[15:0] is driven by memory during the data setup phase. A duration of 4HCLK is indicated at the end of the data setup phase, from the falling edge of NOE to the rising edge of NEx. The diagram is labeled MS30463V2.
Timing diagram for asynchronous wait during a read access. The diagram shows five signals over time: A[25:0] (Address), NEx (Next), NWAIT (Wait), NOE (Output Enable), and D[15:0] (Data). The 'Memory transaction' starts when A[25:0] is stable and NEx goes low. It is divided into 'address phase' (from NEx falling to NOE falling) and 'data setup phase' (from NOE falling to NEx rising). NWAIT is shown as 'don't care' before the address phase and after the data setup phase, but its state is irrelevant during the data setup phase. NOE goes low at the start of the data setup phase and goes high at the end. D[15:0] is driven by memory during the data setup phase. A duration of 4HCLK is indicated at the end of the data setup phase, from the falling edge of NOE to the rising edge of NEx. The diagram is labeled MS30463V2.
  1. 1. NWAIT polarity depends on WAITPOL bit setting in FMC_BCRx register.

Figure 62. Asynchronous wait during a write access waveforms

Timing diagram for asynchronous wait during a write access. The diagram shows five signal waveforms over time: A[25:0] (address), NEx (chip select), NWAIT (wait signal), NWE (write enable), and D[15:0] (data). The transaction is divided into an 'address phase' and a 'data setup phase'. The NWAIT signal is shown as 'don't care' during the address phase and data setup phase, and then goes high for '1HCLK' before going low again. The data is driven by the FMC for '3HCLK' cycles. The diagram is labeled 'MSv40168V1'.
Timing diagram for asynchronous wait during a write access. The diagram shows five signal waveforms over time: A[25:0] (address), NEx (chip select), NWAIT (wait signal), NWE (write enable), and D[15:0] (data). The transaction is divided into an 'address phase' and a 'data setup phase'. The NWAIT signal is shown as 'don't care' during the address phase and data setup phase, and then goes high for '1HCLK' before going low again. The data is driven by the FMC for '3HCLK' cycles. The diagram is labeled 'MSv40168V1'.
  1. 1. NWAIT polarity depends on WAITPOL bit setting in FMC_BCRx register.

CellularRAM™ (PSRAM) refresh management

The CellularRAM™ does not allow maintaining the chip select signal (NE) low for longer than the \( t_{CEM} \) timing specified for the memory device. This timing can be programmed in the FMC_PSCSNTR register. It defines the maximum duration of the NE low pulse in HCLK cycles for asynchronous accesses and FMC_CLK cycles for synchronous accesses

18.7.5 Synchronous transactions

The memory clock, FMC_CLK, is a submultiple of HCLK. It depends on the value of CLKDIV and the MWID/ AHB data size, following the formula given below:

\[ \text{FMC\_CLK divider ratio} = \max(\text{CLKDIV} + 1, \text{MWID}(\text{AHB data size})) \]

Whatever MWID size: 16 or 8-bit, the FMC_CLK divider ratio is always defined by the programmed CLKDIV value.

Example:

NOR Flash memories specify a minimum time from NADV assertion to CLK high. To meet this constraint, the FMC does not issue the clock to the memory during the first internal clock cycle of the synchronous access (before NADV assertion). This guarantees that the rising edge of the memory clock occurs in the middle of the NADV low pulse.

Data latency versus NOR memory latency

The data latency is the number of cycles to wait before sampling the data. The DATLAT value must be consistent with the latency value specified in the NOR Flash configuration register. The FMC does not include the clock cycle when NADV is low in the data latency count.

Caution: Some NOR Flash memories include the NADV Low cycle in the data latency count, so that the exact relation between the NOR Flash latency and the FMC DATLAT parameter can be either:

Some recent memories assert NWAIT during the latency phase. In such cases DATLAT can be set to its minimum value. As a result, the FMC samples the data and waits long enough to evaluate if the data are valid. Thus the FMC detects when the memory exits latency and real data are processed.

Other memories do not assert NWAIT during latency. In this case the latency must be set correctly for both the FMC and the memory, otherwise invalid data are mistaken for good data, or valid data are lost in the initial phase of the memory access.

Single-burst transfer

When the selected bank is configured in Burst mode for synchronous accesses, if for example an AHB single-burst transaction is requested on 16-bit memories, the FMC performs a burst transaction of length 1 (if the AHB transfer is 16 bits), or length 2 (if the AHB transfer is 32 bits) and de-assert the chip select signal when the last data is strobed.

Such transfers are not the most efficient in terms of cycles compared to asynchronous read operations. Nevertheless, a random asynchronous access would first require to re-program the memory access mode, which would altogether last longer.

Cross boundary page for CellularRAM™ 1.5

CellularRAM™ 1.5 does not allow burst access to cross the page boundary. The FMC controller allows to split automatically the burst access when the memory page size is reached by configuring the CPSIZE bits in the FMC_BCR1 register following the memory page size.

Wait management

For synchronous NOR Flash memories, NWAIT is evaluated after the programmed latency period, which corresponds to (DATLAT+2) CLK clock cycles.

If NWAIT is active (low level when WAITPOL = 0, high level when WAITPOL = 1), wait states are inserted until NWAIT is inactive (high level when WAITPOL = 0, low level when WAITPOL = 1).

When NWAIT is inactive, the data is considered valid either immediately (bit WAITCFG = 1) or on the next clock edge (bit WAITCFG = 0).

During wait-state insertion via the NWAIT signal, the controller continues to send clock pulses to the memory, keeping the chip select and output enable signals valid. It does not consider the data as valid.

In Burst mode, there are two timing configurations for the NOR Flash NWAIT signal:

The FMC supports both NOR Flash wait state configurations, for each chip select, thanks to the WAITCFG bit in the FMC_BCRx registers ( \( x = 0..3 \) ).

Figure 63. Wait configuration waveforms

Timing diagram showing wait configuration waveforms for NOR Flash memory transactions.

The diagram illustrates the timing of a memory transaction, defined as a burst of 4 half words. It shows the relationship between the system clock (HCLK), the memory clock (CLK), address lines (A[25:16]), address strobe (NADV), the wait signal (NWAIT), and data lines (A/D[15:0]).

Vertical dashed lines indicate the clock edges and signal transitions. The label ai15798c is present in the bottom right corner of the diagram area.

Timing diagram showing wait configuration waveforms for NOR Flash memory transactions.

Figure 64. Synchronous multiplexed read mode waveforms - NOR, PSRAM (CRAM)

Timing diagram for synchronous multiplexed read mode. It shows signals HCLK, CLK, A[25:16] (addr[25:16]), NEx, NOE, NWE (High), NADV, NWAIT (WAITCFG=0), and A/D[15:0] (Addr[15:0], data). The diagram illustrates a memory transaction as a burst of 4 half words. Address is latched in the first clock cycle, followed by data output in subsequent cycles. Data strobes are shown for the data output. An inserted wait state is indicated between the second and third data cycles. The time between address latching and first data output is (DATLAT + 2) CLK cycles.
Timing diagram for synchronous multiplexed read mode. It shows signals HCLK, CLK, A[25:16] (addr[25:16]), NEx, NOE, NWE (High), NADV, NWAIT (WAITCFG=0), and A/D[15:0] (Addr[15:0], data). The diagram illustrates a memory transaction as a burst of 4 half words. Address is latched in the first clock cycle, followed by data output in subsequent cycles. Data strobes are shown for the data output. An inserted wait state is indicated between the second and third data cycles. The time between address latching and first data output is (DATLAT + 2) CLK cycles.

1. Byte lane outputs (NBL are not shown; for NOR access, they are held high, and, for PSRAM (CRAM) access, they are held low.

Table 109. FMC_BCRx bitfields (Synchronous multiplexed read mode)

Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]Don't care
21WFDISAs needed
20CCLKENAs needed
19CBURSTRWNo effect on synchronous read
18:16CPSIZE0x0 (no effect in Asynchronous mode)
15ASYNCWAIT0x0
14EXTMOD0x0
13WAITENTo be set to 1 if the memory supports this feature, to be kept at 0 otherwise
12WRENNo effect on synchronous read
11WAITCFGTo be set according to memory
Table 109. FMC_BCRx bitfields (Synchronous multiplexed read mode) (continued)
Bit numberBit nameValue to set
10Reserved0x0
9WAITPOLTo be set according to memory
8BURSTEN0x1
7Reserved0x1
6FACCENSet according to memory support (NOR Flash memory)
5-4MWIDAs needed
3-2MTYP0x1 or 0x2
1MUXENAs needed
0MBKEN0x1
Table 110. FMC_BTRx bitfields (Synchronous multiplexed read mode)
Bit numberBit nameValue to set
31:30DATAHLDDon't care
29:28ACCMOD0x0
27-24DATLATData latency
27-24DATLATData latency
23-20CLKDIV0x0 to get CLK = HCLK
0x1 to get CLK = 2 × HCLK
..
19-16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15-8DATASTDon't care
7-4ADDHLDDon't care
3-0ADDSETDon't care

Figure 65. Synchronous multiplexed write mode waveforms - PSRAM (CRAM)

Timing diagram for synchronous multiplexed write mode waveforms. It shows signals HCLK, CLK, A[25:16] (addr[25:16]), NEx, NOE (Hi-Z), NWE, NADV, NWAIT (WAITCFG = 0), and A/D[15:0] (Addr[15:0], data). A memory transaction is shown as a burst of 2 half words. The diagram includes labels for (DATLAT + 2) CLK cycles and inserted wait states. Reference ai14731f is present.
Timing diagram for synchronous multiplexed write mode waveforms. It shows signals HCLK, CLK, A[25:16] (addr[25:16]), NEx, NOE (Hi-Z), NWE, NADV, NWAIT (WAITCFG = 0), and A/D[15:0] (Addr[15:0], data). A memory transaction is shown as a burst of 2 half words. The diagram includes labels for (DATLAT + 2) CLK cycles and inserted wait states. Reference ai14731f is present.
  1. 1. The memory must issue NWAIT signal one cycle in advance, accordingly WAITCFG must be programmed to 0.
  2. 2. Byte Lane (NBL) outputs are not shown, they are held low while NEx is active.

Table 111. FMC_BCRx bitfields (Synchronous multiplexed write mode)

Bit numberBit nameValue to set
31:24Reserved0x000
23:22NBLSET[1:0]Don't care
21WFDISAs needed
20CCLKENAs needed
19CBURSTRW0x1
18:16CPSIZEAs needed (0x1 for CRAM 1.5)
15ASYNCWAIT0x0
14EXTMOD0x0
Table 111. FMC_BCRx bitfields (Synchronous multiplexed write mode) (continued)
Bit numberBit nameValue to set
13WAITENTo be set to 1 if the memory supports this feature, to be kept at 0 otherwise.
12WREN0x1
11WAITCFG0x0
10Reserved0x0
9WAITPOLto be set according to memory
8BURSTENno effect on synchronous write
7Reserved0x1
6FACCENSet according to memory support
5-4MWIDAs needed
3-2MTYP0x1
1MUXENAs needed
0MBKEN0x1
Table 112. FMC_BTRx bitfields (Synchronous multiplexed write mode)
Bit numberBit nameValue to set
31-30DATAHLDDon't care
29:28ACCMOD0x0
27-24DATLATData latency
23-20CLKDIV0x0 to get CLK = HCLK
0x1 to get CLK = 2 × HCLK
19-16BUSTURNTime between NEx high to NEx low (BUSTURN HCLK).
15-8DATASTDon't care
7-4ADDHLDDon't care
3-0ADDSETDon't care

18.7.6 NOR/PSRAM controller registers

SRAM/NOR-Flash chip-select control register for bank x (FMC_BCRx) (x = 1 to 4)

Address offset: \( 8 * (x - 1) \) , ( \( x = 1 \) to \( 4 \) )

Reset value: Bank 1: 0x0000 30DB

Reset value: Bank 2: 0x0000 30D2

Reset value: Bank 3: 0x0000 30D2

Reset value: Bank 4: 0x0000 30D2

This register contains the control information of each memory bank, used for SRAMs, PSRAM, FRAM and NOR Flash memories.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.NBLSET[1:0]WFDISCCLK ENCBURST RWCPSIZE[2:0]
rwrwrwrwrwrwrwrw

1514131211109876543210
ASYNC WAITEXT MODWAIT ENWRENWAIT CFGRes.WAIT POLBURST ENRes.FACC ENMWID[1:0]MTYP[1:0]MUX ENMBK EN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:22 NBLSET[1:0] : Byte lane (NBL) setup

These bits configure the NBL setup timing from NBLx low to chip select NEx low.

00: NBL setup time is 0 AHB clock cycle

01: NBL setup time is 1 AHB clock cycle

10: NBL setup time is 2 AHB clock cycles

11: NBL setup time is 3 AHB clock cycles

Bit 21 WFDIS : Write FIFO disable

This bit disables the Write FIFO used by the FMC controller.

0: Write FIFO enabled (Default after reset)

1: Write FIFO disabled

Note: The WFDIS bit of the FMC_BCR2..4 registers is don't care. It is only enabled through the FMC_BCR1 register.

Bit 20 CCLKEN : Continuous clock enable

This bit enables the FMC_CLK clock output to external memory devices.

0: The FMC_CLK is only generated during the synchronous memory access (read/write transaction). The FMC_CLK clock ratio is specified by the programmed CLKDIV value in the FMC_BCRx register (default after reset).

1: The FMC_CLK is generated continuously during asynchronous and synchronous access. The FMC_CLK clock is activated when the CCLKEN is set.

Note: The CCLKEN bit of the FMC_BCR2..4 registers is don't care. It is only enabled through the FMC_BCR1 register. Bank 1 must be configured in Synchronous mode to generate the FMC_CLK continuous clock.

Note: If CCLKEN bit is set, the FMC_CLK clock ratio is specified by CLKDIV value in the FMC_BTR1 register. CLKDIV in FMC_BWTR1 is don't care.

Note: If the Synchronous mode is used and CCLKEN bit is set, the synchronous memories connected to other banks than Bank 1 are clocked by the same clock (the CLKDIV value in the FMC_BTR2..4 and FMC_BWTR2..4 registers for other banks has no effect.)

Bit 19 CBURSTRW : Write burst enable

For PSRAM (CRAM) operating in Burst mode, the bit enables synchronous accesses during write operations. The enable bit for synchronous read accesses is the BURSTEN bit in the FMC_BCRx register.

0: Write operations are always performed in Asynchronous mode.

1: Write operations are performed in Synchronous mode.

Bits 18:16 CPSIZE[2:0] : CRAM page size

These are used for CellularRAM™ 1.5 which does not allow burst access to cross the address boundaries between pages. When these bits are configured, the FMC controller splits automatically the burst access when the memory page size is reached (refer to memory datasheet for page size).

000: No burst split when crossing page boundary (default after reset)

001: 128 bytes

010: 256 bytes

011: 512 bytes

100: 1024 bytes

Others: reserved

Bit 15 ASYNCWAIT : Wait signal during asynchronous transfers

This bit enables/disables the FMC to use the wait signal even during an asynchronous protocol.

0: NWAIT signal is not taken in to account when running an asynchronous protocol (default after reset).

1: NWAIT signal is taken in to account when running an asynchronous protocol.

Bit 14 EXTMOD : Extended mode enable

This bit enables the FMC to program the write timings for non multiplexed asynchronous accesses inside the FMC_BWTR register, thus resulting in different timings for read and write operations.

0: values inside FMC_BWTR register are not taken into account (default after reset)

1: values inside FMC_BWTR register are taken into account

Note: When the Extended mode is disabled, the FMC can operate in mode 1 or mode 2 as follows:

Bit 13 WAITEN : Wait enable bit

This bit enables/disables wait-state insertion via the NWAIT signal when accessing the memory in Synchronous mode.

0: NWAIT signal is disabled (its level not taken into account, no wait state inserted after the programmed Flash latency period).

1: NWAIT signal is enabled (its level is taken into account after the programmed latency period to insert wait states if asserted) (default after reset).

Bit 12 WREN : Write enable bit

This bit indicates whether write operations are enabled/disabled in the bank by the FMC.

0: Write operations are disabled in the bank by the FMC, an AHB error is reported.

1: Write operations are enabled for the bank by the FMC (default after reset).

Bit 11 WAITCFG : Wait timing configuration

The NWAIT signal indicates whether the data from the memory are valid or if a wait state must be inserted when accessing the memory in Synchronous mode. This configuration bit determines if NWAIT is asserted by the memory one clock cycle before the wait state or during the wait state:

0: NWAIT signal is active one data cycle before wait state (default after reset).

1: NWAIT signal is active during wait state (not used for PSRAM).

Bit 10 Reserved, must be kept at reset value.

Bit 9 WAITPOL : Wait signal polarity bit

Defines the polarity of the wait signal from memory used for either in Synchronous or Asynchronous mode.

0: NWAIT active low (default after reset)

1: NWAIT active high

Bit 8 BURSTEN : Burst enable bit

This bit enables/disables synchronous accesses during read operations. It is valid only for synchronous memories operating in Burst mode.

0: Burst mode disabled (default after reset). Read accesses are performed in Asynchronous mode.

1: Burst mode enable. Read accesses are performed in Synchronous mode.

Bit 7 Reserved, must be kept at reset value.

Bit 6 FACCEN : Flash access enable

Enables NOR Flash memory access operations.

0: Corresponding NOR Flash memory access is disabled.

1: Corresponding NOR Flash memory access is enabled (default after reset).

Bits 5:4 MWID[1:0] : Memory data bus width

Defines the external memory device width, valid for all type of memories.

00: 8 bits

01: 16 bits (default after reset)

10: reserved

11: reserved

Bits 3:2 MTYP[1:0] : Memory type

Defines the type of external memory attached to the corresponding memory bank.

Bit 1 MUXEN : Address/data multiplexing enable bit

When this bit is set, the address and data values are multiplexed on the data bus, valid only with NOR and PSRAM memories:

Bit 0 MBKEN : Memory bank enable bit

Enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a disabled bank causes an ERROR on AHB bus.

SRAM/NOR-Flash chip-select timing register for bank x (FMC_BTRx)

Address offset: \( 0x04 + 8 \times (x - 1) \) , ( \( x = 1 \) to 4)

Reset value: 0x0FFF FFFF

This register contains the control information of each memory bank, used for SRAMs, PSRAM and NOR Flash memories. If the EXTMOD bit is set in the FMC_BCRx register, then this register is partitioned for write and read access, that is, 2 registers are available: one to configure read accesses (this register) and one to configure write accesses (FMC_BWTRx registers).

31302928272625242322212019181716
DATAHLD[1:0]ACCMOD[1:0]DATLAT[3:0]CLKDIV[3:0]BUSTURN[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 DATAHLD[1:0] : Data hold phase duration

These bits are written by software to define the duration of the data hold phase in HCLK cycles (refer to Figure 48 to Figure 60 ), used in asynchronous accesses:

For read accesses

For write accesses

Bits 29:28 ACCMOD[1:0] : Access mode

Specifies the asynchronous access modes as shown in the timing diagrams. These bits are taken into account only when the EXTMOD bit in the FMC_BCRx register is 1.

Bits 27:24 DATLAT[3:0] : (see note below bit descriptions): Data latency for synchronous memory

For synchronous access with read/write Burst mode enabled (BURSTEN / CBURSTRW bits set), defines the number of memory clock cycles (+2) to issue to the memory before reading/writing the first data:

This timing parameter is not expressed in HCLK periods, but in FMC_CLK periods.

For asynchronous access, this value is don't care.

Bits 23:20 CLKDIV[3:0] : Clock divide ratio (for FMC_CLK signal)

Defines the period of FMC_CLK clock output signal, expressed in number of HCLK cycles:

In asynchronous NOR Flash, SRAM or PSRAM accesses, this value is don't care.

Note: Refer to Section 18.7.5: Synchronous transactions for FMC_CLK divider ratio formula

Bits 19:16 BUSTURN[3:0] : Bus turnaround phase duration

These bits are written by software to add a delay at the end of current read or write transaction to next transaction on the same bank.

This delay allows to match the minimum time between consecutive transactions ( \( t_{EHEL} \) from NEx high to NEx low) and the maximum time needed by the memory to free the data bus after a read access ( \( t_{EHQZ} \) , chip enable high to output Hi-Z). This delay is recommended for mode D and muxed mode. For non-muxed memory, the bus turnaround delay can be set to minimum value.

\( (BUSTURN + 1)HCLK\ period \geq \max(t_{EHEL\ min}, t_{EHQZ\ max}) \)

For FRAM memories, the bus turnaround delay should be configured to match the minimum \( t_{PC} \) (precharge time) timings. The bus turnaround delay is inserted between any consecutive transactions on the same bank (read/read, write/write, read/write and write/read) to match the \( t_{PC} \) memory timing. The chip select is toggling between any consecutive accesses.

\( (BUSTURN + 1)HCLK\ period \geq t_{PC\ min} \)

Bits 15:8 DATAST[7:0]: Data-phase duration

These bits are written by software to define the duration of the data phase (refer to Figure 48 to Figure 60 ), used in asynchronous accesses:

0000 0000: Reserved

0000 0001: DATAST phase duration = 1 × HCLK clock cycles

0000 0010: DATAST phase duration = 2 × HCLK clock cycles

...

1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)

For each memory type and access mode data-phase duration, refer to the respective figure ( Figure 48 to Figure 60 ).

Example: Mode 1, write access, DATAST=1: Data-phase duration= DATAST+1 = 2 HCLK clock cycles.

Note: In synchronous accesses, this value is don't care.

Bits 7:4 ADDHLD[3:0]: Address-hold phase duration

These bits are written by software to define the duration of the address hold phase (refer to Figure 48 to Figure 60 ), used in mode D or multiplexed accesses:

0000: Reserved

0001: ADDHLD phase duration = 1 × HCLK clock cycle

0010: ADDHLD phase duration = 2 × HCLK clock cycle

...

1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)

For each access mode address-hold phase duration, refer to the respective figure ( Figure 48 to Figure 60 ).

Note: In synchronous accesses, this value is not used, the address hold phase is always 1 memory clock period duration.

Bits 3:0 ADDSET[3:0]: Address setup phase duration

These bits are written by software to define the duration of the address setup phase (refer to Figure 48 to Figure 60 ), used in SRAMs, ROMs, asynchronous NOR Flash and PSRAM:

0000: ADDSET phase duration = 0 × HCLK clock cycle

...

1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)

For each access mode address setup phase duration, refer to the respective figure ( Figure 48 to Figure 60 ).

Note: In synchronous accesses, this value is don't care.

In Muxed mode or mode D, the minimum value for ADDSET is 1.

In mode 1 and PSRAM memory, the minimum value for ADDSET is 1.

Note: PSRAMs (CRAMs) have a variable latency due to internal refresh. Therefore these memories issue the NWAIT signal during the whole latency phase to prolong the latency as needed.

With PSRAMs (CRAMs) the filled DATLAT must be set to 0, so that the FMC exits its latency phase soon and starts sampling NWAIT from memory, then starts to read or write when the memory is ready.

This method can be used also with the latest generation of synchronous Flash memories that issue the NWAIT signal, unlike older Flash memories (check the datasheet of the specific Flash memory being used).

SRAM/NOR-Flash write timing registers x (FMC_BWTRx)

Address offset: \( 0x104 + 8 * (x - 1) \) , ( \( x = 1 \) to 4)

Reset value: 0x0FFF FFFF

This register contains the control information of each memory bank. It is used for SRAMs, PSRAMs and NOR Flash memories. When the EXTMOD bit is set in the FMC_BCRx register, then this register is active for write access.

31302928272625242322212019181716
DATAHLD[1:0]ACCMOD[1:0]ResResResResResResResResBUSTURN[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 DATAHLD[1:0]: Data hold phase duration

These bits are written by software to define the duration of the data hold phase in HCLK cycles (refer to Figure 48 to Figure 60 ), used in asynchronous write accesses:

Bits 29:28 ACCMOD[1:0]: Access mode.

Specifies the asynchronous access modes as shown in the next timing diagrams. These bits are taken into account only when the EXTMOD bit in the FMC_BCRx register is 1.

Bits 27:20 Reserved, must be kept at reset value.

Bits 19:16 BUSTURN[3:0]: Bus turnaround phase duration

These bits are written by software to add a delay at the end of current write transaction to next transaction on the same bank.

For FRAM memories, the bus turnaround delay should be configured to match the minimum \( t_{PC} \) (precharge time) timings. The bus turnaround delay is inserted between any consecutive transactions on the same bank (read/read, write/write, read/write and write/read). The chip select is toggling between any consecutive accesses.

\( (BUSTURN + 1) \times HCLK \text{ period} \geq t_{PC} \text{ min} \)

0000: BUSTURN phase duration = 1 HCLK clock cycle added

...

1111: BUSTURN phase duration = 16 × HCLK clock cycles added (default value after reset)

Bits 15:8 DATAST[7:0] : Data-phase duration.

These bits are written by software to define the duration of the data phase (refer to Figure 48 to Figure 60 ), used in asynchronous SRAM, PSRAM and NOR Flash memory accesses:

0000 0000: Reserved
0000 0001: DATAST phase duration = 1 × HCLK clock cycles
0000 0010: DATAST phase duration = 2 × HCLK clock cycles
...
1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)

Bits 7:4 ADDHLD[3:0] : Address-hold phase duration.

These bits are written by software to define the duration of the address hold phase (refer to Figure 57 to Figure 60 ), used in asynchronous multiplexed accesses:

0000: Reserved
0001: ADDHLD phase duration = 1 × HCLK clock cycle
0010: ADDHLD phase duration = 2 × HCLK clock cycle
...
1111: ADDHLD phase duration = 15 × HCLK clock cycles (default value after reset)

Note: In synchronous NOR Flash accesses, this value is not used, the address hold phase is always 1 Flash clock period duration.

Bits 3:0 ADDSET[3:0] : Address setup phase duration.

These bits are written by software to define the duration of the address setup phase in HCLK cycles (refer to Figure 48 to Figure 60 ), used in asynchronous accesses:

0000: ADDSET phase duration = 0 × HCLK clock cycle
...
1111: ADDSET phase duration = 15 × HCLK clock cycles (default value after reset)

Note: In synchronous accesses, this value is not used, the address setup phase is always 1 Flash clock period duration. In muxed mode, the minimum ADDSET value is 1.

PSRAM chip select counter register (FMC_PSCNTR)

Address offset: 0x20

Reset value: 0x0000 0000

This register contains the PSRAM chip select counter value for Synchronous and Asynchronous modes. The chip select counter is common to all banks and can be enabled separately on each bank. During PSRAM read or write accesses, this value is loaded into a timer which is decremented while the NE signal is held low. When the timer reaches 0, the PSRAM controller splits the current access, toggles NE to allow PSRAM device refresh, and restarts a new access. The programmed counter value guarantees a maximum NE pulse width ( \( t_{CEM} \) ) as specified for PSRAM devices. The counter is reloaded and starts decrementing each time a new access is started by a transition of NE from high to low.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CNTB4ENCNTB3ENCNTB2ENCNTB1EN
rwrwrwrw
1514131211109876543210
CSCOUNT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:20 Reserved, must be kept at reset value.

Bit 19 CNTB4EN : Counter Bank 4 enable

This bit enables the chip select counter for PSRAM/NOR Bank 4.

0: Counter disabled for Bank 4

1: Counter enabled for Bank 4

Bit 18 CNTB3EN : Counter Bank 3 enable

This bit enables the chip select counter for PSRAM/NOR Bank 3.

0: Counter disabled for Bank 3.

1: Counter enabled for Bank 3

Bit 17 CNTB2EN : Counter Bank 2 enable

This bit enables the chip select counter for PSRAM/NOR Bank 2.

0: Counter disabled for Bank 2

1: Counter enabled for Bank 2

Bit 16 CNTB1EN : Counter Bank 1 enable

This bit enables the chip select counter for PSRAM/NOR Bank 1.

0: Counter disabled for Bank 1

1: Counter enabled for Bank 1

Bits 15:0 CSCOUNT[15:0] : Chip select counter.

These bits are written by software to define the maximum chip select low pulse duration. It is expressed in FMC_CLK cycles for synchronous accesses and in HCLK cycles for asynchronous accesses.

The counter is disabled if the programmed value is 0.

18.8 NAND Flash controller

The FMC generates the appropriate signal timings to drive the following types of device:

The NAND bank is configured through dedicated registers ( Section 18.8.7 ). The programmable memory parameters include access timings (shown in Table 113 ) and ECC configuration.

Table 113. Programmable NAND Flash access parameters

ParameterFunctionAccess modeUnitMin.Max.
Memory setup timeNumber of clock cycles (HCLK) required to set up the address before the command assertionRead/WriteAHB clock cycle (HCLK)1255
Memory waitMinimum duration (in HCLK clock cycles) of the command assertionRead/WriteAHB clock cycle (HCLK)2255
Table 113. Programmable NAND Flash access parameters (continued)
ParameterFunctionAccess modeUnitMin.Max.
Memory holdNumber of clock cycles (HCLK) during which the address must be held (as well as the data if a write access is performed) after the command de-assertionRead/WriteAHB clock cycle (HCLK)1254
Memory databus high-ZNumber of clock cycles (HCLK) during which the data bus is kept in high-Z state after a write access has startedWriteAHB clock cycle (HCLK)1255

18.8.1 External memory interface signals

The following tables list the signals that are typically used to interface NAND Flash memory.

Note: The prefix “N” identifies the signals which are active low.

8-bit NAND Flash memory

Table 114. 8-bit NAND Flash
FMC signal nameI/OFunction
A[17]ONAND Flash address latch enable (ALE) signal
A[16]ONAND Flash command latch enable (CLE) signal
D[7:0]I/O8-bit multiplexed, bidirectional address/data bus
NCEOChip select
NOE(= NRE)OOutput enable (memory signal name: read enable, NRE)
NWEOWrite enable
NWAIT/INTINAND Flash ready/busy input signal to the FMC

Theoretically, there is no capacity limitation as the FMC can manage as many address cycles as needed.

16-bit NAND Flash memory Table 115. 16-bit NAND Flash
FMC signal nameI/OFunction
A[17]ONAND Flash address latch enable (ALE) signal
A[16]ONAND Flash command latch enable (CLE) signal
D[15:0]I/O16-bit multiplexed, bidirectional address/data bus
NCEOChip select
NOE(= NRE)OOutput enable (memory signal name: read enable, NRE)
NWEOWrite enable
NWAIT/INTINAND Flash ready/busy input signal to the FMC

Theoretically, there is no capacity limitation as the FMC can manage as many address cycles as needed.

18.8.2 NAND Flash supported memories and transactions

Table 116 shows the supported devices, access modes and transactions. Transactions not allowed (or not supported) by the NAND Flash controller are shown in gray.

Table 116. Supported memories and transactions

DeviceModeR/WAHB data sizeMemory data sizeAllowed/not allowedComments
NAND 8-bitAsynchronousR88Y-
AsynchronousW88Y-
AsynchronousR168YSplit into 2 FMC accesses
AsynchronousW168YSplit into 2 FMC accesses
AsynchronousR328YSplit into 4 FMC accesses
AsynchronousW328YSplit into 4 FMC accesses
NAND 16-bitAsynchronousR816Y-
AsynchronousW816N-
AsynchronousR1616Y-
AsynchronousW1616Y-
AsynchronousR3216YSplit into 2 FMC accesses
AsynchronousW3216YSplit into 2 FMC accesses

18.8.3 Timing diagrams for NAND Flash memory

The NAND Flash memory bank is managed through a set of registers:

Each timing configuration register contains three parameters used to define number of HCLK cycles for the three phases of any NAND Flash access, plus one parameter that defines the timing for starting driving the data bus when a write access is performed.

Figure 66 shows the timing parameter definitions for common memory accesses, knowing that Attribute memory space access timings are similar.

Figure 66. NAND Flash controller waveforms for common memory access

Timing diagram for NAND Flash controller waveforms. The diagram shows the relationship between HCLK, address lines A[25:0], active-low chip select NCEx, active-low read enable NREG, NIOW, NIOR, active-low write enable NWE, NOE, write data, and read data. Timing parameters shown include MEMxSET + 1, MEMxWAIT + 1, MEMxHOLD, and MEMxHIZ + 1. A note (1) indicates that NOE remains high during write accesses and NWE remains high during read accesses. The read data is shown as 'Valid' during the read phase.
Timing diagram for NAND Flash controller waveforms. The diagram shows the relationship between HCLK, address lines A[25:0], active-low chip select NCEx, active-low read enable NREG, NIOW, NIOR, active-low write enable NWE, NOE, write data, and read data. Timing parameters shown include MEMxSET + 1, MEMxWAIT + 1, MEMxHOLD, and MEMxHIZ + 1. A note (1) indicates that NOE remains high during write accesses and NWE remains high during read accesses. The read data is shown as 'Valid' during the read phase.
  1. 1. NOE remains high (inactive) during write accesses. NWE remains high (inactive) during read accesses.
  2. 2. For write access, the hold phase delay is (MEMHOLD) HCLK cycles and for read access is (MEMHOLD + 2) HCLK cycles.

18.8.4 NAND Flash operations

The command latch enable (CLE) and address latch enable (ALE) signals of the NAND Flash memory device are driven by address signals from the FMC controller. This means that to send a command or an address to the NAND Flash memory, the CPU has to perform a write to a specific address in its memory space.

A typical page read operation from the NAND Flash device requires the following steps:

  1. 1. Program and enable the corresponding memory bank by configuring the FMC_PCR and FMC_PMEM (and for some devices, FMC_PATT, see Section 18.8.5: NAND Flash prewait functionality ) registers according to the characteristics of the NAND Flash memory (PWID bits for the data bus width of the NAND Flash, PTYP = 1, PWAITEN = 0 or 1 as needed, see Section 18.6.2: NAND Flash memory address mapping for timing configuration).
  2. 2. The CPU performs a byte write to the common memory space, with data byte equal to one Flash command byte (for example 0x00 for Samsung NAND Flash devices). The LE input of the NAND Flash memory is active during the write strobe (low pulse on NWE), thus the written byte is interpreted as a command by the NAND Flash memory. Once the command is latched by the memory device, it does not need to be written again for the following page read operations.
  3. 3. The CPU can send the start address (STARTAD) for a read operation by writing four bytes (or three for smaller capacity devices), STARTAD[7:0], STARTAD[16:9], STARTAD[24:17] and finally STARTAD[25] (for 64 Mb x 8 bit NAND Flash memories) in the common memory or attribute space. The ALE input of the NAND Flash device is active during the write strobe (low pulse on NWE), thus the written bytes are interpreted as the start address for read operations. Using the attribute memory space makes it possible to use a different timing configuration of the FMC, which can be used

to implement the prewait functionality needed by some NAND Flash memories (see details in Section 18.8.5: NAND Flash prewait functionality ).

  1. The controller waits for the NAND Flash memory to be ready (R/NB signal high), before starting a new access to the same or another memory bank. While waiting, the controller holds the NCE signal active (low).
  2. The CPU can then perform byte read operations from the common memory space to read the NAND Flash page (data field + Spare field) byte by byte.
  3. The next NAND Flash page can be read without any CPU command or address write operation. This can be done in three different ways:
    • by simply performing the operation described in step 5
    • a new random address can be accessed by restarting the operation at step 3
    • a new command can be sent to the NAND Flash device by restarting at step 2

18.8.5 NAND Flash prewait functionality

Some NAND Flash devices require that, after writing the last part of the address, the controller waits for the R/NB signal to go low. (see Figure 67 ).

Figure 67. Access to non ‘CE don’t care’ NAND-Flash

Timing diagram for Figure 67 showing the sequence of signals for a NAND Flash write access. The signals shown are NCE, CLE, ALE, NWE, NOE, I/O[7:0], and R/NB. The sequence is divided into five steps: (1) CPU wrote byte 0x00 at address 0x7001 0000; (2) CPU wrote byte A7~A0 at address 0x7002 0000; (3) CPU wrote byte A16~A9 at address 0x7002 0000; (4) CPU wrote byte A24~A17 at address 0x7002 0000; (5) CPU wrote byte A25 at address 0x7802 0000. The diagram shows NCE going low at the start and staying low until after step 5. CLE is high during step 1. ALE is high during steps 2, 3, and 4. NWE is low during steps 1, 2, 3, 4, and 5. NOE is high throughout. I/O[7:0] shows the data and address values. R/NB is high during steps 1-4 and goes low during step 5. Timing parameters tR and tWB are indicated.
Timing diagram for Figure 67 showing the sequence of signals for a NAND Flash write access. The signals shown are NCE, CLE, ALE, NWE, NOE, I/O[7:0], and R/NB. The sequence is divided into five steps: (1) CPU wrote byte 0x00 at address 0x7001 0000; (2) CPU wrote byte A7~A0 at address 0x7002 0000; (3) CPU wrote byte A16~A9 at address 0x7002 0000; (4) CPU wrote byte A24~A17 at address 0x7002 0000; (5) CPU wrote byte A25 at address 0x7802 0000. The diagram shows NCE going low at the start and staying low until after step 5. CLE is high during step 1. ALE is high during steps 2, 3, and 4. NWE is low during steps 1, 2, 3, 4, and 5. NOE is high throughout. I/O[7:0] shows the data and address values. R/NB is high during steps 1-4 and goes low during step 5. Timing parameters tR and tWB are indicated.
  1. CPU wrote byte 0x00 at address 0x7001 0000.
  2. CPU wrote byte A7~A0 at address 0x7002 0000.
  3. CPU wrote byte A16~A9 at address 0x7002 0000.
  4. CPU wrote byte A24~A17 at address 0x7002 0000.
  5. CPU wrote byte A25 at address 0x7802 0000: FMC performs a write access using FMC_PATT timing definition, where \( ATTHOLD \ge 7 \) (providing that \( (7+1) \times HCLK = 112 \text{ ns} > t_{WB} \text{ max} \) ). This guarantees that NCE remains low until R/NB goes low and high again (only requested for NAND Flash memories where NCE is not don't care).

When this functionality is required, it can be ensured by programming the MEMHOLD value to meet the \( t_{WB} \) timing. However any CPU read access to the NAND Flash memory has a hold delay of (MEMHOLD + 2) HCLK cycles and CPU write access has a hold delay of (MEMHOLD) HCLK cycles inserted between the rising edge of the NWE signal and the next access.

To cope with this timing constraint, the attribute memory space can be used by programming its timing register with an ATTHOLD value that meets the \( t_{WB} \) timing, and by keeping the MEMHOLD value at its minimum value. The CPU must then use the common memory space for all NAND Flash read and write accesses, except when writing the last address byte to the NAND Flash device, where the CPU must write to the attribute memory space.

18.8.6 Computation of the error correction code (ECC) in NAND Flash memory

The FMC NAND Card controller includes two error correction code computation hardware blocks, one per memory bank. They reduce the host CPU workload when processing the ECC by software.

These two ECC blocks are identical and associated with Bank 2 and Bank 3. As a consequence, no hardware ECC computation is available for memories connected to Bank 4.

The ECC algorithm implemented in the FMC can perform 1-bit error correction and 2-bit error detection per 256, 512, 1 024, 2 048, 4 096 or 8 192 bytes read or written from/to the NAND Flash memory. It is based on the Hamming coding algorithm and consists in calculating the row and column parity.

The ECC modules monitor the NAND Flash data bus and read/write signals (NCE and NWE) each time the NAND Flash memory bank is active.

The ECC operates as follows:

Once the desired number of bytes has been read/written from/to the NAND Flash memory by the host CPU, the FMC_ECCR registers must be read to retrieve the computed value. Once read, they should be cleared by resetting the ECCEN bit to '0'. To compute a new data block, the ECCEN bit must be set to one in the FMC_PCR registers.

To perform an ECC computation:

  1. 1. Enable the ECCEN bit in the FMC_PCR register.
  2. 2. Write data to the NAND Flash memory page. While the NAND page is written, the ECC block computes the ECC value.
  3. 3. Read the ECC value available in the FMC_ECCR register and store it in a variable.
  4. 4. Clear the ECCEN bit and then enable it in the FMC_PCR register before reading back the written data from the NAND page. While the NAND page is read, the ECC block computes the ECC value.
  5. 5. Read the new ECC value available in the FMC_ECCR register.
  6. 6. If the two ECC values are the same, no correction is required, otherwise there is an ECC error and the software correction routine returns information on whether the error can be corrected or not.

18.8.7 NAND Flash controller registers

NAND Flash control registers (FMC_PCR)

Address offset: 0x80

Reset value: 0x0000 0018

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ECCPS[2:0]TAR3
rwrwrwrw
1514131211109876543210
TAR[2:0]TCLR[3:0]Res.Res.ECCENPWID[1:0]PTYPPBKENPWAITENRes.
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:20 Reserved, must be kept at reset value.

Bits 19:17 ECCPS[2:0] : ECC page size

Defines the page size for the extended ECC:

000: 256 bytes

001: 512 bytes

010: 1024 bytes

011: 2048 bytes

100: 4096 bytes

101: 8192 bytes

Bits 16:13 TAR[3:0] : ALE to RE delay

Sets time from ALE low to RE low in number of AHB clock cycles (HCLK).

Time is: \( t\_ar = (TAR + SET + 2) \times THCLK \) where THCLK is the HCLK clock period

0000: 1 HCLK cycle (default)

1111: 16 HCLK cycles

Note: SET is MEMSET or ATTSET according to the addressed space.

Bits 12:9 TCLR[3:0] : CLE to RE delay

Sets time from CLE low to RE low in number of AHB clock cycles (HCLK).

Time is \( t\_clr = (TCLR + SET + 2) \times THCLK \) where THCLK is the HCLK clock period

0000: 1 HCLK cycle (default)

1111: 16 HCLK cycles

Note: SET is MEMSET or ATTSET according to the addressed space.

Bits 8:7 Reserved, must be kept at reset value.

Bit 6 ECCEN : ECC computation logic enable bit

0: ECC logic is disabled and reset (default after reset),

1: ECC logic is enabled.

Bits 5:4 PWID[1:0] : Data bus width

Defines the external memory device width.

00: 8 bits

01: 16 bits (default after reset).

10: reserved.

11: reserved.

Bit 3 PTYP : Memory type

Defines the type of device attached to the corresponding memory bank:

0: Reserved, must be kept at reset value

1: NAND Flash (default after reset)

Bit 2 PBKEN : NAND Flash memory bank enable bit

Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB bus

0: Corresponding memory bank is disabled (default after reset)

1: Corresponding memory bank is enabled

Bit 1 PWAITEN : Wait feature enable bit

Enables the Wait feature for the NAND Flash memory bank:

0: disabled

1: enabled

Bit 0 Reserved, must be kept at reset value.

FIFO status and interrupt register (FMC_SR)

Address offset: 0x84

Reset value: 0x0000 0040

This register contains information about the FIFO status and interrupt. The FMC features a FIFO that is used when writing to memories to transfer up to 16 words of data from the AHB.

This is used to quickly write to the FIFO and free the AHB for transactions to peripherals other than the FMC, while the FMC is draining its FIFO into the memory. One of these register bits indicates the status of the FIFO, for ECC purposes.

The ECC is calculated while the data are written to the memory. To read the correct ECC, the software must consequently wait until the FIFO is empty.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.FEMPTIFENILENIRENIFSILSIRS
rrwrwrwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 FEMPT : FIFO empty

Read-only bit that provides the status of the FIFO

0: FIFO not empty

1: FIFO empty

Bit 5 IFEN : Interrupt falling edge detection enable bit

0: Interrupt falling edge detection request disabled

1: Interrupt falling edge detection request enabled

Bit 4 ILEN : Interrupt high-level detection enable bit

0: Interrupt high-level detection request disabled

1: Interrupt high-level detection request enabled

Bit 3 IREN : Interrupt rising edge detection enable bit

0: Interrupt rising edge detection request disabled

1: Interrupt rising edge detection request enabled

Bit 2 IFS : Interrupt falling edge status

The flag is set by hardware and reset by software.

0: No interrupt falling edge occurred

1: Interrupt falling edge occurred

Note: If this bit is written by software to 1 it is set.

Bit 1 ILS : Interrupt high-level status

The flag is set by hardware and reset by software.

0: No Interrupt high-level occurred

1: Interrupt high-level occurred

Bit 0 IRS : Interrupt rising edge status

The flag is set by hardware and reset by software.

0: No interrupt rising edge occurred

1: Interrupt rising edge occurred

Note: If this bit is written by software to 1 it is set.

Common memory space timing register (FMC_PMEM)

Address offset: Address: 0x88

Reset value: 0xFCFC FCFC

The FMC_PMEM read/write register contains the timing information for NAND Flash memory bank. This information is used to access either the common memory space of the NAND Flash for command, address write access and data read/write access.

31302928272625242322212019181716
MEMHIZ[7:0]MEMHOLD[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MEMWAIT[7:0]MEMSET[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 MEMHIZ[7:0] : Common memory x data bus Hi-Z time

Defines the number of HCLK clock cycles during which the data bus is kept Hi-Z after the start of a NAND Flash write access to common memory space on socket. This is only valid for write transactions:

0000 0000: 1 HCLK cycle

1111 1110: 255 HCLK cycles

1111 1111: reserved.

Bits 23:16 MEMHOLD[7:0] : Common memory hold time

Defines the number of HCLK clock cycles for write access and HCLK (+2) clock cycles for read access during which the address is held (and data for write accesses) after the command is deasserted (NWE, NOE), for NAND Flash read or write access to common memory space on socket x:

0000 0000: reserved.

0000 0001: 1 HCLK cycle for write access / 3 HCLK cycles for read access

1111 1110: 254 HCLK cycles for write access / 256 HCLK cycles for read access

1111 1111: reserved.

Bits 15:8 MEMWAIT[7:0] : Common memory wait time

Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE, NOE), for NAND Flash read or write access to common memory space on socket. The duration of command assertion is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value of HCLK:

0000 0000: reserved

0000 0001: 2HCLK cycles (+ wait cycle introduced by deasserting NWAIT)

1111 1110: 255 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)

1111 1111: reserved.

Bits 7:0 MEMSET[7:0] : Common memory x setup time

Defines the number of HCLK (+1) clock cycles to set up the address before the command assertion (NWE, NOE), for NAND Flash read or write access to common memory space on socket x:

0000 0000: 1 HCLK cycle

1111 1110: 255 HCLK cycles

1111 1111: reserved

Attribute memory space timing register (FMC_PATT)

Address offset: 0x8C

Reset value: 0xFCFC FCFC

The FMC_PATT read/write register contains the timing information for NAND Flash memory bank. It is used for 8-bit accesses to the attribute memory space of the NAND Flash for the last address write access if the timing must differ from that of previous accesses (for Ready/Busy management, refer to Section 18.8.5: NAND Flash prewait functionality ).

31302928272625242322212019181716
ATTHIZ[7:0]ATTHOLD[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ATTWAIT[7:0]ATTSET[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 ATTHIZ[7:0] : Attribute memory data bus Hi-Z time

Defines the number of HCLK clock cycles during which the data bus is kept in Hi-Z after the start of a NAND Flash write access to attribute memory space on socket. Only valid for write transaction:

0000 0000: 0 HCLK cycle

1111 1110: 255 HCLK cycles

1111 1111: reserved.

Bits 23:16 ATTHOLD[7:0] : Attribute memory hold time

Defines the number of HCLK clock cycles for write access and HCLK (+2) clock cycles for read access during which the address is held (and data for write access) after the command deassertion (NWE, NOE), for NAND Flash read or write access to attribute memory space on socket:

0000 0000: reserved

0000 0001: 1 HCLK cycle for write access / 3 HCLK cycles for read access

1111 1110: 254 HCLK cycles for write access / 256 HCLK cycles for read access

1111 1111: reserved.

Bits 15:8 ATTWAIT[7:0] : Attribute memory wait time

Defines the minimum number of HCLK (+1) clock cycles to assert the command (NWE, NOE), for NAND Flash read or write access to attribute memory space on socket x. The duration for command assertion is extended if the wait signal (NWAIT) is active (low) at the end of the programmed value of HCLK:

0000 0000: reserved

0000 0001: 2 HCLK cycles (+ wait cycle introduced by deassertion of NWAIT)

1111 1110: 255 HCLK cycles (+ wait cycle introduced by deasserting NWAIT)

1111 1111: reserved.

Bits 7:0 ATTSET[7:0] : Attribute memory setup time

Defines the number of HCLK (+1) clock cycles to set up address before the command assertion (NWE, NOE), for NAND Flash read or write access to attribute memory space on socket:

0000 0000: 1 HCLK cycle

1111 1110: 255 HCLK cycles

1111 1111: reserved.

ECC result registers (FMC_ECCR)

Address offset: 0x94

Reset value: 0x0000 0000

This register contains the current error correction code value computed by the ECC computation modules of the FMC NAND controller. When the CPU reads the data from a NAND Flash memory page at the correct address (refer to Section 18.8.6: Computation of the error correction code (ECC) in NAND Flash memory ), the data read/written from/to the NAND Flash memory are processed automatically by the ECC computation module. When X bytes have been read (according to the ECCPS field in the FMC_PCR registers), the CPU must read the computed ECC value from the FMC_ECC registers. It then verifies if these computed parity data are the same as the parity value recorded in the spare area, to determine whether a page is valid, and, to correct it otherwise. The FMC_ECCR register should be cleared after being read by setting the ECCEN bit to 0. To compute a new data block, the ECCEN bit must be set to 1.

31302928272625242322212019181716
ECC[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ECC[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ECC[31:0] : ECC result

This field contains the value computed by the ECC computation logic. Table 117 describes the contents of these bitfields.

Table 117. ECC result relevant bits

ECCPS[2:0]Page size in bytesECC bits
000256ECC[21:0]
001512ECC[23:0]
0101024ECC[25:0]
0112048ECC[27:0]
1004096ECC[29:0]
1018192ECC[31:0]

18.8.8 FMC register map

Table 118. FMC register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x00FMC_BCR1Res.Res.Res.Res.Res.Res.Res.Res.NBL
SET
[1:0]
WFDISCCLKENCBURSTRWCPSIZE
[2:0]
ASYNCWAITEXTMODWAITENWRENWAITCFGRes.WAITPOLBURSTENRes.FACCENMWID
[1:0]
MTYP
[1:0]
MUXENMBKEN
Reset value0000000000110001011011
0x08FMC_BCR2Res.Res.Res.Res.Res.Res.Res.Res.NBL
SET
[1:0]
Res.Res.CBURSTRWCPSIZE
[2:0]
ASYNCWAITEXTMODWAITENWRENWAITCFGRes.WAITPOLBURSTENRes.FACCENMWID
[1:0]
MTYP
[1:0]
MUXENMBKEN
Reset value00000000110001010010
0x10FMC_BCR3Res.Res.Res.Res.Res.Res.Res.Res.NBL
SET
[1:0]
Res.Res.CBURSTRWCPSIZE
[2:0]
ASYNCWAITEXTMODWAITENWRENWAITCFGRes.WAITPOLBURSTENRes.FACCENMWID
[1:0]
MTYP
[1:0]
MUXENMBKEN
Reset value00000000110001010010
0x18FMC_BCR4Res.Res.Res.Res.Res.Res.Res.Res.NBL
SET
[1:0]
Res.Res.CBURSTRWCPSIZE
[2:0]
ASYNCWAITEXTMODWAITENWRENWAITCFGRes.WAITPOLBURSTENRes.FACCENMWID
[1:0]
MTYP
[1:0]
MUXENMBKEN
Reset value00000000110001010010
0x04FMC_BTR1DATAHLD[1:0]ACCMOD[1:0]DATLAT[3:0]CLKDIV[3:0]BUSTURN[3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value00001111111111111111111111111111
0x0CFMC_BTR2DATAHLD[1:0]ACCMOD[1:0]DATLAT[3:0]CLKDIV[3:0]BUSTURN[3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value00001111111111111111111111111111
0x14FMC_BTR3DATAHLD[1:0]ACCMOD[1:0]DATLAT[3:0]CLKDIV[3:0]BUSTURN[3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value00001111111111111111111111111111
0x1CFMC_BTR4DATAHLD[1:0]ACCMOD[1:0]DATLAT[3:0]CLKDIV[3:0]BUSTURN[3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value00001111111111111111111111111111
0x20FMC_PCSCNTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CNTB4ENCNTB3ENCNTB2ENCNTB1ENCSCOUNT[15:0]
Reset value00000000000000000000
0x104FMC_BWTR1DATAHLD[1:0]ACCMOD[1:0]Res.Res.Res.Res.Res.Res.Res.Res.BUSTURN[3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value000011111111111111111111

Table 118. FMC register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x10CFMC_BWTR2DATAHLD[1:0]ACCMOD[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BUSTURN [3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value000011111111111111111111
0x114FMC_BWTR3DATAHLD[1:0]ACCMOD[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BUSTURN [3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value00001111111111111111111
0x11CFMC_BWTR4DATAHLD[1:0]ACCMOD[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BUSTURN [3:0]DATAST[7:0]ADDHLD[3:0]ADDSET[3:0]
Reset value00001111111111111111111
0x80FMC_PCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ECCPS [2:0]TAR[3:0]TCLR[3:0]Res.Res.ECCENPWID [1:0]PTYPPBKENPWAITENRes.
Reset value000000000001100
0x84FMC_SRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FEMPTIFENILENIRENIFSILSIRSRes.
Reset value1000000
0x88FMC_PMEMMEMHIZx[7:0]MEMHOLDx[7:0]MEMWAITx[7:0]MEMSETx[7:0]
Reset value11111100111111001111110011111100
0x8CFMC_PATTATTHIZ[7:0]ATTHOLD[7:0]ATTWAIT[7:0]ATTSET[7:0]
Reset value11111100111111001111110011111100
0x94FMC_ECCRECCx[31:0]
Reset value00000000000000000000000000000000

Refer to Section 2.2 on page 93 for the register boundary addresses.