
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
Содержание K32 L2A Series
Страница 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Страница 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Страница 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Страница 146: ...Module operation in low power modes K32 L2A Reference Manual Rev 2 01 2020 146 NXP Semiconductors...
Страница 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Страница 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Страница 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Страница 322: ...Kinetis Bootloader Status Error Codes K32 L2A Reference Manual Rev 2 01 2020 322 NXP Semiconductors...
Страница 344: ...Application initialization information K32 L2A Reference Manual Rev 2 01 2020 344 NXP Semiconductors...
Страница 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Страница 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Страница 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Страница 602: ...Initialization and application information K32 L2A Reference Manual Rev 2 01 2020 602 NXP Semiconductors...
Страница 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Страница 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Страница 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Страница 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Страница 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Страница 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Страница 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Страница 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Страница 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Страница 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Страница 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Страница 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...
Страница 1344: ...USB Voltage Regulator Module Signal Descriptions K32 L2A Reference Manual Rev 2 01 2020 1344 NXP Semiconductors...
Страница 1356: ...Initialization Application Information K32 L2A Reference Manual Rev 2 01 2020 1356 NXP Semiconductors...