The Newest S08/RS08 Tool New breed of SPYDER discovered

Similar documents
indart -HCS08 In-Circuit Debugger/Programmer for Freescale HCS08 Family FLASH Devices User s Manual Rev. 2.0

EVBQE128. Evaluation Board for Freescale Flexis QE128. User s Manual

EVB9S08DZ60. Demonstration Board for Freescale MC9S08DZ60. User s Manual

indart -HC08 In-Circuit Debugger/Programmer for Freescale HC08 Family FLASH Devices User s Manual Rev. 2.0 Copyright 2006 SofTec Microsystems DC01027

PK-HCS12C32 Starter Kit for Motorola MC9S12C32 User s Manual

IDB-HC08GZ Evaluation Board For Motorola MC68HC908GZ/GR

User s Manual Copyright SofTec Microsystems. Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc.

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

ECE3120: Computer Systems Hardware & Software Development Tools

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

User's Manual Rev. 1. Freescale Semiconductor Inc. TWRS08UNIVUM

Getting Started with STK200 Dragon

indart -ST7C In-Circuit Debugger for STMicroelectronics ST72CXXX FLASH Devices User s Manual Copyright 2001 SofTec Microsystems DC00326

EB-51 Low-Cost Emulator

CodeWarrior Development Studio for Freescale HCS12(X) Microcontrollers

Controller Continuum. for Microcontrollers V6.3. Quick Start

Welcome to the Controller Continuum Only from Freescale

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

F 2 MC-8FX Family. 8-bit Microcontroller. MB95200 Series

Quick Start Guide. S12VR64EVB S12 MagniV Mixed-Signal MCUs. S12 MagniV

E8a Emulator Additional Document for User's Manual R0E00008AKCE00EP2

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

CEIBO FE-5111 Development System

Evaluation & Development Kit for Freescale PowerPC MPC5517 Microcontroller

DEMO9S08SH8/SG8 Demonstration Board for Freescale MC9S08SH8/SG8

E8a Emulator Additional Document for User's Manual R0E00008AKCE00EP9

EPM900 - Overview. Features. Technical Data

Also available for purchase separately are socket daughter boards for the QFN-11 and QFN-10 packages.

MC68HC908JB8 MC68HC08JB8 MC68HC08JT8

SK-S12XDP512-A. (Freescale Code EVB9S12XDP512) Starter Kit for Freescale MC9S12XDP512. User s Manual. Revision 1.0

Purchase Agreement. P&E Microcomputer Systems, Inc. 98 Galen St. Watertown, MA

DEMO9S08LG32 Up to 5V MCU with integrated LCD display driver

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Watt Saver Software Component (WSC)

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

CEIBO FE-51RD2 Development System

LAB #1: The CSM12C32 Module and PBMCUSLK Project Board

Freescale Semiconductor Inc. Microcontroller Solutions Group. TWR-MCF51CN User Manual Rev. 1.1

Keil TM MDK-ARM Quick Start for. Holtek s HT32 Series Microcontrollers

Getting Started Guide RS-EDP & XC167 CPU Module. Version 2 10th June 2010

Programming in the MAXQ environment

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

Quick Start Guide TRK S12ZVFP64. S12 MagniV MCU for Automotive Heating, Ventilation and Air Conditioning (HVAC) Applications

Approximately half the power consumption of earlier Renesas Technology products and multiple functions in a 14-pin package

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

MB95260H/MB95270H. MB95280H Series. MB95260H Series/MB95270H Series/

Quick Start Guide for the Turbo upsd DK3300-ELCD Development Kit- RIDE

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

DEMO9S08SH32/SG32 Demonstration Board for Freescale MC9S08SH32/SG32

EMULATOR SETUP MB BIT COMPACT-ICE

Quick Start Guide for TWR-S08LL64 TOWER SYSTEM MC9S08LL64. S08 ultra-low-power LCD segment MCU

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

CEIBO FE-W7 Development System

_ V1.1. EVB-5566 Evaluation & Development Kit for Freescale PowerPC MPC5566 Microcontroller. User s Manual. Ordering code

Getting Started with the Microcontroller Student Learning Kit (MCUSLK) Using the MC9S12C32 MCU Application Module (CSM-12C32)

HVP-KV10Z32 User s Guide

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

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

The Freescale MC908JL16 Microcontroller

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON

_ V1.3. Motorola 68HC11 AE/AS POD rev. F. POD Hardware Reference

E8a Emulator Additional Document for User's Manual R0E00008AKCE00EP21

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

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

C8051F411-EK C8051F411 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Kit Overview. 3. Evaluation Board Interface LCD User Interface

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Renesas 78K/78K0R/RL78 Family In-Circuit Emulation

