Specifications

FC protocol, version 5, Kinetis
Developer’s Serial Bootloader, Rev. 13
Freescale Semiconductor 35
/** USER SETTINGS OF KINETIS MCU */
/** Kinetis ARM Cortex-M4 model */
//K10_50MHz K11_50MHz K12_50MHz K10_72MHz K10_100MHz K10_120MHz
//K20_50MHz K21_50MHz K22_50MHz K20_72MHz K20_100MHz K20_120MHz
//K30_72MHz K30_100MHz
//K40_72MHz K40_100MHz
//K50_72MHz K51_72MHz K50_100MHz
//K60_100MHz K60_120MHz
//K70_120MHz
/** Kinetis ARM Cortex-M0+ model */
//KL0_48MHz
//KL1_48MHz
//KL2_48MHz KL25_48MHz
#define KINETIS_MODEL K60_100MHz
/* in the case of using USB VIRTUAL SERIAL LINK you must activate No break TRIM CHECKBOX in
the master AN2295 PC Application */
/* the break impulse is replaced by using only 9 bits zero impulse */
// BREAK IMPULSE |START| |0| |0| |0| |0| |0| |0| |0| |0| |0| |0| STOP|
// ZERO IMPULSE |START| |0| |0| |0| |0| |0| |0| |0| |0| |0| |STOP|
#define BOOTLOADER_SHORT_TRIM 1
Kinetis flash memory can be defined in different sizes and supported sizes are 32, 64, 128,
256, 512 and 1024 KBytes.
#define KINETIS_FLASH FLASH_512K
Following define determines if the bootloader code will be protected or not (protection is
recommended). First section of the flash will be protected (protected_size = flash_size / 32).
protection enabled - 1 , protection disabled - 0
#define BOOTLOADER_FLASH_PROTECTION 1
Flash write access allows change mode of access to flash memory. Each model of MCU can support
different write access. Supported write access macros are defined as follows:
FLASH_WRITE_ACCESS_LONG - 32 Bytes
FLASH_WRITE_ACCESS_PHRASES - 64 Bytes
FLASH_WRITE_ACCESS_DOUBLE_PHRASES - 128 Bytes
#define FLASH_WRITE_ACCESS FLASH_WRITE_ACCESS_PHRASES
Address of base pointer to actual used UART module
#define BOOT_UART_MODULE UART2_BASE_PTR
Range of UART baudrates is between (9600 - 115200 Baud)
#define BOOT_UART_BAUD_RATE 115200
Address of peripheral base pointer for GPIO port (number of GPIO port shared with UART module)
#define BOOT_UART_GPIO_PORT PORTE_BASE_PTR
Setting of multiplexer for UART alternative of the pin
#define BOOT_PIN_UART_ALTERNATIVE 3
Setting of multiplexer for GPIO alternative of the pin
#define BOOT_PIN_GPIO_ALTERNATIVE 1