Designing with ARM -based Microcontrollers

Similar documents
Kinetis KE1xF512 MCUs

Kinetis Brand Overview Kinetis K Series Overview New Kinetis Family Members Kinetis Feature Overview Enablement Questions

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

GET STARTED FAST WITH THIS COMPREHENSIVE ENABLEMENT OFFERING FOR LPC800 MCUS

Freescale i.mx Applications Processors based on ARM Technology Connected Multimedia

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

STM32 F0 Value Line. Entry-level MCUs

MQX -celeration RTOS-integrated solutions

Chapter 15 ARM Architecture, Programming and Development Tools

STM32F3. Cuauhtémoc Carbajal ITESM CEM 12/08/2013

STM32 Cortex-M3 STM32F STM32L STM32W

2-bit ARM Cortex TM -M3 based Microcontroller FM3 Family MB9A130 Series

ARM Cortex core microcontrollers 3. Cortex-M0, M4, M7

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

Kinetis SDK v Release Notes for KV5x Derivatives

TWR-K60F120M Quick Start Guide

TWR-KL43Z48M Quick Start Guide

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

Kinetis SDK v Release Notes for the MK21DA5 and MKW24D5 Devices

THE LPC84X MCU FAMILY A MULTI-TESTER TOOL OFFERING FEATURES FOR YOUR NEXT IOT DESIGN

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

Kinetis KL2x Ultra-Low-Power MCUs with USB

TWR-KM34Z50MV3 Quick Start Guide

Quick Start Guide. TWR-K60D100M Low-Power MCU with USB, Ethernet and Encryption TOWER SYSTEM

Programming in the MAXQ environment

Freescale Kinetis Software Development Kit Release Notes

Freescale Embedded Solutions Based on ARM Technology

Renesas Synergy MCUs Build a Foundation for Groundbreaking Integrated Embedded Platform Development

TWR-KL28Z User s Guide

Jintao Zeng. Asia Pacific Marketing Manager

TWR-K21F120MA Quick Start Guide

Develop Made For ipod (MFi) Accessories

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

突破 8-/16-/32- 位和 DSP 界限的 ARM MCU 解决方案

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

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

Energy-Efficient Solutions: Kinetis L Series MCUs

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0

TWR-K70F120M Quick Start Guide

FRDM-KL03Z User s Guide

RM3 - Cortex-M4 / Cortex-M4F implementation

ELC4438: Embedded System Design ARM Embedded Processor

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

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

Designer Resource. Accelerate. Simplify. Issue 5, Version 2 November Beyond Bits. Next-Generation Microcontrollers I N T R O D U C I N G

Quick Start Guide TWR-56F8400. The Ultimate Solution in Performance and Precision for Energy-Efficient Innovation TOWER SYSTEM

University Program Advance Material

Freedom FRDM-KV31F Development Platform User s Guide

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

FRDM-K20D50M User s Manual FRDM-K20D50M-UM Rev. 1.2

)8-,768'HY.LW 2YHUYLHZ. )XMLWVX0LNURHOHNWURQLN*PE+ Am Siebenstein Dreieich-Buchschlag, Germany

Welcome to this Renesas Interactive course which covers migration from the the V850 Jx3 series of 32bit MCUs to the Jx4 Series.

KL03 Product Brief Supports all KL03 devices

NXP Unveils Its First ARM Cortex -M4 Based Controller Family

An unrivalled feature-set and unprecedented integration

Kinetis Entry-level solutions. freescale.com/kinetis

mbed Hello World! Introduction to mbed

TWR-K53N512 Quick Start Guide

Kinetis EA Ultra-Reliable Microcontrollers. Automotive and Industrial Applications

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

TWR-KE18F User's Guide

EMBEDDED SYSTEMS WITH ROBOTICS AND SENSORS USING ERLANG

STM8L and STM32 L1 series. Ultra-low-power platform

New STM32 F7 Series. World s 1 st to market, ARM Cortex -M7 based 32-bit MCU

Software Design Challenges for heterogenic SOC's

Trends in Prototyping Systems. ni logic Pvt. Ltd., Pune, India

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

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