_ V1.1. Motorola 6809 B POD rev. C. POD Hardware Reference

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

DOMAIN TECHNOLOGIES INC. Users Guide Version 2.0 SB-USB2. Emulator

Purchase Agreement. P&E Microcomputer Systems, Inc. 98 Galen St. Watertown, MA

E8a Emulator Additional Document for User's Manual R0E00008AKCE00EP3

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

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

_ V ST STM8 Family On-Chip Emulation. Contents. Technical Notes

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

Purchase Agreement. P&E Microcomputer Systems, Inc. 98 Galen St. Watertown, MA

ST622x Starter Kit User Manual. for ST620x, ST621x and ST622x. Release 3.0. November Ref: DOC-E-ST622XSKUM.

ToolStick-EK TOOLSTICK USER S GUIDE. 1. Kit Contents. 2. ToolStick Overview. Green and Red LEDs. C8051F321 provides USB debug interface.

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

HCS12 BDM Getting Started V4.3

IAR EWARM Quick Start for. Holtek s HT32 Series Microcontrollers

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

DoCD IP Core. DCD on Chip Debug System v. 6.02

NEC 78K0- Family On-Chip Emulation

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Note: The Silicon Labs USB Debug Adapter is not included in this kit and is required to reprogram the board.

Freescale Semiconductor Inc. TWR-MCF51CN User Manual Rev. 1.2

_ V1.2. Motorola 68HC08 JL POD rev. D1. POD Hardware Reference

HandsOn Technology -- HT-MC-02 MODEL: HT-MC-02

CodeWarrior Development Studio for Microcontrollers V6.3

Transcription:

Inga Harris The Newest S0/RS0 Tool New breed of SPYDER discovered Figre : Core Roadmap Performance/ Integration HC OTP MHz HC0 OTP MHz Past HC MHz HC0 MHz Freescale Semiconductor is a global leader in the design and manufacture of embedded semiconductors for the automotive, consumer, industrial, networking and wireless markets. Over the last couple of years, we have put more and more of a focus on providing tools, both for the mass and hobbyist markets. With the recent addition of our e-commerce site, complimentary samples, free-of-charge compilers and debuggers and cost-effective hardware tools, Freescale s microcontroller families are now easily accessible to designers. The latest tool, the USBSPYDER0, manufactured by SofTec Microsystems with a 00 price of $9 USD confirms our commitment to providing small, fast and cost-effective hardware tools to get you started with your design. HC0 and HC -bit cores, introduced in the 90 s, were widely used by major segments of the market. In the late 990 s the HC0 (-bit) and HC (-bit) cores were introduced and are now more popular with customers within niche consumer and industrial applications. In early 000, the HCS -bit core and the HCS0 (S0) -bit core were introduced with a key feature Background Debug Module (BDM), which makes the development process easier. Figure shows a section of Freescale s core roadmap. Present S/SX Up to MHz S0 Up to MHz RS0 Up to 0 MHz CF V Up to MHz The recently introduced RS0 (a reduced HCS0 core made physically smaller by removing instructions and other cost saving methods) and the -bit S0 microcontrollers contain a single-wire background debug interface supporting in-circuit programming of on-chip nonvolatile memory and sophisticated non-intrusive debug capabilities. It is this module that enables development of cost-effective, easy-to-use tools. The same BDM connection is also present on the -bit microcontroller ColdFire V core products currently being introduced (see www.freescale.com/flexis for more information). In 00, freegeeks.net provided the HCS microcontroller community with an open source tool named TBDML (Turbo BDM Light). With, downloads in months, we realized engineers found it very valuable. Now an equivalent tool for our -bit MCUs, BDM-enabled controllers are available in two forms: Open source BDM (OSBDM) for S0s details of which can be found on Freescale Forums (www.freescale.net/forums). This self-build tool has a bill of materials (BOM) of less than $0 dollars and can be bought pre-fabricated from small companies. USBSPYDER0 Development Kit supporting MC9S0QG, MC9S0QD and MC9RS0KA -bit microcontrollers. This kit is designed to support future Freescale -bit, -pin MCUs. OSBDM and USBSPYDER0 essentially do the same thing. They interface between your development environment (Windows PC based) and target MCU as shown in Figure. The main objective of these tools is to provide a less expensive and easy-to-design with option for the enthusiasts to use. USBSPYDER0 is Freescale s new USB-to-BDM development tool. If you are not familiar with BDM, it is similar to debugwire or JTAG, used on our recently launched - and -bit MCUs. The background (BKGD) pin on these devices provides a single-wire background debug interface to the on-chip debug modules. See the Development Tools chapter of any S0 or RS0 data sheet for more information about these debug modules and how to use them. While the interface is a single wire, typically a -pin connector, known as a BDM port, is used to interface with the target, as shown in Figure. The primary function of this BKGD pin is for bidirectional serial communication of active background mode commands and data transfer. During reset, this pin is used to select between starting in active background mode and starting the user s freescale.com/beyondbits

