Freescale MQX RTOS TWR-K64F120M Release Notes

Similar documents
MQX RTOS Release Notes for Kinetis SDK v1.2.0 for KL33Z64 for FRDM-KL43Z Freescale Freedom Development Platform

MQX RTOS Release Notes for Kinetis SDK FRDM- KV10Z Freescale Freedom Development Platform

Kinetis SDK Release Notes for the TWR-K24F120M Tower System Module

Freescale MQX USB Stack for TWR-K24F120M GA User s Guide

Kinetis SDK v Release Notes for KV5x Derivatives

Release Notes. Freescale MQX for TWR-K21D50M. Freescale MQX RTOS for TWR-K21D50M PRODUCT VERSION: 1.0 PRODUCT:

Freescale Kinetis Software Development Kit Release Notes

Getting Started with Freescale MQX RTOS for Kinetis SDK and MDK-ARM Keil

Kinetis SDK v Release Notes for the MK21DA5 and MKW24D5 Devices

Keil uvision 4 Kinetis Support for Freescale MQX RTOS Release Notes

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

TWR-KV10Z32 Sample Code Guide for CodeWarrior Board configuration, software, and development tools

Freescale MQX RTOS TWR-MCF51JF Patch. Release Notes

HVP-KV10Z32 User s Guide

Kinetis Bootloader v1.2.0 Release Notes

Getting Started with Freescale MQX RTOS for Kinetis SDK and Kinetis Design Studio IDE

HVP-KV31F120M User s Guide

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

Getting Started with MQX RTOS for Kinetis SDK

Emulating Dual SPI Using FlexIO

OpenSDA on TWR-KW2x. User s Guide Rev 1.1

Getting Started with Freescale MQX RTOS for Kinetis SDK and ARM GCC

Freescale MQX RTOS for Kinetis SDK Release Notes version beta

TWR-LS1021A Getting Started

Integrate TWR-EPD Software with MQX RTOS Based on the TWR-K21F120M Platform

Component validity and internal error checking functionality to ensure reliable operation

FRDM-K64F Board Errata

Getting Started with MCUXpresso SDK CMSIS Packs

TWR-LS1021A Getting Started

Quick Start Guide TRK-KEA. Kinetis EA Series MCUs for Automotive Electronics Applications. StarterTRAK

Adding a run control interface into an existing CodeWarrior for MCU v10.x project

FRDM-KE02Z User s Manual

FRDM-KL03Z User s Guide

Kinetis KE1xF512 MCUs

Freedom FRDM-KV31F Development Platform User s Guide

Kinetis Bootloader Demo Application User's Guide

Quick Start Guide for TWR-S08MM128-KIT TOWER SYSTEM MC9S08MM128. The industry s most complete solution for portable medical applications

TWR-KE18F User's Guide

HVP-MC56F82748 User s Guide

WPR1500-LDO MP Receiver V2.1 Reference Design User s Guide

Load Position-Independent Code (PIC) on a Kinetis Platform Using the IAR EWARM Compiler

TWR-KM34Z50MV3 Quick Start Guide

NXP Semiconductors MCU Bootloader Demo Applications User's Guide

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

Three-Phase Power Meter Hardware Design Reference Manual

TWR-MCF54418 Patch for Freescale MQX RTOS 3.6.2

Quick Start Guide. TWR-KV10Z32 Development Kit for Kinetis KV1x Family TOWER SYSTEM

Getting Started with FreeRTOS BSP for i.mx 7Dual

Quick Start Guide for the Freescale Freedom Development Platform FRDM-KL43Z

Freescale MKW40Z IEEE Software Quick Start Guide

Emulating I2S bus on KE06

Watt Saver Software Component (WSC)

MCU Bootloader Release Notes

Working around ERR7026 according to application needs

Quick Start Guide. TWR-VF65GS10 For Vybrid Controller Solutions Based on ARM Cortex -A5 and Cortex-M4 Processors with the DS-5 Toolchain TOWER SYSTEM

Collecting Linux Trace without using CodeWarrior

Kinetis USB-KW41Z Wireless Protocol Sniffer Quick Start Guide

Processor Expert Software for i.mx Processors Version 1.0

Emulating I2C Bus Master by using FlexIO

TWR-K60F120M Quick Start Guide

Building U-Boot in CodeWarrior ARMv8

P1010RDB-PB Quick Start Guide

Offline Flash Programmer for Kinetis K- and L-series MCUs

Quick Start Guide for FRDM-KL05Z

