This Freescale tower board is based on the K40X256VMD100 which is a 100MHz device from the performance and integration K40 family with Cortex-M4 core, USB and SLCD (segment LCD). This K40 device has 256k Flash and 64k SRAM and is in a 144 pin MAPBGA, whereby it is also available in 80, 100 and 121 pin packages. There is an 8MHz crystal on the board for clocking the part.

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

To configure the µTasker project for this board simply enable the define TWR_K40X256 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_256_64.ld should be selected [K_256_64_BM.ld for downloadable version] {the linker script extension may vary for different compilers, whereby *.ld is valid for GCC}

TWR-K40X256 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. The TWR-K40X256 should be built into a tower kit with TWR-SER for USB operation :

  • uTaskerSerialBoot_TWR-K40X256_KBOOT_HID_UART_MSD_SDHC.bin KBOOT compatible USB-HID loader with composite USB-MSD loading, as well as KBOOT UART loading on UART 0 (available on OSJTAG virtual COM) at 57'600 Baud, or from an inserted SD card [24.5k] 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 SW4 held down. To disable the watchdog, reset the board with push button SW3 held down.
    This can be loaded using CodeWarrior's Flash utility via the TWR-K40X256's OSJTAG debug interface. Note that the loader limits application sizes to 130k - it can be built without limits using the µTasker project. When forcing the boot loader, hold the switch for about 4s; this ensures that the application is not started once the SD card check has completed.
  • uTaskerV1.4.8_BM_TWR-K40X256_8080.bin TWR-K40X256 application with command-line menu on the UART 0 (OSJTAG virtual COM) 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.
    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 orange LED blinks at 2.5Hz.
    Low power modes can be set in the application menu and the processor runs at 96MHz, to allow USB operation [56.1k].
  • software.bin The same TWR-K40X256 application that can be copied to the SD card and will be loaded to the processor when the board starts [56.1k] (the name is required for it to be recognised - see the Serial Loader User's Guide for more details).
  • uTaskerV1.4.8_TWR-K40X256.bin The same TWR-K40X256 application as stand-alone software that can be loaded using CodeWarrior's Flash utility via the TWR-K40X256's OSJTAG debug interface [57.1k].

Return to the Kinetis landing page

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