This Freescale tower board is based on the K64FN1M0VMD12 which is a 120MHz device from the performance and integration K64 family with Cortex-M4 core, Ethernet and USB. This K64 device has 1M Flash and 256k SRAM and is in an 144 pin MAPBGA package, whereby the K64 is also available in 100 or 144 pin LQFP or 121 pin XFBGA and its memory ranges from 512k...1M Flash with 256k SRAM. There is a 50MHz ocillator on the board for clocking the part and the board is often used in the tower kit together with the TWR-SER board which supplies the Ethernet interface. The K64 supports crystal-less FS USB device based on its internal 48MHz IRC48M oscillator and USB clock recovery.

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

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

TWR-K64F120M 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_TWR-K64F120M_KBOOT_HID_UART_MSD_SDHC.bin KBOOT compatible USB-HID loader with composite USB-MSD loading, as well as KBOOT UART loading on UART 1 at 57'600 Baud, or from an inserted SD card [23.9k] allowing applications to be loaded at link address 0x8080 (using Freescale's KBOOT USB connection, or KBOOT UART at 57'600 Baud or USB-MSD when the board appears as upload hard disk or as a file on the SD card). When operating, the orange LED blinks at 5Hz. To force the loader, reset the board with push button SW1 held down. To disable the watchdog, reset the board with push button SW3 held down.
    This can be loaded using the TWR-K64F120M's USB-MSD (OpenSDA) boot loader. Note that the loader limits application sizes to 130k - it can be built without limits using the µTasker project. The USB device operation uses the crystal-less USB mode.
    The serial interface used is connected to the OpenSDA's USB virtual COM port and so this and the following applications operate with the board alone and doesn't need it to be in the tower kit.
    When forcing the boot loader, hold the switch for about 5s; this ensures that the application is not started once the SD card check has completed.
  • uTaskerV1.4.8_BM_TWR-K64F120M_8080.bin TWR-K64F120M application with command-line menu on the UART 1 (via the OpenSDA's USB virtual COM port connection at 115'200 Baud) with various menu items. Output from the on-board accelerometer can be viewed in the I2C menu. The USB device is USB-MSD and so the board appears as a hard drive to the PC when the SD card is inserted into the socket on the board. Files can then be read and written to the SD card from the PC and also worked with via the DOS-like command line interface in the disk-interface sub-menu.
    The processor runs at 120MHz and the USB device makes use of the crystal-less mode. [61k].
    Linked to 0x8080, this binary image can be loaded with drag-and-drop onto the upload disk that appears when the serial loader is operating or using the KBOOT loader's USB or UART connections. When the application is running, the green LED blinks at 2.5Hz.
    Low power modes can be set in the application menu and wakeup from the low-leakage power mode (LLS) is achieved by pressing SW1, which temporarily allows the processor to run and respond with a message before automatically returning to the low-leakage power mode. Push button switch SW3 can be used to wake the processor back to its fully operational state. More details of this operation can be found in Low-Leakage Wakeup (LLWU) Support
  • software.bin The same TWR-K64F120M application that can be copied to the SD card and will be loaded to the procesor when the board starts (the name is required for it to be recognised - see the Serial Loader User's Guide for more details).
  • uTaskerV1.4.8_TWR-K64F120M.bin The same TWR-K64F120M application as stand-alone software that can be loaded using the TWR-K64F120M's USB-MSD (OpenSDA) boot loader [62.1k].

The Web server will first look for a start page on the SD card called "index.htm" in a director called "web". If the SD card is not inserted, or the directory/file not exist it will fall back to using files from the µFileSystem in internal Flash. The following set of internal web pages can be loaded to the board by executing the file "Copy_all.bat". This will open an FTP connection to the board (edit the IP address in the file if a different IP address is used) and automatically copy the list of files in "ftp.txt". Alternatively the copy can be performed manually with an FTP client. After loading, the web server will work with these files rather than showing a 404 error when there is no content.

USB-CDC with 6 UARTs

The following µTasker V1.4 application configures for a 6 USB-CDC interface composite device by enabling USB-CDC and setting the define for USB_CDC_COUNT to 6, the maximum number of available UARTs in the K64 on the TWR-K64F120M. The first interface (0) is connected to the command line shell (as is UART1 - the UART connected to the OpenSDA virtual COM port connection) but can be commanded to a USB-UART1 bridge in the USB menu. The other 5 USB-CDC interfaces perform dedicated USB-UART bridges as follows:
CDC Interface 1 - UART 0 (UART0_TX = PTA15, UART0_RX = PTA14)
CDC Interface 2 - UART 2 (UART2_TX = PTD3, UART2_RX = PTD2)
CDC Interface 3 - UART 3 (UART3_TX = PTE4, UART3_RX = PTE5)
CDC Interface 4 - UART 4 (UART4_TX = PTE24, UART4_RX = PTE25
CDC Interface 5 - UART 5 (UART5_TX = PTE8, UART5_RX = PTE9

Return to the Kinetis landing page

µTasker Kinetis TWR-K64F120M support. Copyright (c) 2004..2018 M.J.Butcher Consulting