
• 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
Содержание 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...