How to setup pre-build steps in CodeWarrior for Microcontrollers v10.x

TWR-KL43Z48M Quick Start Guide

FRDM-KE04Z User s Guide User Guide

TWR-K21F120MA Quick Start Guide

Kinetis KV5x Real-Time Control MCUs with Ethernet Up to 1 MB Flash and 256 KB SRAM

Kinetis Bootloader to Update Multiple Devices in a Field Bus Network

Quick Start Guide for FRDM-KL46Z Rev 1

DDR Validation Tool Getting Started Guide

FRDM-KL26Z User s Guide

Quick Start Guide for FRDM-FXS-MULTI-B

TWR-KL28Z User s Guide

Quick Start Guide for TWR-MCF5225X TOWER SYSTEM. MCF5225X ColdFire connectivity MCUs

Lab Tutorial for TWR-S08MM128-KIT TOWER SYSTEM LAB MC9S08MM128. Electrocardiogram (EKG) with Freescale USB stack

TWR-K70F120M Quick Start Guide

Freedom FRDM-MC-LVBLDC Development Platform User s Guide

Getting Started with the MCU Flashloader

Getting Started with Qorivva Fast

TWR-K80F150M Quick Start Guide

Component Development Environment Getting Started Guide

Quick Start Guide for FRDM-KL46Z Rev 1

Quick Start Guide TWR-PXR bit Power Architecture MCU for High-Performance Real-Time Applications TOWER SYSTEM

Using an External GCC Toolchain with CodeWarrior for Power Architecture

CodeWarrior Development Studio for StarCore 3900FP DSP v SP3 Release Notes

Quick Start Guide TWR-S08PT60. 5-Volt S08P Family of 8-bit MCUs for Industrial and Appliance Applications TOWER SYSTEM

Sensorless BLDC Motor Control Based on MC9S08PT60 Tower Board User Guide

Installing Service Pack Updater Archive for CodeWarrior Tools (Windows and Linux) Quick Start

Understanding S08P Internal Clock Source

Kinetis KL1x General-Purpose Ultra-Low- Power MCUs Up to 256 KB Flash and 32 KB SRAM

General C Functions for the etpu Covers the MCF523x, MPC5500, MPC5600, MPC5700, MPX40 and all etpu-equipped Devices

Quick Start Guide. TWR-K70F120M High-Performance MCUs with Graphics LCD, Connectivity and Security TOWER SYSTEM

Kinetis KM3x Metrology MCUs based on ARM Cortex -M0+ Core

Kinetis Updater User's Guide

M52259DEMOKIT One-stop-shop connectivity MCU with USB, Ethernet and CAN, featuring Freescale MQX software solutions

TWR-KV58F220M Tower Module User's Guide

MCUXpresso SDK USB Stack User s Guide

Mask Set Errata for Mask 2N27B

Transcription:

Freescale Semiconductor Document Number: MQXTWRK64RN Release Notes Rev. 2, 03/2014 Freescale MQX RTOS 4.1.0 TWR-K64F120M Release Notes 1 Introduction These are the Release Notes for the K64F120M standalone package for Freescale MQX RTOS 4.1.0. Freescale K64F120M belongs to the Kinetis K series processor family of 32-bit microcontrollers. The software is built based on MQX version 4.1.0. It includes the full set of RTOS services and a standard set of peripheral drivers. Prior installation of MQX 4.1.0 is not required to install this package. For more information, see Freescale MQX RTOS 4.1.0 Release Notes (document MQXRN) and Getting Started with Freescale MQX RTOS (document MQXGSRTOS). Contents 1 Introduction 1 2 Features 3 3 Installation instructions 6 4 Other notes 7 5 Known issues 9 Freescale Semiconductor, Inc., 2014. All rights reserved.

