
• Flash-erase-all: This command can erase all SPI flash devices defined in the QCB.
For example, if “flash-erase-all 1”, the 1 represents the source of the erasure
command is QuadSPI memory.
• Flash-erase-region: This command can erase a specified range of flash within
connected SPI flash devices. For example “flash-erase-region 0x68000000
0x10000”.
• Write-memory: The Kinetis Bootloader calls the Write-memory command to
program specified data to a given region of connected SPI flash devices. For
example, “write-memory 0x68001000 led_demo.bin”.
• Read-memory: The Kinetis Bootloader calls the Read-memory command to read
data from a given region of connected SPI flash devices. For example, “read-memory
0x68000000 1024 temp.bin”.
These commands return error codes.
Table 14-56. Status Error Codes for accessing QuadSPI memory
Error Code
Value
Description
kStatus_Success
0
Operation succeeded without error
kStatus_QspiFlashSizeError
400
Size of external SPI flash is invalid
kStatus_QspiFlashAlignmentError
401
Start Address for program is not page-aligned
kStatus_QspiFlashAddressError
402
The address is invalid
kStatus_QspiFlashCommandFailure
403
The operation failed
kStatus_QspiNotConfigured
405
QSPI module is not successfully configured
kStatus_QspiCommandNotSupported
406
The command is not supported under certain modes
kStatus_QspiCommandTimeout
407
The time that the external SPI device is busy more than the
timeout value (timeout_milliseconds).
kStatus_QspiWriteFailure
408
QSPI module cannot perform a program command at the
current clock frequency
14.4.3.5 Boot directly from QuadSPI
The Kinetis Bootloader supports booting directly from QuadSPI. To boot directly from
QuadSPI, the following conditions must be met:
• The bootFlags field in BCA is set to 0xFE, which means "boot directly from
QuadSPI".
• The BOOTSRC_SEL field (bits [7:6]) in the FOPT register at address 0x40D is set to
“0’b10”, which means "boot from ROM with QuadSPI configured".
• User application is valid.
• QuadSPI configuration block (QCB) is valid
• CRC check passed if the CRC check feature is enabled.
Peripherals Supported
K32 L2A Reference Manual, Rev. 2, 01/2020
306
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...