Bootloader Command Api - NXP Semiconductors MKL27Z128VFM4 Reference Manual

Table of Contents

Advertisement

ReadMemoryResponse: The ReadMemoryResponse packet is sent by the target in
response to the host sending a ReadMemory command. The ReadMemoryResponse
packet contains the framing packet data and the command packet data, with the
command/response tag set to a ReadMemoryResponse tag value (0xA3), the flags field
set to kCommandFlag_HasDataPhase (1).
The parameter count set to 2 for the status code and the data byte count parameters shown
below.
Byte #
Parameter
0 - 3
Status code
4 - 7
Data byte count

13.3.8 Bootloader Command API

All Kinetis Bootloader command APIs follow the command packet format that is
wrapped by the framing packet, as explained in previous sections.
• For a list of commands supported by the Kinetis Bootloader in KLx3 ROM, see
Table
13-2, Commands supported.
• For a list of status codes returned by the Kinetis Bootloader in KLx3 ROM, see
13-40, Kinetis Bootloader Status Error Codes.
All the examples in this section depict byte traffic on serial
peripherals that use framing packets. USB HID transactions use
the USB HID report packets instead of the serial framing
packets shown in this section. Please refer to the
section for details of the USB HID packet structure.
13.3.8.1 Execute command
The execute command results in the bootloader setting the program counter to the code at
the provided jump address, R0 to the provided argument, and a Stack pointer to the
provided stack pointer address. Prior to the jump, the system is returned to the reset state.
The Jump address, function argument pointer, and stack pointer are the parameters
required for the Execute command.
Freescale Semiconductor, Inc.
Table 13-17. ReadMemoryResponse Parameters
Descripton
The status of the associated Read Memory command.
The number of bytes sent in the data phase.
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
NOTE
Chapter 13 Kinetis ROM Bootloader
HID reports
Table
193

Advertisement

Table of Contents
loading

Table of Contents