1.1 Development tools The TWR-K64F120M release was tested with the following development tools: IAR Embedded Workbench for ARM Version 6.50.5 o Support available for Kinetis ARM Cortex -M4 devices o See build projects in iar subdirectories CodeWarrior Development Studio for Microcontrollers version 10.5 (MCU build 130916) o Patch support available for Kinetis K64 device o See build projects in cw10gcc subdirectories ARM-MDK - Keil µvision Version 5.0 o Support available for Kinetis ARM Cortex-M4 devices o See build projects in uv4 subdirectories GNU Tools for ARM Embedded Processors version 4.7-2013-q3 o Support available for Kinetis and Vybrid devices o Makefile build option: TOOL=gcc_arm Makefile support (mingw32-make version 3.8.2) o Library makefiles are located in <MQX_library_dir>/build/<board>/make o Application makefiles are located in <example_dir>/build/make/<board> For instructions on setting up development tools, including installing processor support patches, see Section 4 Other notes. 1.2 System requirements The system requirements are defined by the development tool requirements. There are no special host system requirements for the Freescale MQX RTOS distribution. The host operating systems supported by CodeWarrior v10.5 are: Microsoft Windows XP 32-bit and 64-bit (Professional Edition) Microsoft Windows 7 32-bit and 64-bit (Home Premium Edition and Professional Edition) Microsoft Windows 8 32-bit and 64-bit (Home Premium Edition and Professional Edition) 2 Freescale Semiconductor

1.3 Target requirements The TWR-K64F120M package was tested with the following hardware configurations: TWR-K64F120M System module Rev. B with a PK64FN1M0VMD12 processor TWR-SER serial System module Rev. C TWR-ELEV Primary and Secondary elevator System modules TWR-MEM Rev. B memory extension System module 2 Features 2.1 Key features This package provides support for the TWR-K64F120M tower system module and a standard set of features and example applications. This section describes the major changes and new features implemented in this release. Core clock: 120 MHz (High Speed Run mode, default) Bus clock: 60 MHz (High Speed Run mode, default) BSP Timer: SysTick Default console: ttyb (OpenSDA) The package supports these features: PSP support for the K64F120M Microcontroller BSP for the TWR-K64F120M tower system module Standard set of I/O drivers supporting the K64F120M peripherals including: o LWGPI/O driver o Serial interrupt and polled driver o DMI SPI driver o I2C interrupt and polled driver o ADC o LWADC o Flash Driver o RTC Driver Freescale Semiconductor 3

o PIT Timer o LPT Timer o SD card driver o SDHC o FlexCAN o SAI o ENET USB Host and Device drivers and stacks Example and demo applications demonstrating MQX, USB, RTCS, and MFS usage RTCS TCP/IP stack MFS file system Shell command line interface 2.2 Limitations This release does not support this feature: CodeWarrior v10 New project wizard 2.3 Example applications This package contains applications demonstrating kernel, peripheral, file system, TCP/IP networking, and USB functionality on the TWR-K64F120M Tower System kit. The applications can be found at the following locations: <install_dir>/mqx/examples: standard set of examples for kernel features and basic peripheral drivers <install_dir>/mfs/examples: example applications demonstrating the MFS file system features <install_dir>/usb/host/examples: examples demonstrating USB Host stack features and class drivers <install_dir>/usb/device/examples: examples demonstrating USB Device class implementations <install_dir>/demo: various demo applications showing more complex examples <install_dir>/rtcs/examples: examples demonstrating RTCS features 4 Freescale Semiconductor

2.4 Release contents This section provides an overview of the release content. Deliverable Location MQX PSP Source Code and Examples <install_dir>/mqx/... MQX PSP source code for Kinetis.../mqx/source/psp/cortex_m MQX PSP build projects.../mqx/build/<compiler>/psp_twrk64f120m / MQX example applications.../mqx/examples/... MQX BSP Source Code <install_dir>/mqx/... MQX BSP source code for TWR-K64F120M board.../mqx/source/bsp/twrk64f120m MQX BSP build projects../mqx/build/<compiler>/bsp_twrk64f120m / RTCS Source Code and Examples <install_dir>/rtcs/... RTCS source code.../rtcs/source RTCS build projects.../rtcs/build/<compiler>/rtcs_twrk64f120m RTCS example applications.../rtcs/examples USB Host Drivers Source Code and Examples <install_dir>/usb/host/... USB Host source code and class drivers.../usb/host/source HUB Class Driver.../usb/host/source/classes/hub Human Interface Device (HID) Class Driver.../usb/host/source/classes/hid Audio Class Driver.../usb/host/source/classes/audio Personal Healthcare Device Class (PHDC) Driver.../usb/host/source/classes/phdc Mass Storage (MSD) Class Driver.../usb/host/source/classes/msd CDC Class Driver.../usb/host/source/classes/cdc USB Host build projects.../usb/host/build/<compiler>/usbh_twrk64f120m USB Host example applications.../usb/host/examples USB Device Drivers Source Code and Examples <install_dir>/usb/device/... USB Device source code.../usb/device/source USB Device build projects.../usb/device/build/<compiler>/usbd_twrk64f120m USB Device example applications.../usb/device/examples Shell Library Source Code <install_dir>/shell/... Shell source code.../shell/source Shell build projects.../shell/build/<compiler>/shell_twrk64f120m PC Host Tools <install_dir>/tools TFS Make Utility /tools/mktfs.exe Check for Latest Version tool /tools/webchk.exe Documentation <install_dir>/doc User Guides and Reference Manuals for MQX /doc RTOS, RTCS, MFS, IO Drivers, USB, etc. Freescale Semiconductor 5