32-bit. 16-bit. 8-bit. Giving customers an ideal solution regardless of architecture preference. Kinetis based on ARM Cortex -M4 core

STM32F429 Overview. Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015

Leading Performance - Low Power - Scalability - Industrial-grade reliability & temp

RENESAS SYNERGY PLATFORM

Denis Cabrol. Kinetis Global Marketing Manager

Converting Firmware Projects to CoIde and IAR Embedded Workbench for ARM

FUNCTIONAL SAFETY FOR INDUSTRIAL AUTOMATION

IAR EWARM Quick Start for. Holtek s HT32 Series Microcontrollers

BASICS OF THE RENESAS SYNERGY PLATFORM

ID 730L: Getting Started with Multimedia Programming on Linux on SH7724

New STM32WB Series MCU with Built-in BLE 5 and IEEE

Introducing STM32 L0x Series. April

IAR Embedded Workbench for 8051 Version 7.30A

Getting Started with Kinetis SDK (KSDK) v.1.3

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, Energy Efficient Solutions logo, Kinetis, mobilegt, PowerQUICC,

RM4 - Cortex-M7 implementation

Development Tools. 8-Bit Development Tools. Development Tools. AVR Development Tools

Getting Started with Kinetis SDK (KSDK) v.1.2

STM32G0 MCU Series Efficiency at its Best

TWR-K21D50M Tower Module

Create Low-Power Applications with MQX and MQX Lite RTOS

SOMNIUM DRT Benchmarks Whitepaper DRT v3.4 release : August 2016

RZ Embedded Microprocessors

3 2-bit ARM Cortex TM -M3 based

The course provides all necessary theoretical and practical know-how for start developing platforms based on STM32L4 family.

AT-501 Cortex-A5 System On Module Product Brief

TWR-K80F150M Quick Start Guide

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

FRDM-KE02Z User s Manual

Cortex-M Processors and the Internet of Things (IoT)

TWR-KV58F220M Tower Module User's Guide

Transcription:

Speakers: Designing with ARM -based Microcontrollers Danny Basler Microcontroller Product Marketer, Freescale Semiconductor Lotta Frimanson Product manager for IAR Embedded Workbench and the IAR RTOS partner program Moderator: Warren Webb, OpenSystems Media,

Designing with ARM -based Microcontrollers 15 December 2010 1

Where can I find an ARM-based MCU family that offers: MCU ease-of-use + DSP performance EEPROM (on-chip) High precision analog Ultra low power Kinetis Microcontrollers Design Potential. Realized. Lots of performance, memory, peripheral, and package options Comprehensive run time software and development tool support from one or two vendors 2

Design need: MCU ease-of-use + DSP performance Backwards compatible with ARM Cortex -M3 New features Single cycle MAC (Up to 32 x 32 + 64 -> 64) DSP extensions Single Precision Floating Point Unit ARM Cortex -M4 Processor Microarchitecture Freescale IP and Innovation On-chip cache for instructions and data Cross-Bar Switch for concurrent multi-master/slave accessing On-chip DMA for CPU off-load Low-leakage Wake-up Unit adds flexibility for low power operation Dotted boxes denote optional blocks Architected for Digital Signal Processing Motor Control - advanced algorithms, longer lifespan, power efficiency Automation - high calculation and algorithm bandwidth at a low cost Power management designed for low/battery powered systems Audio and Video 5x performance improvement over software, making batteries last longer 3

FlexNVM Firmware Co-processor FlexRAM EEPROM: No external EEPROMs Reduced system cost No system resource impact System performance maintained No complex coding schemes Configurable & high endurance Up to 10 Million w/e cycles High performance Fast write time = ~100 usec Erase+write = 1.5mSec Use cases Critical data retention (power loss) Frequently updated data Design need: EEPROM (on-chip) User Configurable As Main Program Memory System SRAM Kinetis: FlexMemory Program or Data Flash: Flexibility Space for future expansion needs Contiguous with main program Flash Efficient Read-while-write with the main program Flash Use cases Program Flash: bootloader code space Data Flash: large data tables EEPROM FlexMemory Or a combination of both Program/Data Flash 4

