
NOTE
All LUT indexes that are not listed in the previous table are
allowed to be used for other purposes.
14.4.3.3 Configure QuadSPI module
The Kinetis Bootloader is able to access external SPI devices via the QuadSPI module,
but only after the QuadSPI module is configured. There are 2 ways to configure the
QuadSPI module:
• Configure QuadSPI module at runtime
• Configure QuadSPI module at start-up
Table 14-54. Configuring the QuadSPI module
Configure
QuadSPI at
Procedure
Clock updates during QuadSPI
module configuration
runtime
1. Use a WriteMemory command to program the QCB to
either a region of RAM or internal flash.
2. Use the ConfigQuadSPI command to configure the
QuadSPI module with the QCB that was programmed
before.
3. After the above operations, the QuadSPI module has
been set to an expected mode specified by the QCB, so
the Kinetis bootloader is now able to access all
connected SPI flash devices.
If QuadSPI module is configured at
runtime: The System Core clock will not
be updated if the QuadSPI module is
configured at runtime; only
QUADSPI_MCR [SCLKCFG] is updated
according to sclk_freq field within the
QCB. In this case, the clock source for
QuadSPI module is IRC48M,
(QUADSPI0_SOCCR [QSPISRC] equals
4).
start-up
The steps of configuring QuadSPI at startup is based on the
runtime procedure, if the QCB is not present at address 0 of
the 1st external SPI flash device.
1. Configure the QuadSPI module at runtime (procedure
above).
2. Erase the 1st sector of the 1st connected external SPI
flash device using the FlashEraseRegion command.
3. Program the QCB to address 0 of the 1st connected
external SPI flash device using the WriteMemory
command.
NOTE:
For some types of SPI flash
devices (like Spansion Hyperflash)
which do not support basic reads
(0x03) with 24-bit addresses, an
alternative is available: for this
step, program the QCB to internal
flash, set the
“qspiConfigBlockPointer” in the
BCA to the start address of QCB,
and program the BCA to 0x3c0.
4. Update BOOTSRC_SEL field (bits [7:6]) in
FOPTregister at the address 0x40D to “0b’10”, which
means "boot from ROM with QuadSPI configured".
5. Reset the target.
If QuadSPI module is configured at
start-up: The System Core clock will be
updated to 96 MHz, if the QuadSPI
module is configured at start-up. In this
case, the clock source of the QuadSPI
module switches to MCGFLL. The
corresponding registers are updated with
the values listed in the table
Register
value updates when the QuadSPI
module is configured at start-up
.
Peripherals Supported
K32 L2A Reference Manual, Rev. 2, 01/2020
304
NXP Semiconductors
Summary of Contents for K32 L2A Series
Page 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Page 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Page 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Page 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Page 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Page 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Page 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Page 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Page 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Page 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Page 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Page 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Page 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Page 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Page 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Page 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Page 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Page 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Page 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Page 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Page 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...