SPIFI configuration structure

The SPIFI Configuration Option Block is organized by 4-bit unit. It is expandable, and current definition of the block is as shown in the following table. The Flashloader detects FNORCB using the read SFDP command supported by most flash devices that are JESD216(A/B)- compliant. However, JESD216A/B only define the dummy cycles for Quad SDR read. In order to get the dummy cycles for DDR/DTR read mode, the flashloader supports auto probing by writing test patterns to offset 0x200 on the external memory devices. To get optimal timing, the readSampleClkSrc is set to 1 in Flashloader for Flash devices that do not support external provided DQS pad input. It is set to 3 in Flashloader for flash devices that do support external provided DQS pad input, such as HyperFlash.

SPIFI Configuration Option Block

Offset Field Description
0 Option0  
TAG [31:28] Option size [27:24] Device detection type [23:20] Quer y CMD Pad( s) [19:16] CMD Pad( s) [15:12] Quad Enable Type [11:8] Misc [11:4] Max Freq [3:0]
0x0C Size in bytes
= (Option Size + 1) * 4
0 - QuadSPI SDR 0 - 1 0 - 1 0 - Not configured
1 - QE bit is bit 6 in StatusReg1
2 - QE bit is bit 1 in StatusReg2
3 - QE bit is in bit7 in StatusReg2
4 - QE bit is bit 1
in StatusReg2,enable command is 0x31
0 -
Not confi gure d
Device- specific, on LPC540xx/ LPC54S0xx
flashloader:
1 - 24
MHz
2 - 48
MHz
3 - 60
MHz
4 - 80
MHz
5 - 96
MHz
4 Option1 (Optional)  
Reserved [31:8] Dummy Cycle [7:0]
Reserved for future use 0 - Use auto-probing dummy cycle
Others - dummy cycles provided in data sheet
  • Tag - Fixed as 0x0C

  • Option Size - Provide scalability for future use, the option block size equals to (Option size + 1) * 4 bytes.

  • Device Detection type - Software defined device types used for config block auto detection.

  • Query Command Pad(s) - Command pads (1/4/8) for the SFDP command.

  • CMD pad(s) - Commands pads for the Flash device (1/4/8). For devices that works under 1-1-4, 1-4-4, 1-1-8, or 1-8-8 mode, CMD pad(s) value is always 0x0. For devices that only support 4-4-4 mode for high performance, CMD pads value is 2. For devices that only support 8-8-8 mode for high performance, CMD pads value is 3.

  • Quad Enable Type - Specify the Quad Enable sequence. Only applicable for devices that are only JESD216-compliant. This field is ignored if device supports JESD216A or later version.

  • Misc - Specify miscellaneous mode for selected flash type.

  • Max Frequency - The maximum work frequency for the specified flash device.

  • Dummy Cycle - User provided dummy cycles for SDR/DDR read command.

Typical use cases for SPIFI NOR Configuration Block

  • QuadSPI NOR - Quad SDR Read: option0 = 0xc0000004 (80 MHz).