Figure : Development Environment Figure : BDM Connector Windows PC CodeWarrior TM Development Studio for Freescale HC(S)0/RS0 v. SofTec Microsystem SpYder Drivers USB BKGD USBSPYDER0 JB Integrated LS USB in USB/BDM Firmware Socketed Target or RST/VPP Wire BDM Target Board www.freescale.com. To increase the flexibility of the tool, it has a BDM connector for off-board debugging of the supported products in other packages or if the development requires the incorporation of other board components. How USBSPYDER0 Works application program. Additionally, this pin requests a timed sync response pulse, allowing a host development tool to determine the correct clock frequency for background debug serial communications. Background Debug Controller (BDC) commands are sent serially from a host computer to the BKGD pin of the target S0 or RS0 MCU. The commands and data are sent MSB-first using a custom BDC communications protocol. With a single-wire background debug interface, it is possible to use a relatively simple interface pod to translate commands from a host computer into commands for the BDC. In the case of the USBSPYDER0, a low-speed universal serial bus (USB) interface is used. Conveniently, the tool takes the form of a USB flash memory stick. The USBSPYDER0 is a cost effective tool built by SofTec Microsystems with full collaboration from Freescale Semiconductor. Together with the award winning CodeWarrior Development Tools, the USBSPYDER0 provides the essential tools you need to write, compile, download, in-circuit emulate and debug code. Full-speed program execution allows developers to perform hardware and software testing in real time. The tool works up to bus speeds of 0 MHz, supporting the.v operation range of the MCUs. It has an on-board socketed target MCU that can be replaced with other supported PDIP packaged parts available in small sample quantities from By relying on the S0 and RS0 background debug controller (BDC) module, the USBSPYDER0 enables a fast and easy way to program the on-chip flash and any other memories. It is the primary debug interface for development which allows nonintrusive access to memory data and traditional debug features such as CPU register modify breakpoint and single-instruction trace commands. This tool uses the USB interface to communicate to the PC, and the USB bus voltage to power the tool and microcontroller without the bulky wall adapters of old, making it truly portable. The USB power supply can also power the target board, provided not too many motors are running off it (up to 00mA). The MC9S0JB (JB) microcontroller is at the heart of the USBSPYDER0 tool. The MCU has a USB (.0 low speed) interface and operates from the supplied by USB. When the tool supports RS0 MCUs, V is needed for programming. The JB recognizes the target and via control of PTD0 can enable the V signal using the DC-DC converter chip. The Newest S0/RS0 Tool

Figure : SpYder Schematic LD DEMO RED 0 0 0 0 BKGD RESET# U PTA0/KBIP0/TPMCH0/ADPO/ACMP PTA/KBIP/ADP/ACMP- PTA/KBIP/SDA/ADP PTA/KBIP/SCL/ADP PTA/ACVPOBKGD/MS PTA/RQ#TCLK/RESET# MC9S0QG VSS (DIP) C 00mf V J BKGD RESET# BDM R OR Not Populated _CTRL VIN INH U VOUT LD9- C uf V R K _CTRL TP TP0 TP TP (Pads for bed of nails) R 0K J RESET# BKGD I/0 0 0 0 0 J D- D USB (TYPE A) C 00nf V R R R R R9 0K C 00nf V MHz TP R0 K 0 R 0M 9 0 A OSC CGMXPC CGMXPC PTE/D- PTE/D PTE/TCH0 PTE/TCH0 PTE0/TCLK PTC0/TxD PTC/RxD PTDD U MCHC90JBFA VREG VREGA0 VREGA IRQ# IRQ# PTA0/KBA0 PTA/KBA PTA/KBA PTA/KBA PTA/KBA PTA/KBA PTA/KBA PTA/KBA CGMOUT CGMOUT VSSA0 VSSA VSS 9 TP TP 0 9 TP0 C 00nf V RESET_SEL _CTRL R K C 00nf V C uf V Q BSS C0 V uf V C9 R 00K Q IRLML0 CB 00nF V U VOUT SHDN 00nF V VCC C C- C C- C 00nF V C 00nF V C 00nF V RESET_SEL R 00K Q BSS R 00R RESET# C 00nf V ST Figure - USBSPYDER0 Schematic freescale.com/beyondbits

