TM Freescale, the Freescale logo, AltiVec, C-5, CodeTest, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions Logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SmartMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Rapid Prototyping Solutions Module 1: Freescale Tower System
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Agenda ► Introduction to the Freescale Tower System ► Freescale MQX™ Software Solutions ► Continuation with MQX ► CodeWarrior Development Studio v 10.0 ► Demonstration Labs ► Additional Resources ► Review
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Advanced Embedded Development with Rapid Evaluation and Prototyping Tower System += Time to MarketDevelopment and Runtime Software
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Introducing the Freescale Tower System The Freescale Tower System is a modular development platform for 8-, 16- and 32-bit processors that enables advanced development through rapid evaluation and prototyping. Featuring multiple development boards or modules, the Tower System provides designers with building blocks for entry-level to advanced application development. Tower System. Elevate your design to the next level.
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Tower System Components 1. Processor Module 2. Peripheral Modules 3. Elevator Boards Tower System
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Functional Elevator: Common serial and expansion bus signals Two 2x80 connectors on backside for easy signal access and side-mounting board (e.g. LCD module) Power regulation circuitry Standardized signal assignments (e.g. UART, SPI, Timers, External Bus, I2C, CAN, GPIO, Ethernet, USB, etc.) The Tower System Processor Module: Tower controller board Works stand-alone or in Tower system Features new Open Source BDM (OSBDM) for easy programming and debugging via miniB USB cable Dummy Elevator: Future expansion for more serial interfaces and more complex MPU interfaces (e.g. RGB LCD, segment LCD, audio, enhanced Timer, etc.) “Dummy” shown with only GND connectivity. Used for structural integrity Peripheral Module: Standard peripheral boards compatible with all controller boards (e.g. Serial, Memory, etc.) Size: The Tower is approx. 3.5” H x 3.5” W x 3.5” D when fully assembled Board Connectors: Four card-edge connectors Uses PCI Express connectors (x16, 90mm/3.5” long, 164 pins)
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Elevate your design to the next level with the Freescale Tower System. Our modular development platform saves you months of development time now and in the future through rapid prototyping and tool re-use. Modular and expandable Why Tower System? ► Developing with the Tower System is easy with modular, reconfigurable hardware. Saves months of development time ► Open source design files and standard, reusable modules reduce low- level design—giving you more time to focus on differentiated solutions. Low Cost ► Flexible modular design helps you control tool costs, from simple concept testing to full product development.
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Who is Tower System for? The Embedded Developer Eager to find complete hardware and software embedded solutions. Needs comprehensive prototyping solutions that can expedite time to market while reducing cost and learning curve. The Student/Professor Always on the go. Relies on scalable, low cost development tools and devices to keep his edge and keep his interest. The Hobbyist Master experimentalist. Always seeking community knowledge. Desires modular, build-it-yourself components and a team of people to explore with.
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Build Your System (3 steps or less) 1. Choose a Processor Module 2. Choose Peripheral Modules 3. Connect each module to the Elevator Boards Tower System
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Tower System How to Assemble your Tower System
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Available Tower System Modules ( for latest tools) TWR-SER TWR-MCF5225X-KIT TWR-ELEV TWR-PROTO Peripheral Modules ($15 – $149) Processor Modules ($39-$69) Complete Kits ($99 - $149) TWR-MEMTWR-LCD Coming Soon TWR-MCF51CN-KIT TWR-S08LL64-KIT TWR-S08LL64 TWR-MCF51CN-KIT TWR-MCF5225X TWR-MCF51CN TWR-SENSOR- PAK TWR-S08LL64
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Interact. Explore. Create. Tower Geeks Online Community (
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Freescale MQX™ Software Solutions
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Peripherals are more complex ex: RS232 => Ethernet, USB Solution: Full-Featured MQX RTCS, USB, BSP Drivers, 3 rd party and more ► Customers need an easier way to manage stacks and software Solution: Real-time operating system manages the time of a MCU/MPU Features of an RTOS: Allows multi-tasking Scheduling of the tasks with priorities Synchronization of the resource access Inter-task communication Time predictable Interrupt handling ► Customers need higher quality of code Solution: Backed by Freescale Global FAE, TIC, AE and software developers ► 60% of a team’s resources are spent on software Solution: MQX allow customers to focus on their “Special Sauce” instead of stacks, drivers, etc. ► 32-bit devices require a higher need for re-use 89% of our customers say they reuse code from a previous project Solution: An RTOS allows you to reuse application on different processors and boards ► Customers face the challenge of reducing costs while speeding time to market Solution: Freescale provides complimentary MQX RTOS, USB, TCP/IP, MFS What are your customer’s challenges?
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► A Full-Featured, Scalable and Proven RTOS Real-Time Operating System, Middleware (USB, TCP/IP stacks) and Board Support Packages (I/O Drivers) Scalable: Design by Feature, Size, Speed ► Freescale owned Backed by Freescale Support Source code, exclusive rights to distribute and modify Across the Freescale Portfolio: ARM, ColdFire, Power, DSC, 8-bit, 16-bit No grant back ► Business Friendly Model Lets developers keep their source modifications – Not GPL No royalties Full production source code with silicon ► Value given to customers Savings of $95K from day one Eliminate initial software cost hurdle (Zero to low cost) ► Similar to other software OS like: What is MQX?
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Time2000Time Time Precise Founded MQX Began Embedded Access Inc. (EAI) founded Roots from Precise & ARC Strategic Freescale Partner ARC acquired Precise with MQX Introducing Freescale MQX along with MCF5225x Acquired MQX across Freescale’s portfolio Used in over a million products in Medical, Industrial, and Defense Fortune 500 Companies. Certifiable for Medical (CFR Part 21, IEC ) and Aerospace Standards (DO-178b) Proven: 15+ Years in the Market Place
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc What is Complimentary? Meets majority of customer requirements RTOS (Full priority-based, pre-emptive scheduler) Real-time TCP/IP Communication Suite (RTCS) - TCP/IP, FTP, Telnet, DHCP, SNMP etc.. USB Host – PHDC (medical),HID, MASS, HUB, CDC USB Device - HID, MASS, CDC, PHDC MS-DOS File System (MFS ) BSP I/O Driver: CAN, UART, etc. Basic HTTP Web server Benchmarking Tool Base Support: Freescale TIC, FAE, AE Add-on Software & Services IAR* & CW: MQX Task Aware Debugging with tools Freescale - Level 2 Support Embedded Access: Web server Basic/Standard/Pro, SNTP, XML, SMTP, POP3, SNMP (V3), SFFS Flash File System, On-Site Training, PEG Graphic Builder RTA & IXXAT: Industrial Protocols , CANopen, etc. Freescale Low Cost SSL and SSH Segger: Graphic Libraries What’s Free and Add–on?
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc A Game Changing Move: Why Acquire MQX? ► Freescale Advantage Optimize SW and HW Enable HW features Provide quality, tested and proven code Add differentiating vertical segment software ex: medical Past Customer Problem GUI Application TCP/IP PSP for different processors and NO BSP Wrong Drivers Demo Code The Solution ► Past Freescale and Competitors Offering Long integration time Bait and switch model Huge Up Sell High cost of entry Lack of IP protection Not complete code Example Code
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Designed to be customized by Feature Size Speed ► Lightweight services ► Smaller and faster vs. regular MQX services ► Allows control of RAM/ROM utilization ► Scalable Code Density ideal for MCU & MPU ► ROM size ranges from CFV2: 12K to 150K ► RAM size starting at 2.5K ► 2 task application with 1 LW Semaphore and minimum interrupt stack ► New, custom components can be added Simple and Scalable: Straight- forward API and modular architecture can be fine- tuned to fit application requirements Freescale MQX Software Solution
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Simple and Scalable ► Small, configurable size conserves memory space for application ► Allows developers to add web servers, e- mail, network management, security, and routing to their designs Full- Featured and Powerful ► Developed to be tightly integrated with MQX RTOS ► Includes FTP, Telnet, DHCP, DNS servers and clients, and SNMP client ► Ethernet – Serial to Gateway applications Optional pre-integrated products Also included in TCP/IP Lite by Interniche * Freescale MQX Real-Time Communication Suite (RTCS )
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Advanced kernel analysis tool Allows developers to gain greater visibility into their embedded system. Obtain detailed data about system performance enabling optimization work that can reduce potential performance bottlenecks in their embedded application. ► TAD is included Codewarrior™ Professional Edition (30-day evaluation available) for Coldfire® V2 Core and above ► TAD is included with IAR’s C-SPY Debugger to give additional debugging functionality ► CodeSourcery GNU Tool command-line support MQX Task Aware Debugging
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Secure Shell (SSH) encrypts communications between hosts over an insecure network, and it’s great for logging into and executing commands on networked computers. It’s also useful for tunneling, port-forwarding and secure file transfers using the SFTP protocol. ► Secure Sockets Layer/Transport Layer Security (SSL/TLS) - authenticates endpoints and encrypts channels to provide session privacy and security on the Internet. The standard operates at a higher level in the OSI stack than IPsec, and supports peer negotiation for algorithm selection, public key based exchange of secret session keys and X.509 certificates. – Ultra-small at less than one fifth the size of a typical SSL/SSH client. – Minimal impact on device performance – Minimal impact on flash ROM utilization – FIPS Certified for Multiple Applications – Up to 10x performance advantage over competing SSL and SSH implementations – Freescale hardware Cryptographic Acceleration Unit (CAU) – Mocana purpose-built assembly language optimizations – Mocana’s patented Acceleration Harness ► Freescale’s super-fast, super-small embedded SSH/SSL client by Mocana. NanoSSL™/ NanoSSH™ for Freescale MQX Security Options with Significant Cost Savings
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc NanoSSL™/ NanoSSH™ Customer Base
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc DES 3DES AES ARCFOUR Diffie-Hellman RSA PKCS #1, Version 1.5 PKCS #5 PKCS #7 PKCS #8 PKCS #10 PKCS #12 MD2 MD4 MD5 SHA1 SHA-224 SHA-256 SHA-384 SHA-512 DHDSA/DSS AES128-CBC AES192-CBC AES256-CBC RIJNDAEL128-CBC RIJNDAEL192-CBC RIJNDAEL256-CBC BLOWFISH-128-CBC 3DES-192-CBC ARCFOUR-128 HMAC-SHA1-96 HMAC-SHA1-160 HMAC-MD5-9 HMAC-MD5-128 DSA Public Key 3072 RSA Key Exchange NanoSSL & NanoSSH: Rich Library of Cryptography Options
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Why need Level 2 support? More hand holding, complex application code development, board support package development Most RTOS companies offer these services Freescale will continue to provide standard free support Freescale Level 2 support is very competitive in price ►*►* ► * Will be available on buy direct and disty Freescale MQX Support Plan and Design Services
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► MQX is available on i.MX / ColdFire® / Power Architecture™ processor that are NOT Currently released or Not in the roadmap ► Freescale is making licensable pre-tested port available at a low cost through Embedded Access ► Customer can start development on current released products and should be able to re-use majority of the code ► Competitive Advantage: Low Cost Include 1 Year of Level 2 Premium Support USB may be extra for any porting fees or third party licensing. Assumes no new driver work, BSP for 2.50 exists, and no other NRE. Otherwise additional fees may apply. What if MQX is not released for the product my customer wants?
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Different configurations: Max, Small, Smallest, Typical Try it Yourself: Benchmark Script
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Freescale offers : MQX Hands On Labs/App Notes/Documentations Videos Global Support from FAE Community Public Community: forums.freescale.com/forums.freescale.com/ ► Embedded Access (EAI) offers customizable software training designed for individuals, and companies Canada Training facility or On-site: 2 Day - MQX RTOS Course (Covers the API of the RTOS with hands-on labs) 1 Day - RTCS TCP/IP Stack (Overview of protocols, Initializing RTCS, Socket API ½ Day – USB (Overview of USB, USB Host Stack, USB Device Stack) ½ - 2 Day - Application Development Contact for pricing: access.com/training.htmlwww.embedded- access.com/training.html MQX Training
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Continuing on with MQX
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► MQXUG User Guide MQXUG ► MQXRM Reference Manual MQXRM ► MQXUSBHOSTAPIRM USB Host API Reference Manual MQXUSBHOSTAPIRM ► MQXUSBDEVAPI USB Device API Reference MQXUSBDEVAPI ► MQXUSBHOSTUG USB Host User Guide MQXUSBHOSTUG ► MQXRTCSUG RTCS User Guide MQXRTCSUG ► MQXMFSUG File System User Guide MQXMFSUG ► MQXIOUG I/O Drivers User Guide MQXIOUG ► MQXFS Software Solutions Fact Sheets MQXFS Freescale MQX™ Documentation
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► TWR-MCF51CN-KIT Lab Document ► MCF5225x – Lab Document ► MQX Release Notes ► MQX User’s Guide ► Writing First MQX Application (AN3905) ► Using MQX: RTCS, USB, and MFS (AN3907) ► How to Develop I/O Drivers for MQX (AN3902) Further Reading and Training
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► Videos: MCF5225x & Freescale MQX introduction Getting started with MCF5225x and Freescale MQX Lab Demos And more ► VFTF technical session videos Introducing a modular system, Serial-to-Ethernet V1 ColdFire® MCU and Complimentary MQX™ RTOS Writing First MQX Application Implementing Ethernet Connectivity with the Complimentary Freescale MQX™ RTOS Further Reading and Training (Cont.)
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc ► ► ► Related URL’s
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc CodeWarrior Development Studio for Microcontrollers v10.0
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc CodeWarrior for Microcontrollers 10.0 Integrates the development tools for the RS08, HCS08 and ColdFire ® architectures into a single product based on the Eclipse open development platform.
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc CodeWarrior Roadmap
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Architectures Supported ► Use CodeWarrior Development Studio for Microcontrollers v10.0 to develop RS08, HCS08, and ColdFire projects RS08 derivatives HCS08 derivatives V1 ColdFire derivatives V2 ColdFire derivatives V3 ColdFire derivatives V4 ColdFire derivatives 37
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Multiple Compilers / Single Debugger ► CodeWarrior optimizing compilers RS08 HCS08 V1-V4 ColdFire ► Debugger Eclipse C/C++ Development Tools (CDT) Extended for embedded programming ► Profile and Trace HCS08 derivatives V1ColdFire derivatives 38
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Use Welcome Screen for immediate access to development resources. 39 Welcome Screen
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc New Project Wizard 40 Use New Project Wizard to create a new project in as few as 9 clicks
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc MCU Change Wizard 41 Use MCU Change Wizard to retarget projects to a new processor in as few as 6 clicks
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Project Importer ► Use the Project Importer to import CodeWarrior Classic projects CodeWarrior Development Studio for Microcontrollers v6.x CodeWarrior Development Studio for ColdFire Architectures v7.x 42
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Processor Expert ► A rapid application design tool with … Graphical User Interface which allows an application to be specified by the functionality needed Automatic code generator which creates tested, optimized C code tuned to the application needs and selected Freescale MCU Built-in knowledgebase, which immediately flags resource conflicts and incorrect settings ► Architectures supported RS08 derivatives HCS08 derivatives ColdFire derivatives 43
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Tutorials 44 Step by step tutorials – known as cheat sheets in Eclipse – are available for standard tasks
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Hands-on Lab: Create a project with Processor Expert
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Create a new project to blink an LED ► This hands-on lab shows you how to… Create a new project with the New Project Wizard Use Processor Expert to write a simple application Test the application’s functionality ► The lab uses the TWR-MCF52259 kit. ► The application uses a timer on the MCF52259 to blink an LED 46
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Open new project wizard 1 Click “File” 2 Select “New” 3 Select “Bareboar d Project”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Input project name and select device You can change project location to proper directory. Default location is used. 1 Click “Next” 4 Select “MCF52259” 5 Click “Next” Enter “ LED” 2 Click “-” to expand ColdFire V2 3 Click “-” to expand MCF5225X
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Configure parameters 6 Click “Next” 7 9 Select “Open Source BDM” 10 Click “Next” 8 Deselect “P&E USB BDM Multilink”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Select Processor Expert and configurations Select “Processor Expert” 11 Click “Next” 12 Select “MCF52259CAG80” 14 Click “Finish” 13 Select “Internal FLASH” Configuration
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Project creation completed 51 Please connect TWR-MCF52259 kit to computer with USB cable.
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Build the project 52 1 Select “LED” 2 Click “build” arrow 3 Select “MCF52259_Internal_Flash”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Update Properties 53 1 Click “Project” 2 Select “Properties”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Remove MCF52259 from system path 54 1 Select “C/C++ Build” 2 Select “Settings” 3 Select “ColdFire Compiler Input” 4 Select “ColdFire_Support/(headers)/MCF52259” 6 Click “OK” 5 Click “X” to delete
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Update CPU component 55 3 Select “CpuMCF52259CAG80” 1 Click “+” to expand ProcessorExpert.pe 2 Click “+” to expand Cpus 5 Select “Internal Clock” 6 Press cntl+S to save settings 4 Click arrow
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Add BitIO component for LED 56 3 Right click “BitIO” 4 Select “Add to project” 1 Click “-” to expand CPU Internal Peripherals 2 Click “-” to expand Port I/O
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Configure BitIO Properties 57 2 Select “Bit1: BitIO” Select “PTC0” 3 Select “Output” direction 4 1 Click “-” to expand Embedded Components
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Select BitIO Methods 58 3 Select “generate code” for NegVal 4 Press cntl+S to save settings 1 Click “Methods” 2 Click arrow
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Add TimerInt Component 2 Right click “TimerInt” 3 Select “Add to project” 1 Click “-” to expand Timer
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Configure TimerInt Properties Select “DTIM0_Compare” 2 1 Select “TI1: TimerInt” 3 Click “…”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Configure TimerInt Properties Enter “1” 1 4 Click “OK” Select “sec” 3 2 Click arrow
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Generate code 62 3 Select “Generate code” 1 Press cntl+S to save settings 2 Click “Project”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Copy function call 63 1 Double click “Bit1.c” to open in editor Copy “Bit1_NegVal” function call. 2
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Paste function call into Events.c 1 Double click “Events.c” to open in editor 3 Select “TI1_OnInterrupt” 2 Click “Outline” Paste “Bit1_NegVal” function call. 4
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Build the project 65 1 Click “build” arrow 2 Select “MCF52259_Internal_Flash”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Update debug configuration 66 1 Click “ Debug ” arrow 2 Select “Debug Configuration”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Update target initialization file 67 1 Select “…Internal_Flash – Open SourceBDM” 3 Click “File System…” 2 Click “Debugger”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Navigate to MCF52259.cfg file 68 1 Select “task_example” 2 Select “Project Settings” 3 Select “Debugger” 4 Select “MCF52259.cfg” 5 Click “Open”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Update memory configuration file 69 1 Click “File System…” 2 Select “MCF52259.mem” 3 Click “Open”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Update memory configuration file 70 1 Click “Close”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Flash file to target Click “flash” arrow 2 Select “Flash File to Target” 3 Click “Program with Erase”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Flash file to target Click “Close”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Start debugger 73 1 Click “ Debug ” arrow 2 Select “Debug Configuration”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Select launch configuration file 74 1 Select “…Internal_Flash – Open SourceBDM” 2 Click “Debug”
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc Start application 75 1 Click “Resume” LED connected to PTC0 should be blinking!
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc In Summary By now, you should be able to: ► Understand what MQX is and how to use it ► Create tasks, schedule them and add synchronization using MQX ► Create your own MQX applications ► Understand what the Tower System is ► Understand CodeWarrior Development Studio v 10.0
TM