This Freedom board is based on the KE02Z64VQH2 which is a 20MHz device from the 5V robust KE family with Cortex-M0+ core. This KE02 device has 64k Flash and 4k SRAM and is in a 64 pin QFP package, whereby the KE02 is also available in 44 and 32 pin LQFP and its memory ranges from 16k .. 64k Flash and 2k .. 4k SRAM. There is a 10MHz crystal on the board for clocking the part.

Full details and documentation for this board can be obtained from the Freescale web site: FRDM-KE02Z

To configure the µTasker project for this board simply enable the define FRDM_KE02Z in the project's config.h file. The compiler needs to be set to build for Cortex m0+ (and not Cortex M4) and the linker script KE_64_4.ld should be selected [KE_64_4_BM.ld for downloadable version] {the linker script extension may vary for different compilers, whereby *.ld is valid for GCC}

FRDM-KE02Z Binaries

Here are some binary files that can be loaded to the board. These were built using the µTasker applications (serial loader and V1.4 application) and can be simply generated using the supported compilers/IDEs [these were built using GCC], built using different configuration options or modified to suit specific requirements or hardware derived from this board :

  • uTaskerSerialBoot_FRDM-KE02Z_KBOOT_UART.bin KBOOT compatible UART loader [6.8k] allowing applications to be loaded at link address 0x8000. When operating, the green LED blinks at 5Hz. To force the loader reset the board with header J9-15 connected to GND. To disable the watchdog reset the board with header J9-13 connected to GND. This can be loaded using the FRDM-KE02Z's USB-MSD boot loader. Note that the loader limits application sizes to 22k - it can be built without limits using the µTasker project.
  • uTaskerV1.4.8_BM_FRDM_KE02Z_8000.bin KE02 application with command-line menu on the virtual COM connection and accelerometer operation (activate output in I2C menu). Low power modes can be set in the application menu and the processor runs at 20MHz [21k]. Linked to 0x8000, it can be loaded using the KBOOT PC tool. When the application is running the green LED blinks at 2.5Hz. The application also allows EEPROM operation as details in KE02 EEPROM Interface
  • uTaskerV1.4.8_FRDM_KE02Z.bin The same KE02 application as stand-alone software that can be loaded using the FRDM-KE02Z's USB-MSD boot loader [22k].


This application shows the FRDM-KE02Z driving a 2 x 16 character LCD in 4-bit mode, connected on the following ports:

  • LCD 4-bit data bus - PTA3, PTA2, PTA1 and PTA0
  • LCD RS control - PTB0
  • LCD_WR - PTB1
  • LCD_EN - PTB2
  • LCD_Backlight - PTB3

To add the LCD operation the define SUPPORT_LCD is enabled with the options #define LCD_LINES 2 and #define LCD_CHARACTERS 16, whereby a range of 1 x 8 to 4 x 40 is supported. The simulation of this configuration is shown in the screen shot below and an executable is provided - this requires no installation and can be started by extracting and simply executing the file uTaskerV1.4.8_FRDM-KE02Z_LCD.exe. It is worth noting that the simulator adapts itself to the chosen display and optionally supports Cyrillic fonts. For more information about using a character LCD see the LCD User's Guide.

FRDM-KE02Z and I2C EEPROM (AT24C32..M24256 etc.)

This allows the FRDM-KE02Z to be connected to an AT24C32 EEPROM (or others that are compatible) on its ports PTA2 (I2C0_SDA) and PTA3 (I2C0_SCL) and the EEPROM operations tested in the I2C menu on its command line interface (115'200 Baud on the OpenSDA VCOM interface):

    I2C menu
up           go to main menu
wr           write [add] [value] {rep}
rd           read  [add] [no. of bytes]
srd          simple read [no. of bytes]
rdq          read  [add] [no. of bytes] + wr
help         Display menu specific help
quit         Leave command mode

The EEPROM is addressed for reads on 0xaf and for writes on 0xae (this requires the EEPROM's A2, A1 and A0 inputs to be connected to '1').

The project can be built for this using I2C_INTERFACE to enable the I2C driver, TEST_I2C and EEPROM_M24256 in i2C_tests.h as well as TEST_I2C_INTERFACE and I2C_TWO_BYTE_ADDRESS in the file debug.c.

Return to the Kinetis landing page

µTasker FRDM-KE02Z support. Copyright (c) 2004..2018 M.J.Butcher Consulting