• If all of the above fields are unset (all 0xFF bytes for crcStartAddress, crcByteCount,
and crcExpectedValue), then the ROM bootloader returns
kStatus_AppCrcCheckInvalid.
• If any one of the above fields are set (crcStartAddress, crcByteCount, and
crcExpectedValue), then the ROM bootloader checks if the given address range of
the application is valid, and if the application resides in internal flash, by running a
CRC check on the image in flash:
• If the the given address range of the application is not valid (false), then the
bootloader returns kStatus_AppCrcCheckOutOfRange.
• If the given address range of the application is valid (true), then the CRC check
is performed.
• If the CRC check fails, then the bootloader returns
kStatus_AppCrcCheckFailed;
• If the CRC check succeeds, then it returns kStatus_AppCrcCheckPassed.
After application integrity testing:
• If the bootloader returns kStatus_AppCrcCheckOutOfRange or
kStatus_AppCrcCheckFailed, then an external pin (PTA6)(PTA11) will also be
asserted, to indicate CRC check failure.
• The bootloader will only jump to the application if kStatus_AppCrcCheckPassed is
returned; if kStatus_AppCrcCheckPassed is not returned, then the bootloader will
stay active, and wait for further commands.
23.8 Kinetis Bootloader Status Error Codes
This section describes the status error codes that the Kinetis Bootloader returns to the
host.
Table 23-73. Kinetis Bootloader Status Error Codes, sorted by Value
Error Code
Value
Description
kStatus_Success
0
Operation succeeded without error.
kStatus_Fail
1
Operation failed with a generic error.
kStatus_ReadOnly
2
Requested value cannot be changed because it is
read-only.
kStatus_OutOfRange
3
Requested value is out of range.
kStatus_InvalidArgument
4
The requested command's argument is undefined.
kStatus_Timeout
5
A timeout occurred.
kStatus_FlashSizeError
100
Not used.
kStatus_FlashAlignmentError
101
Address or length does not meet required
alignment.
kStatus_FlashAddressError
102
Address or length is outside addressable memory.
Table continues on the next page...
Chapter 23 Kinetis ROM Bootloader
Kinetis KE1xF Sub-Family Reference Manual, Rev. 4, 06/2019
NXP Semiconductors
629
Содержание KE1xF Series
Страница 2: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 2 NXP Semiconductors...
Страница 60: ...SysTick Clock Configuration Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 60 NXP Semiconductors...
Страница 114: ...Initialization application information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 114 NXP Semiconductors...
Страница 138: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 138 NXP Semiconductors...
Страница 320: ...Private Peripheral Bus PPB memory map Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 320 NXP Semiconductors...
Страница 342: ...Functional Description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 342 NXP Semiconductors...
Страница 360: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 360 NXP Semiconductors...
Страница 490: ...Interrupts Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 490 NXP Semiconductors...
Страница 550: ...Memory map and register definition Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 550 NXP Semiconductors...
Страница 562: ...Boot Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 562 NXP Semiconductors...
Страница 662: ...Power supply supervisor Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 662 NXP Semiconductors...
Страница 694: ...On chip resource access control mechanism Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 694 NXP Semiconductors...
Страница 706: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 706 NXP Semiconductors...
Страница 724: ...Application Information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 724 NXP Semiconductors...
Страница 736: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 736 NXP Semiconductors...
Страница 750: ...Debug and Security Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 750 NXP Semiconductors...
Страница 798: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 798 NXP Semiconductors...
Страница 808: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 808 NXP Semiconductors...
Страница 866: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 866 NXP Semiconductors...
Страница 1164: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1164 NXP Semiconductors...
Страница 1178: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1178 NXP Semiconductors...
Страница 1380: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1380 NXP Semiconductors...
Страница 1472: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1472 NXP Semiconductors...
Страница 1482: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1482 NXP Semiconductors...