Advertisement

Quick Links

SK-S12(X) Series
ZK-S12(X) Series
Starter Kits for
Freescale HCS12(X) Family
User's Manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SK-S12 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for SofTec Microsystems SK-S12 Series

  • Page 1 SK-S12(X) Series ZK-S12(X) Series Starter Kits for Freescale HCS12(X) Family User’s Manual...
  • Page 3 SK-S12(X) Series ZK-S12(X) Series Starter Kits for Freescale HCS12(X) Family User’s Manual Revision 1.0 ® Copyright © 2005 SofTec Microsystems DC00891...
  • Page 4 Information in this manual is intended to be accurate and reliable. However, SofTec Microsystems assumes no responsibility for its use; nor for any infringements of rights of third parties which may result from its use.
  • Page 5: Table Of Contents

    SK/ZK Series User's Manual Contents Before Starting 5 0.1 Important Notice to Users 5 0.2 Required Skills 5 Overview 7 1.1 Main Features 7 1.2 Background Debug Module (BDM) 8 1.3 CodeWarrior Development Studio Special Edition 9 1.4 Recommended Reading 9 1.5 Software Upgrades 10 1.6 Getting Technical Support 10 Hardware Features 11...
  • Page 6 Contents 3.4 Installing the Software 17 3.4.1 Installing CodeWarrior Development Studio 18 3.4.2 Installing SofTec Microsystems Additional Components 18 3.5 Installing the Hardware 18 3.6 Application Tutorial 21 Debugging Features 27 4.1 Creating Your Own Application 27 4.1.1 Using the Project Wizard to Create Your Application Skeleton 27 4.1.2...
  • Page 7: Before Starting

    0.1 Important Notice to Users While every effort has been made to ensure the accuracy of all information in this document, SofTec Microsystems assumes no liability to any party for any loss or damage caused by errors or omissions or by statements of any...
  • Page 9: Overview

    SK/ZK Series User's Manual 1 Overview 1.1 Main Features The SK-S12(X) and ZK-S12(X) Series Starter Kits are full-featured, ready-to- use evaluation boards for the Freescale HCS12(X) family. The Starter Kits have been designed for the evaluation and the debugging of user applications.
  • Page 10: Background Debug Module (Bdm)

    SK-S12(X) and ZK-S12(X) Series Starter Kits. For a detailed list of the hardware features of your specific Starter Kit, please refer to the Starter Kit’s specific user’s manual, available in PDF format on the SofTec Microsystems’ “System Software” CD-ROM. 1.2 Background Debug Module (BDM)
  • Page 11: Codewarrior Development Studio Special Edition

    SK/ZK Series User's Manual 1.3 CodeWarrior Development Studio Special Edition The Starter Kits come with CodeWarrior Development Studio, Special Edition. CodeWarrior Development Studio is a powerful and easy-to-use tool suite designed to increase your software development productivity. It provides unrivalled features such as Processor Expert application design tool, full chip simulation, data visualization and project manager with templates to help you concentrate on the added value of your application.
  • Page 12: Software Upgrades

    SofTec Microsystems partner. SofTec Microsystems offers its customers a technical support service at support@softecmicro.com. Before getting in contact with us, we advise you to check that you are working with the latest version of the Starter Kits’...
  • Page 13: Hardware Features

    Note: for a detailed list of the hardware features of your specific Starter Kit, please refer to the Starter Kit’s specific user’s manual, available in PDF format in the SofTec Microsystems’ “System Software” CD-ROM. The standard functions are explained in the following sections.
  • Page 14: Bdm Connector

    Hardware Features The microcontroller (installed on a ZIF socket on ZK-S12(X) series); Header connectors to access the I/O pins of the microcontroller; An oscillator area to configure the clock source of the microcontroller; MCU jumpers for setting the microcontroller’s operating mode, the microcontroller’s internal voltage regulator and the microcontroller’s internal A/D converter voltage reference.
  • Page 15: Inputs Section

    SK/ZK Series User's Manual 2.1.6 Inputs Section All of the SK-S12(X) and ZK-S12(X) Series Starter Kits feature an input area with various input controls like a potentiometer, DIP-switches and push- buttons. Some Starter Kits may feature additional functions. 2.1.7 Outputs Section This section features high-efficiency (low-current) LEDs, connected to the microcontroller through jumpers.
  • Page 17: Getting Started

    The Starter Kit includes the following items: A full-featured evaluation board; An AC adapter; A USB cable; The SofTec Microsystems “System Software” CD-ROM; The CodeWarrior Development Studio Special Edition CD-ROM; A QuickStart Tutorial poster; A registration card; This user’s manual.
  • Page 18: Host Mode

    Getting Started Verify that all jumpers are in their default position. See the “Summary of Jumper and Connector Settings” chapter on the Starter Kit’s specific user’s manual. Power up the Starter Kit. The power connector accepts a 12 V DC wall plug-in power supply with a 2.1 mm pin and sleeve plug with positive in the center and sleeve as ground.
  • Page 19: Host System Requirements

    USB driver will be automatically found by Windows when you connect the Starter Kit. The Starter Kit requires that both CodeWarrior Development Studio Special Edition and SofTec Microsystems Additional Components be installed in the host PC. Note: CodeWarrior Development Studio for HC(S)12 must be installed first.
  • Page 20: Installing Codewarrior Development Studio

    CodeWarrior CD-ROM into your computer’s CD-ROM drive. A startup window will automatically appear. Follow the on-screen instructions. 3.4.2 Installing SofTec Microsystems Additional Components The SofTec Microsystems Additional Components install all of the other required components to your hard drive. These components include: The Starter Kit’s USB driver;...
  • Page 21 SK/ZK Series User's Manual Install all the required system software as described in the previous section. Power up the Starter Kit. The power connector accepts a 12 V DC, wall plug-in power supply with a 2.1 mm pin and sleeve plug with positive in the center and sleeve as ground.
  • Page 22 Getting Started Click the “Next >” button. Depending on your Windows settings, the following warning may appear. Note: this warning is related to the fact that the USB driver used by the Starter Kit is not digitally signed by Microsoft, and Windows considers it to be potentially malfunctioning or dangerous for the system.
  • Page 23: Application Tutorial

    (see the “Summary of Jumper and Connector Settings” section in the Starter Kit’s specific manual). Start CodeWarrior Development Studio by selecting “Start > Programs > SofTec Microsystems > SK and ZK-S12(X) Series > CodeWarrior Development Studio”. CodeWarrior Development Studio will open. Page 21...
  • Page 24 Getting Started From the main menu, choose “File > Open”. Select the “Demo.mcp” workspace file that is located under the “\Program Files\SofTec Microsystems\SK and ZK-S12(X) Series\CodeWarrior Examples \[Your Starter Kit Code]\[Your Target Microcontroller]\Demo” directory. Click “Open”. The following window will appear. The C code of this example is contained in the “main.c”...
  • Page 25 SK/ZK Series User's Manual From the main menu, choose “Project > Debug”. This will compile the source code, generate an executable file and download it to the Starter Kit board. A new debugger environment will open. Page 23...
  • Page 26 Getting Started From the main menu, choose “Run > Start/Continue”. The program will be executed in real-time. By rotating the potentiometer on the Starter Kit board, you affect the results of the A/D conversion, and the result of each conversion is displayed on the Starter Kit’s output section.
  • Page 27 SK/ZK Series User's Manual features, select “Help > CodeWarrior Help” from CodeWarrior Development Studio’s main menu. Page 25...
  • Page 29: Debugging Features

    SK/ZK Series User's Manual 4 Debugging Features 4.1 Creating Your Own Application 4.1.1 Using the Project Wizard to Create Your Application Skeleton CodeWarrior Development Studio helps you get started with your own application by including a project wizard specific for HCS12-based SofTec Microsystems boards.
  • Page 30: Gdi Target Interface Notes

    Debugging Features First, ensure that the “HW code” parameter is set to your Starter Kit code, then set the “Device code” parameter to the specific target microcontroller you are working with. Additional communication parameters can be specified by clicking the “Communication Settings” button. 4.2 GDI Target Interface Notes The Starter Kit’s built-in USB to BDM interface is based on the SofTec Microsystems’...
  • Page 31 SK/ZK Series User's Manual A dialog box will appear asking you to locate the GDI DLL file needed to interface with the Starter Kit. Select the “SofTec_BDM12.dll” file located in the “\Program Files\Metrowerks\CodeWarrior CW12\prog\” directory. The MCU Configuration dialog box will appear allowing you to select the Starter Kit board as the hardware debugger.
  • Page 32: Breakpoints And Trace

    Debugging Features On the CodeWarrior debugger interface a new menu (“inDART- HCS12”) will be created. From this menu, select “Load” and locate the file your project is based on. 4.3 Breakpoints and Trace CodeWarrior offers a variety of tools for analyzing the program flow: breakpoints (both simple and complex), watchpoints and a trace buffer.
  • Page 33: Notes And Tips

    SK/ZK Series User's Manual Note: the Single Step command (in a C source code) and the Step Over and Step Out commands (both in a C and Assembly source code) use one hardware breakpoint. 4.4 Notes and Tips 4.4.1 Reading Peripheral Status Care must be taken when reading some peripheral’s status/data registers, since a reading operation may cause the clearing of flags.
  • Page 34: Wait" Assembly Instruction

    Debugging Features 4.4.4 “WAIT” Assembly Instruction If the SYSWAI bit in the CLKSEL register has been set, the “WAIT” instruction will cause a BDM communication loss. This is because the system clock is suspended in WAIT mode, therefore stopping the BDM peripheral.
  • Page 35: Hardware Breakpoints And Software Breakpoints

    SK/ZK Series User's Manual dialog box, choose “MCU Configuration” from the “inDART-HCS12” menu. The MCU Configuration dialog box will appear. Press the “Communication Settings” button. 4.4.8 Hardware Breakpoints and Software Breakpoints A “hardware” breakpoint is set by taking advantage of the microcontroller’s integrated debug peripheral.
  • Page 36: Datablaze Programming Utility

    Debugging Features 4.5 DataBlaze Programming Utility A full-featured programming utility (DataBlaze) is also provided with the Starter Kit. To start the DataBlaze utility select “Start > Programs > SofTec Microsystems > SK and ZK-S12(X) Series > DataBlaze Programmer”. DataBlaze offers the following advanced features: Code/data memory editing;...
  • Page 37: Datablaze Notes

    SK/ZK Series User's Manual 4.5.1 DataBlaze Notes The “Mass Erase” operation always blanks the device (even if the device is protected or secured) and “unsecures” the device (the FLASH Options/Security Byte location is programmed with 0xFE). The “Blank Check” operation doesn’t blank check the FLASH Options/Security Byte location.
  • Page 38 Debugging Features In the “Auto” operation, a “Run” option is available which, if enabled, resets the microcontroller and runs the user application at the end of programming. Page 36...
  • Page 39: Troubleshooting

    5.1.1 USB Driver Problems If you connected the Starter Kit board to the PC before installing the CodeWarrior user interface and the SofTec Microsystems Additional Components, the Starter Kit USB driver may not have been correctly installed on your system. Unplugging and replugging the USB cable is of no use, since Windows has marked the device as “disabled”.
  • Page 40: Communication Can't Be Established With The Board

    Troubleshooting 5.1.2 Communication Can’t Be Established with the Board Make sure the Starter Kit is connected to the PC and powered on. Make sure that the “BKGD ENA” and “RESET ENA” jumpers in the “USB TO BDM” section are inserted. Make sure that the “MODA=1”...
  • Page 41: Communication Errors When Using A Bdm Tool

    SofTec Microsystems partner. SofTec Microsystems offers its customers a free technical support service at support@softecmicro.com. Before getting in contact with us, we advise you to check that you are working with the latest version of the Starter Kit system software (upgrades are available free of charge at http://www.softecmicro.com).
  • Page 44 Copyright © SofTec Microsystems®. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. D es igned by...

This manual is also suitable for:

Zk-s12

Table of Contents