Design need: High precision analog Kinetis: Mixed Signal (Analog) 16-bit ADC (All Kinetis families) Fast, accurate signal conditioning Configurable resolution, sample time, speed and power (8/10/12/16-bit) 12-bit DAC (All Kinetis families) Analog signal generation for audio applications High Speed Comparator (All Kinetis families) Fast, accurate motor over-current protection Programmable Gain Amplifier (All Kinetis families) Analog Voltage Reference (All Kinetis families) x64 gain for small amplitude signal boost Accurate on-chip Vref eliminates need for external Vref - reduced system cost 5

Design need: Ultra low power Kinetis: Ultra low power 10 Flexible low power modes (All Kinetis families) Customise power usage to application requirements 90nm Process Technology (All Kinetis families) 1/3 dynamic power reduction 1.71-3.6V flash prog. & analog peripheral operation more battery life Low Leakage Wake-up Unit (All Kinetis families) Ultra-fast Wake-up (All Kinetis families) Clock & Power Gating (All Kinetis families) Wake-up monitor for all low leakage stop modes - up to 8 internal modules and 16 pins as wake-up sources Quick wake-up from reduced power mode, process data, return to sleep state Unused clocks & modules shut down reducing leakage currents 6

Design need: Ultra low power Kinetis: Power Modes Typical Power Modes in an embedded system Run Cortex M4 Power Modes Run Kinetis Extended Power Modes Run VLPR Recovery Time - - Typical Idd Range Starting @ <200uA/MHz Starting @ <200uA/MHz Wait Sleep Wait VLPW - 4us Stop DeepSleep Stop VLPS 4us 4us Freescale Adds Low Leakage Wake-up Unit Enables complete shut-down of core logic, including WIC, further reducing leakage currents in all low power modes LLS VLLS3 4us 35us 1.2uA - 7uA 1uA - 5uA Supports 16 external input pins and 8 internal modules as wakeup sources VLLS2 35us 750nA - 2uA Wakeup inputs are activated in LLS or VLLS modes VLLS1 100us+EE restore 500nA 1.5uA 7

Design need: Lots of performance, memory, peripheral, and package options Kinetis Product Families Sampling now (144 MAPBGA) Sampling Q2 2011 (144 MAPBGA) Sampling Q4 2011 (256 MAPBGA) K70 Family 512KB-1MB, 196-256pin K60 Family 256KB-1MB, 100-256pin K50 Family 128-512KB, 64-144pin K40 Family 64-512KB, 64-144pin K30 Family 64-512KB, 64-144pin K20 Family 32KB-1MB, 32-144pin K10 Family 32KB-1MB, 32-144pin Common System IP 32-bit ARM Cortex-M4 Core w/ DSP Instructions Next Generation Flash Memory High Reliability, Fast Access FlexMemory w/ EEPROM capability SRAM Memory Protection Unit Low Voltage, Low Power Multiple Operating Modes, Clock Gating (1.71V-3.6V with 5V tolerant I/O) DMA Common Analog IP 16-bit ADC Programmable Gain Amplifiers 12-bit DAC High-speed Comparators Low-power Touch Sensing Common Digital IP CRC I 2 C SAI (I 2 S) UART/SPI Programmable Delay Block External Bus Interface Motor Control Timers esdhc RTC Development Tools Bundled IDE w/ Processor Expert Bundled OS USB, TCP/IP, Security Modular Tower H/ware Development System Application Software Stacks, Peripheral Drivers & App. Libraries (Motor Control, HMI, USB) Broad 3rd party ecosystem -40 to 105C 8

Design need: Comprehensive run-time software and development tool support from one or two vendors Kinetis Tower System: Reusable, Modular Development Platform www.freescale.com/tower Part Number Contents Price (SRP) TWR-K40X256 TWR-K40X256-KIT TWR-K40X256 module TWRPI-SLCD daughter card TWR-K40X256 module TWRPI-SLCD daughter card TWR-ELEV module TWR-SER module $69 $139 TWR-K60N512 TWR-K60N512 module $69 TWR-K60N512-KIT TWR-K60N512 module TWR-ELEV module TWR-SER module $139 Contents: 30 Day Evaluation version of IAR Embedded Workbench Freescale MQX RTOS OSJTAG Debug circuitry Low power touch sensing Plug in socket for expansion: Sensors, Radio, Adaptor etc SD Card And more Full compatible with all Tower peripheral modules IAR branded TWR kit will also be available and will include a J-Link lite TWR-SENSOR- PAK TWR-LCD TWR-WIFI-RS2101