3 Installation instructions 3.1 Installation guide Run the TWR-K64F120M package installer and proceed according to instructions. This package can be used independently of the current MQX 4.1.0 folder. 3.1.1 Build procedure For build procedures, see Getting Started with Freescale MQX RTOS (document MQXGSRTOS). 3.1.2 Default jumper settings These are the default jumper settings for TWR-K64F120M standalone operation: J1, J16, J18, J19, J20, J31, J38 on position 1-2 J6, J7,J8, J22, J23, J24, J25, J26, J27, J28, J33, J31, J34, J35, J36 and J39 closed J32 open J29 on position 5-6 J10 and J15 on position 2-3 3.1.3 Important jumper settings For basic operations, ensure that the following jumper settings are applied: For USB Device mode, use onboard J17 Micro USB connector and jumpers set to default settings. For USB Host mode, use onboard J17 Micro USB connector and jumpers set to default settings. Connect the J2 (K20 DEBUG) Mini USB to the PC to enable power for the USB Host. For the SD card example: o TWR-K64F120M System module, place the resistor 4.7 K into R521. For the RAMDisk example: o TWR-SER System module, J5 5-6 open. For the USB port on TWR-SER: o Remove R63, R65 and place R522 and R523. o J19 change position to 2-3. 3.1.4 Board-specific build targets Internal Flash (Debug and Release): These targets enable building applications suitable for booting the system from the Internal Flash memory. After reset, the code is executed from the Internal Flash. 6 Freescale Semiconductor

4 Other notes 4.1 SEGGER J-Link The SEGGER J-Link V4.72a driver does not contain the K64F120M device. The following instructions describe how to implement a workaround solution. When debugging by the J-Link debugger, a dialog box is displayed and requires selecting an appropriate device. 1. Click Yes to select a device. Figure 1 J-Link V4.72a Device Selection dialog box Freescale Semiconductor 7

2. Select Cortex-M4, and then click OK. Figure 2 Selecting a device 4.2 IAR patch Because IAR version 6.50 does not support K64F120M, a patch is needed for this device. Decompress the patch "Patch_for_IAR_to_include_K24,_K63,_and_K64.zip" located at <install_dir>\tools\iar_extensions to a temporary folder. Copy the three overwritten folders inside the patch "config", "inc", "src" to the arm folder of the IAR default installation. For example: C:\Program Files\IAR Systems\Embedded Workbench 6.5\arm If required, create a backup copy of the current files. 4.3 Keil (Uv4) patch Because the Keil version 5.00 does not support the K64F120M device, a patch is required for this device. 1. Install the patch by following the installer instructions: <install_dir>\tools\keil_extensions\uvision4\mdk-mrm_addon_k24f_k63f_k64f.exe 2. Add the K64FN1M0M12 device to the Keil P&E debugger. a. Back up ngs_devices_arm.ini in the Keil installation folder. b. Copy these files to Keil\ARM\PEMicro\P&E\. mqx_patch\tools\keil_extensions\uvision4\ngs_devices_arm.ini 8 Freescale Semiconductor

