![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 176](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847176.webp)
13.3.2 The Kinetis Bootloader Configuration Area (BCA)
The Kinetis Bootloader reads data from the Bootloader Configuration Area (BCA) to
configure various features of the bootloader. The BCA resides in flash memory at offset
0x3C0, and provides all of the parameters needed to configure the Kinetis Bootloader
operation. For uninitialized flash, the Kinetis Bootloader uses a predefined default
configuration. A host application can use the Kinetis Bootloader to program the BCA for
use during subsequent initializations of the bootloader.
Table 13-3. Configuration Fields for the Kinetis Bootloader
Offset
Size (bytes)
Configuration Field
Description
0x00 - 0x03
4
tag
Magic number to verify bootloader
configuration is valid. Must be set to
'kcfg'.
0x04 - 0x07
4
-
Reserved in KLx3
0x08 - 0x0B
4
-
Reserved in KLx3
0x0C - 0x0F
4
-
Reserved in KLx3
0x10
1
enabledPeripherals
Bitfield of peripherals to enable.
bit 0 LPUART
bit 1 I2C
bit 2 SPI
bit 4 USB
Kinetis bootloader will enable the
peripheral if corresponding bit is set to
1.
0x11
1
i2cSlaveAddress
If not 0xFF, used as the 7-bit I2C
slave address. If 0xFF, defaults to
0x10 for I2C slave address
0x12 - 0x13
2
peripheralDetectionTimeout
Timeout in milliseconds for active
peripheral detection. If 0xFFFF,
defaults to 5 seconds.
0x14 - 0x15
2
usbVid
Sets the USB Vendor ID reported by
the device during enumeration. If
0xFFFF, it defaults to 0x15A2.
0x16 - 0x17
2
usbPid
Sets the USB Product ID reported by
the device during enumeration.
0x18 - 0x1B
4
usbStringsPointer
Sets the USB Strings reported by the
device during enumeration. Default
string values are described in the
0x1C
1
clockFlags
See
, clockFlags
Configuration Field
0x1D
1
clockDivider
Inverted value of the divider to use for
core and bus clocks when in high
speed mode
Table continues on the next page...
Functional Description
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
176
Freescale Semiconductor, Inc.