Design need: Comprehensive run-time software and development tool support from one or two vendors Free Scalable, fully-featured and proven RTOS with 32-bit MCUs Full-featured and powerful BSPs incorporate tightly integrated RTOS, Middleware (USB, TCP/IP stacks), file system, and I/O drivers Designed for speed and size efficiency Bundled Freescale MQX RTOS www.freescale.com/mqx Software integration headache Market proven Available on Freescale processors for > 15 years Used in millions of products including Medical and Heavy Industrial applications Integrated MQX Solution Simple and scalable As small as ~10KB for smallest implementation, or scale up to support sophisticated networking and threading Intuitive API & modular architecture enables straightforward fine-tuning of features Production source code provided Similar to other pay-for software OS $95K of free Software 10 Stable Upgradable Easy to maintain

IAR Systems at a glance World-leading provider of software tools for embedded systems since 1983 Headquarter in Uppsala, Sweden Worldwide precense with offices in Sweden, USA (Sillicon Valley, Dallas, Boston), Brazil, Germany, UK, Belgium, France, Japan, and China Worlds largest customer base on the MCU market; 100,000+ installed licenses IAR newsletter reach today more than 100.000 embedded developers 11

The most widely used ARM development tool Today the most widely used tool chain for ARM-based MCU Only independent quality tool chain Present in key market segments Used by Freescale Kinetis lead customers Long partnership with Freescale on development tools for ColdFire, ColdFire+, ARM7, ARM9, S08, S12 and now Kinetis MCUs 12

IAR Systems Product portfolio IAR Embedded Workbench Complete integrated development environment Project mgr, editor, debugger, Ready made example projects RTOS awareness plugins IAR visualstate Tools for graphical designing, testing and implementing embedded applications based on state machines. 100% accurate with your code Good for verification and validation IAR KickStart Kit Evaluation kit Contains development/evaluatio n board, software development tools with sample projects and a hardware debug probe or emulator. Shipping 4000 per year Debug probes Integrates seamlessly into IAR Embedded Workbench and is fully plug-and-play compatible, and in addition very easy to use. 13

Cutting development time Powerful Project Manager. Getting started examples and board support packages. Comprehensive device support I/O-header files Debugger definition files 14

Building your application IAR Embedded Workbench Complete development environment Powerful project manager Highly optimized C and C++ compiler Compliant with CMSIS, EABI, C99, Multi-file compilation Integrated MISRA-C Checker (1998 and 2004) Intelligent linker Full support for Freescale Kinetis Optimizations Multiple levels of optimizations for code size and execution speed. Optimization level can be set on a per function basis. Global and core specific optimizations. Low power requirements Optimizing for low power is very much the same as optimizing for speed. 15

Need for floating point? Cortex-M4 Floating Point Unit (FPU) 32-bit floats (C float) conversion add, sub multiply-accumulate, divide square root Compiler support float: hardware or library double: library 16

DSP - interface to the non-binary world Motor control, audio, sensor signal conditioning, Cortex-M4: MCU + DSP = DSC (Digital Signal Controller) saturated operations MAC SIMD - SMLAD => Sum = Sum + (A x C) + (B x D) Extensive DSP library vector/matrix FIR/IIR filters convolution, correlation FFT/DCT PID control 17

How to program the flash? 32 KB 1 MB flash C-SPY debugger has built-in flash loader support. Specific flash loaders are provided for Kinetis device. Support for download of multiple images. 18

Debugging P&E micro OSJTAG Built-in on Kinetis Kxx evaluation boards Just connect USB cable to evaluation board J-Link & J-Link Ultra JTAG/SWD/SWO support low bandwidth trace real-time: function profiler, interrupt log, variable watch, non-intrusive printf Power debugging (J-Link Ultra) IAR J-Link lite kit variant 19

