
Chapter 14
Kinetis Flashloader
14.1 Introduction
The Kinetis devices that do not have an on-chip ROM are shipped with the pre-
programmed Kinetis Flashloader in the on-chip flash memory, for one-time, in-system
factory programming. The Kinetis Flashloader’s main task is to load a customer firmware
image into the flash memory. The image on the flash has 2 programs: flashloader_loader
and flashloader. After a device reset, the flashloader_loader program starts its execution
first. The flashloader_loader program copies the contents of flashloader image from the
flash to the on-chip RAM; the device then switches execution to the flashloader program
to execute from RAM.
For this device, the Kinetis Flashloader can interface with UART, CAN, 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 UART, CAN, I2C, and SPI peripheral interfaces
• Automatic detection of the active peripheral
• UART and CAN peripherals with autobaud
• Common packet-based protocol for all peripherals
• Packet error detection and retransmission
KV4x Reference Manual, Rev. 2, 02/2015
Freescale Semiconductor, Inc.
Preliminary
213
Summary of Contents for freescale KV4 Series
Page 2: ...KV4x Reference Manual Rev 2 02 2015 2 Preliminary Freescale Semiconductor Inc...
Page 60: ...KV4x Reference Manual Rev 2 02 2015 60 Preliminary Freescale Semiconductor Inc...
Page 128: ...Debug Security KV4x Reference Manual Rev 2 02 2015 128 Preliminary Freescale Semiconductor Inc...
Page 138: ...Boot KV4x Reference Manual Rev 2 02 2015 138 Preliminary Freescale Semiconductor Inc...
Page 1358: ...KV4x Reference Manual Rev 2 02 2015 1358 Preliminary Freescale Semiconductor Inc...