mqx_patch\tools\keil_extensions\uvision4\freescale_k64fn1m0m12_1x32x256k_pflash.arp 3. Configure the operation of the P&E Debugger in Keil (UV4) for K64F120M. a. Open the project. b. Click Target Options. c. In the Debug Use dialog box, click Settings. d. In the Connection port and Interface Type Interface dialog box, select OpenSDA Embedded Tower Debug - USB Port. e. In the Target CPU Information CPU dialog box, select K64FN1M0M12. f. In the BDM Communication Speed dialog box, select Use SWD reduced pin protocol for communications. g. Click OK. 4.4 CodeWarrior v10.5 GCC patch Install all the available updates for CodeWarrior v10.5 through the update site. Install the CW MCU v10.5 Kinetis K24_K63_K64_120MHz Service Pack (Win) service pack for K64 devices available at the Freescale website. Search for CW-MCU10: CodeWarrior for MCUs on freescale.com. 4.5 CodeWarrior v10.5 new project wizard and Processor Expert The new project wizard and Processor Expert for K64F120M are not supported in this package. 5 Known issues USB Host CDC Serial: USB does not work after the CDC device is re-attached. Because the DMA TX channel and DMA RX channel for SPI1 and SPI2 are the same, SPI1 and SPI2 do not use the DMA driver. Because the UART5 TX and RX conflict with LED3 and LED4, some demos using LED3 and LED4 do not run properly, such as HVAC, HVAC_Error, and Web_hvac examples. The workaround uses ttyb instead of ttyf and connects A76 (UART3_RX) with RXD_SEL in TWR-SER and A77 (UART3_TX) with TX_SEL in TWR-SER. FlexBus shares pins with the SAI, CAN, and TTYB modules. To run the demo by using FlexBus (Ramdisk), disable the SAI module in user_config.h, change the IO port to TTYF, and remove jumper J5 (CAN_SEL) from TWR-SER. Because the DMA TX channel and the DMA RX channel of SCI4 and SCI5 are the same, SCI4 and SCI5 do not use a DMA driver. Freescale Semiconductor 9

The CW MCU v10.5 Kinetis K24_K63_K64_120MHz Service Pack (Win) service pack also contains the Processor Expert support for the Kinetis K64 devices. However, the generated K64 Processor Expert files are not consistent with the way these files are generated for other Kinetis platforms supported in the MQX 4.1.0 release. To get the MQX pe_demo working, perform the following steps when the TWR-K64F BSP project is built: 1. Replace "${ProcessorExpertPath}/lib/Kinetis/pdd_100331/inc" by "${ProcessorExpertPath}/lib/Kinetis/pdd_100308/inc" in respective project settings. Because of the 1.0.2 version of the "CW MCU v10.5 K24F_K63F_K64F Service Pack", it is necessary to change the path to the correct Processor Expert PDD headers in the BSP project as well as in all the application projects (including the pe_demo application). 2. When the Processor Expert files are generated (BSP build project), in the Properties for Vectors.c dialog box, select Exclude resource from build to disable the generated Vectors.c file. Figure 3 Properties for Vectors.c dialog box 3. Manually change the C-code of the CPU_Init.c/.h files. Rename the _init_hardware() function to _pe_initialize_hardware() and the delete the configuration of the SCB_VTOR register from this function in CPU_Init.c. /* ** =================================================================== ** Method : init_hardware (component MK64FN1M0LQ12) ** ** Description : 10 Freescale Semiconductor

** This method is called from the _startup() function and ** provides necessary system initialization such as PLL, and ** external bus. ** This method is internal. It is used by Processor Expert only. ** =================================================================== */ #if defined( IAR_SYSTEMS_ICC ) int low_level_init() #elif defined( CWCC ) defined( GNUC ) defined( CC_ARM) void pe_initialize_hardware() #endif { /* Interrupt vector placement initialization */ #if defined( IAR_SYSTEMS_ICC ) SCB_VTOR = (uint32_t)(& vector_table); /* Set the interrupt vector table position */ #elif defined( CWCC ) defined( GNUC ) defined( CC_ARM) SCB_VTOR = (uint32_t)(& vect_table); /* Set the interrupt vector table position */ #endif /* Disable the WDOG module */ #if STARTUP_WDOG WDOG_UNLOCK = (uint16_t)startup_wdog_key_1; /* Key 1 */ WDOG_UNLOCK = (uint16_t)startup_wdog_key_2; /* Key 2 */ WDOG_STCTRLH = (uint16_t)startup_wdog_stctrlh_value; /* Disable WDOG */ #endif /* STARTUP_WDOG */ Freescale Semiconductor 11

How to Reach Us: Home Page: www.freescale.com Web Support: www.freescale.com/support Information in this document is provided solely to enable system and software implementers to use Freescale products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based on the information in this document. Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters that may be provided in Freescale data sheets and/or specifications can and do vary in different applications, and actual performance may vary over time. All operating parameters, including typicals, must be validated for each customer application by customer s technical experts. Freescale does not convey any license under its patent rights nor the rights of others. Freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address: freescale.com/salestermsandconditions. Freescale, Kinetis, and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are the property of their respective owners. The ARM Powered Logo is a trademark of ARM Limited. 2014 Freescale Semiconductor, Inc. Document Number: MQXTWRK64RN Rev. 2 03/2014