Cortex-M4: Debug & Trace System Cortex-M4 Core CPU I/F E ATB Trigger System Bus DWT E Trigger I Software Trace TPIU Bus Matrix 4 Watchpoints PC Sampler ATB ATB Trace Port Interface Unit Interrupt Trace Timestamp System Bus FPB 6 breakpoints AHB-AP IAR J-Link for ARM DAP Bus DP Standard JTAG 20-pin 0.1 connector SWO JTAG SWD 4-bit Trace Port USB IAR J-Trace for Cortex-M3 Cortex Debug + E 19-pin 0.05 connector ETB 20

Freescale Kinetis MCUs packed with trace sources I Low speed real-time trace port Event trace Interfaces with IAR J-Link E High speed real-time trace port Interfaces with IAR J-Trace for Cortex-M3 ETB High speed real-time trace to internal 2 kbyte buffer Interfaces with IAR J-Link Trace functionality in C-SPY Monitoring values of static variables Non-intrusive printf() Direct output via I stimulus ports Measuring execution time Interrupt graph Stack/heap overflow detection View the call stack graph Statistical function profiling 21

Finding difficult bugs Instruction trace (E) High bandwidth instruction trace data on a 4-bit high speed trace bus. Requires trace probe, for example the IAR J-Trace for Cortex-M. Full instruction trace Call hierarchy list Call stack visualization 22

Low power requirements Requirements on long battery life-time and minimized power consumption. Traditionally a design goal for hardware developers using multi-meter and oscilloscope. Power consumption is also dependent on how the hardware is used and controlled by software. Power debugging Connects power consumption to source code Allows optimizing software for minimized power consumption 23

Power debugging features Power samples are correlated to program counter and by that with the source code. The C-SPY debugger visualizes power consumption data both statically and dynamically in different views. Power profile graph in Timeline window Statistical power profiling in the Function Profiler window Identifies functions that consume most power in the application. Textual log of all power samples with timestamp and program counter in the Power log window. 24

Integrating RTOS and middleware IAR RTOS partner program CMX Express Logic FreeRTOS Micrium Micro Digital SMX MQX Quadros Sciopta SEGGER Wittenstein MQX Integration Port available for IAR Embedded Workbench RTOS awareness plug-in in C-SPY debugger Information and example projects in IAR Information Center 25

IAR Embedded Workbench versions for Kinetis MCUs IAR Embedded Workbench IAR Embedded Workbench Cortex-M version IAR Embedded Workbench Kickstart version IAR Embedded Workbench Evaluation version 26

Summary of IAR Systems offerings for Freescale Kinetis MCUs The most widely used C/C++ tool chain for ARM MCUs Support for Kinetis 10/20/30/40/60 Freescale MQX RTOS integration Advanced trace debug functionality Power debugging E and SWO trace support Project examples for the Freescale Tower system Professional technical support organization Availability: Now! Contact an IAR Systems sales office. Also available via Freescale Buy Direct 27

Kinetis + IAR The ARM-based MCU solution that offers: MCU ease-of-use + DSP performance ARM Cortex-M4 core powerful, efficient and sampling now EEPROM (on-chip) FlexMemory - fast, high endurance and user-configurable High precision analog 16-bit ADCs and a whole lot more Ultra low power Multiple power modes / wake-up options, and power-savvy technology & peripherals Lots of performance, memory, peripheral, and package options >200 devices offering 50-15MHz, 32KB-1MB, connectivity, HMI, security and external interface peripherals, and package options from 32pin to 256pin Comprehensive run-time software and development tool support from one or two vendors Free Freescale MQX RTOS, powerful & easy-to-use IAR tools and the Freescale Tower System for rapid prototyping Kinetis Microcontrollers Design Potential. Realized. 28

www.freescale.com/kinetis 29

Questions & Answers Speakers: Danny Basler Microcontroller Product Marketer, Freescale Semiconductor Lotta Frimanson Product manager for IAR Embedded Workbench and the IAR RTOS partner program Moderator: Warren Webb, OpenSystems Media

Thanks for joining us Event archive available at: http://ecast.opensystemsmedia.com/ E-mail us at: clong@opensystemsmedia.com www.embedded-computing.com