For the device, the Kinetis Flashloader can interface with USB, UART, I2C, and SPI
peripherals in slave mode and respond to the commands sent by a master (or host)
communicating on one of those ports. The host/master can be a firmware-download
application running on a PC or an embedded host communicating with the Kinetis
Flashloader. Regardless of the host/master (PC or embedded host), the Kinetis
Flashloader always uses a command protocol to communicate with that host/master.
Commands are provided to write to memory (flash or RAM), erase flash, and get/set
flashloader options and property values. The host application can query the set of
available commands.
This chapter describes Kinetis Flashloader features, functionality, command structure and
which peripherals are supported.
Features supported by the Kinetis Flashloader :
• Supports USB, UART, I2C, and SPI peripheral interfaces
• Automatic detection of the active peripheral
• UART peripheral implements autobaud
• Common packet-based protocol for all peripherals
• Packet error detection and retransmission
• Fully supports flash security, including ability to mass erase or unlock security via
the backdoor key
• Protection of RAM used by the flashloader while it is running
• Provides command to read properties of the device, such as flash and RAM size
Table 13-2. Commands supported by the Kinetis Flashloader
Command
Description
When flash security is
enabled, then this command is
Execute
Run user application code that never returns control to
the flashloader
Not supported
FillMemory
Fill a range of bytes in flash with a word pattern
FlashEraseAll
Erase the entire flash array
FlashEraseRegion
Erase a range of sectors in flash
FlashProgramOnce
Writes data provided in a command packet to a
specified range of bytes in the program once field
FlashReadOnce
Returns the contents of the program once field by
given index and byte count
FlashReadResource
Returns the contents of the IFR field or Flash firmware
ID, by given offset, byte count and option
WriteMemory
Write data to memory
ReadMemory
Read data from memory
Table continues on the next page...
Introduction
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
280
Freescale Semiconductor, Inc.
Содержание MK22FN256VDC12
Страница 2: ...K22F Sub Family Reference Manual Rev 3 7 2014 2 Freescale Semiconductor Inc...
Страница 136: ...Human machine interfaces K22F Sub Family Reference Manual Rev 3 7 2014 136 Freescale Semiconductor Inc...
Страница 164: ...Module clocks K22F Sub Family Reference Manual Rev 3 7 2014 164 Freescale Semiconductor Inc...
Страница 246: ...Functional description K22F Sub Family Reference Manual Rev 3 7 2014 246 Freescale Semiconductor Inc...
Страница 328: ...Kinetis Flashloader Status Error Codes K22F Sub Family Reference Manual Rev 3 7 2014 328 Freescale Semiconductor Inc...
Страница 360: ...Functional description K22F Sub Family Reference Manual Rev 3 7 2014 360 Freescale Semiconductor Inc...
Страница 388: ...Functional description K22F Sub Family Reference Manual Rev 3 7 2014 388 Freescale Semiconductor Inc...
Страница 402: ...Initialization application information K22F Sub Family Reference Manual Rev 3 7 2014 402 Freescale Semiconductor Inc...
Страница 500: ...Initialization application information K22F Sub Family Reference Manual Rev 3 7 2014 500 Freescale Semiconductor Inc...
Страница 670: ...Flash memory map for EzPort access K22F Sub Family Reference Manual Rev 3 7 2014 670 Freescale Semiconductor Inc...
Страница 680: ...Functional description K22F Sub Family Reference Manual Rev 3 7 2014 680 Freescale Semiconductor Inc...
Страница 744: ...Application information K22F Sub Family Reference Manual Rev 3 7 2014 744 Freescale Semiconductor Inc...
Страница 784: ...Functional description K22F Sub Family Reference Manual Rev 3 7 2014 784 Freescale Semiconductor Inc...
Страница 794: ...Initialization Application Information K22F Sub Family Reference Manual Rev 3 7 2014 794 Freescale Semiconductor Inc...
Страница 960: ...Example configuration for chained timers K22F Sub Family Reference Manual Rev 3 7 2014 960 Freescale Semiconductor Inc...
Страница 1036: ...Device mode IRC48 operation K22F Sub Family Reference Manual Rev 3 7 2014 1036 Freescale Semiconductor Inc...
Страница 1040: ...USB Voltage Regulator Module Signal Descriptions K22F Sub Family Reference Manual Rev 3 7 2014 1040 Freescale Semiconductor Inc...
Страница 1094: ...Initialization application information K22F Sub Family Reference Manual Rev 3 7 2014 1094 Freescale Semiconductor Inc...
Страница 1128: ...Initialization application information K22F Sub Family Reference Manual Rev 3 7 2014 1128 Freescale Semiconductor Inc...
Страница 1216: ...Application information K22F Sub Family Reference Manual Rev 3 7 2014 1216 Freescale Semiconductor Inc...
Страница 1298: ...Functional description K22F Sub Family Reference Manual Rev 3 7 2014 1298 Freescale Semiconductor Inc...
Страница 1312: ...K22F Sub Family Reference Manual Rev 3 7 2014 1312 Freescale Semiconductor Inc...