Step USBSPYDER0 Board Assembly The essential parts of the USBSPYDER0 tool are already populated on the product, allowing you to use it as a standalone tool with the socketed microcontroller. If there is a requirement to use another package type or a separate target board, it is also supported. By adding a 0 ohm resistor or a short circuit on the space next to the bed of nails labeled R, the power supply is connected to the BDM socket so you can use another target board. The net result is the USBSPYDER0 Discover Kit turns into a BDM pod. Step Debugger Installation CodeWarrior Development Studio for Freescale HC(S)0/ RS0 v. Special Edition is available free of charge on the USBSPYDER0 CD. More information on the features of this tool is available at www.freescale.com/codewarrior. Without a license key, the product will run in a KB code-size in limited demonstration mode. To break the KB limit, there are two options: Contact Freescale to request an unlimited period, free license key to increase the code size limit to KB Contact Freescale to request a 0-day limited, free license key to run the compiler without code size limitations. Step Drivers Once the board is ready for development, the CodeWarrior tool is installed, and the next step is to make the USBSPYDER0 communicate with the debugger. After the drivers have been installed from the accompanying CD and the tool is connected to the PC for the first time Windows will recognize a new USB device; the Windows New Hardware Wizard dialog box will be opened and asked for the required driver. To complete the installation the developer must simply choose the Install Automatically option. Step Ready to Discover It is important to appreciate that USBSPYDER0 uses the target MCU to execute the in-circuit debugging, not an emulator, so the microcontroller s peripherals (e.g. timers, A/D converters, Serial Communication Modules) are not reconstructed by software or an external device. To create a new project with the CodeWarrior tool for any of the devices supported by USBSPYDER0 the first place to start is with the CodeWarrior tool. From the main menu, select File > New Project or from the startup box click Create New Project. A dialog box will then appear prompting to select the target device from a pull down menu. Select SofTec HCS0 as the connection type. Then set the code type, project name and location. If there are no files to add and you do not want to use the device initialization tools, then press Finish. CodeWarrior will create the project, set up the framework for the code and include the header file with all the register definitions. Once you have written code and are ready to start debugging, make the file and then compile. There are a few ways to do this by either using the shortcut buttons on the window, using the drop down menu Project or by pressing F then F. The first time the debugging session is entered an MCU Configuration dialog box will open, prompting to select the debugging hardware connection to your PC. Make sure that the connection type USBSPYDER0 is selected. At this point the CodeWarrior tool has erased and reprogrammed the memory and trimmed the oscillator if the feature is available on the selected MCU. At this stage you have the tools you need to start debugging code. The CodeWarrior tool suite enables a variety of ways to analyze program flow via breakpoints, watchpoints and a trace buffer. All these features are implemented by taking advantage of the target microcontroller s debug peripheral. Figure shows the CodeWarrior window which will consist of a: Source window with your code displayed Assembly window where you can see what the compiler has created from your source code Registers window where the CPU registers are visible Memory window where you can watch any location or force bytes to another value Other windows with data, procedures and commands The format of the data and the refresh rates of the data can be changed by right clicking on the window and changing the mode or format. Preferred settings can be saved by going to File > Save Configuration. Users new to the CodeWarrior tool suite should take a few minutes to familiarize themselves with the Start/Continue, Single Step, Step Over, Step Out, Assembly Step, Halt and Reset Target buttons. Application notes AN Introduction to HCS0 Background Debug Mode and AN Getting Started with HCS0 and CodeWarrior Using C are good resources when learning about the debugging environment. The bed of nails next to the MCU can be connected to a scope to allow monitoring of the pins outside the debugger, in real time. The Newest S0/RS0 Tool 9

Figure : CodeWarrior Screenshot Summary For its size and simplicity, the USBSPYDER0 Discovery Kit is a surprisingly flexible tool that meets low budget developments requirements. It supports Freescale s -pin S0 devices with the ability to extend pin count using the off-chip target option. When combined with the power of CodeWarrior tool suite offerings IDE, compiler, debugger, editor, linker, assembler, run control devices Freescale provides the key tools necessary to build platforms and applications for the mass market and hobbyists. Happy Developing! Further Reading Materials AN Introduction to HCS0 Background Debug Mode AN Getting Started with HCS0 and CodeWarrior Using C BRBITLOWEND A Little -bit Goes a Long Way HCS0QRUG HCS0 Peripheral Module Quick Reference RS0 Peripheral Module Quick Reference A Compilation of Demonstration Software for RS0 Modules Inga Harris graduated from the University of Strathclyde in 000 with an honors degree in electronics and electrical engineering. Her Technical Marketer and Applications Engineering career at Freescale has predominantly been with the -bit MCU families with a strong focus on Consumer and Industrial markets. 0 freescale.com/beyondbits