image image image
image image image image image image image
image Cosmic EU Cosmic US Cosmic Germany Cosmic Italia Cosmic France image
image image
image image

Home / Products / NXP 68HC12/HCS12 tools

Cosmic Products quick Links

Cosmic 68HC12 and HCS12 Cross Development Tools

NXP™ and the NXP logo are trademarks of NXP Semiconductor, Inc. All other product or service names are the property of their respective owners. ©NXP Semiconductor, Inc. 2004
Cosmic's toolchain for the 68HC12/HCS12 family is part of a complete and uniform product line incorporating over 20 years of innovative design and development. Cosmic's familiar and easy to use software interface is available for all NXP microcontrollers to simplify the migration between targets. All Cosmic products include one year of technical support and updates.

For Cosmic S12X and XGATE tools information Click here.

Integrated Development Environment

All Cosmic C Cross Compilers for Windows include IDEA - Cosmic's own integrated development environment which is preconfigured for the 68HC12/HCS12 family of processors. IDEA is designed specifically for developing embedded applications with Cosmic compilers. IDEA integrates an editor, project manager, graphical smart build/make facility, program analyzer, link file generator, documentation manager and ZAP debugger into one easy to use environment running under Windows.
Click here for more information about IDEA.


The C Compiler package includes: an integrated development environment with optimizing ANSI-C cross compiler, macro assembler, linker, librarian, hex file generator, object format converters, debugging support utilities, run-time library source code, and a multi-pass compiler command driver. The compiler also supports non-intrusive C source-level debugging with Cosmic's line of ZAP debuggers.
Click here for general information on Cosmic Compilers.
68HC12/HCS12 specific features include:
  • HC12 and HCS12 Cores
    The Cosmic 68HC12 / HCS12 compiler generates highly efficient code for the HC12, HCS12, S12 MagniV and S12 SOC microcontrollers.
  • ANSI and ISO C Compiler
    The Cosmic 68HC12 and HCS12 compiler follows ANSI and ISO rules and conventions. All code and libraries are optimized specifically for the 68HC12 and HCS12 processor cores.
  • Reentrant and Recursive
    All code is fully reentrant and recursive using standard ANSI stack frame conventions.
  • Bank Switching
    Automated source level support for 68HC12 and HCS12 Code bank switching (Paging) using PPAGE. Data bank switching is also supported using DPAGE and EPAGE with HC12A4.
  • Moveable Code Feature
    Moveable code feature is designed to make RAM based code like boot loaders easy to create and maintain. The Linker automatically creates a segment in ROM to store moveable code. Then at run time, use the supplied library function to locate and copy the moveable code into RAM at any time for execution.
  • Position Independent Code and Data
    Compiler and libraries provide options to generate position independent code and data which is useful for moveable code such as boot loaders and flash programmers.
  • Byte EEPROM Support
    Compiler provides transparent support for on-chip EEPROM (library source included). Allocate any C data object(s) to the EEPROM and the compiler takes care of the formatting and programming.
  • In-line Assembly
    The compiler provides three convenient methods for adding assembly code inside a C program. Includes an argument passing mechanism.
  • IEEE-754 Floating Point
    Supports IEEE 32 bit single and 64 bit double precision floating point formats with full ANSI libraries (Source code included).
  • C Support for Zero Page
    Compiler source extensions provide efficient use of the 68HC12 direct addressing mode.
  • Absolute Listings
    Optionally produce relocatable and/or absolute C interspersed with the corresponding Assembly listings.
  • Automated Check Sums
    Easy to use check sum facility and library (Source included) allow users to quickly implement an efficient check sum on any or all sections. Check sum calculation and insertion is transparently managed by the linker.
  • Mixed C and Assembly
    Cosmic tools support mixed C and Assembly applications. Including Assembler support for C #defines and #includes. so C and assembly language modules may share common constants and macros.
  • Host Independent Formats
    The Cosmic relocatable and absolute object formats are host independent. This allows user's on PC, SUN and HP to share objects for linking and debugging.
  • ELF/DWARF Debug Support
    The Cosmic compiler suite supports the ELF DWARF standard debug format used by many popular emulators and logic analyzers.
  • In-Circuit Emulator Compatibility
    Cosmic's 68HC12 compiler is compatible with emulators and BDM debuggers from I-Systems, Lauterbach and P&E Micros.
  • Flexible Compiler Interface
    Cosmic compilers are designed to be powerful and flexible so they can be used with virtually any environment. Use Cosmic's own IDEA interface or use your favorite editor, make utility and/or source code control system - It's Your Choice!!
  • OS Compatibility
    Cosmic HC12/HCS12 compiler is compatible with most HC12 operating systems and real-time kernels including specific ports from CMX, MicroC/OS-II and OSEK vendors.
  • OSEK/VDX Certified
    OSEK/VDX is an Automotive consortium aiming at an industry standard for an open-ended architecture for distributed control units in vehicles. OSEK is an abbreviation for a German term which translates to "Open systems and the corresponding interfaces for automotive electronics". VDX is an abbreviation for Vehicle Distributed eXecutive. Cosmic HC12/HCS12 compiler is OSEK/VDX Certified with operating systems from 3SOFT, LiveDevices Limited , NXP and Vector Informatik.
  • Unit Testing
    Cosmic HC12/HCS12 compiler has been integrated and tested with Vector Software's VectorCAST for 68HC12. VectorCast is an Automated Module Test System that automates unit/component level testing of safety and mission critical software applications written in C. This state-of-the-art automation includes the tasks of building complete test harnesses, test cases and execution reports. This eliminates the need to manually generate test code to isolate individual software components.
ZAP Debugger

Cosmic's ZAP debugger is a full featured C and Assembly language source-level debugger for embedded applications. ZAP's intuitive graphical interface is uniform for all targets and execution environments. ZAP is available in 2 execution versions for the HC12/HCS12. (1) ZAP SIM Debugger with included processor Simulator, (2) ZAP BDM debugger/flash programmer uses the HC12/HCS12 on-chip background debug mode.

Click here for general information about the ZAP debugger.

ZAP 6812 BDM specific features include:

  • BDM Interface Cables
    ZAP BDM supports Background Debug Mode cables from P&E Microcomputer Systems. Including:
    Multilink Universal, Multilink FX and USB and LPT BDM Multilink for HCS08 / HCS12.
    Includes Multilink firmware update support
  • Real-time debugging
    ZAP 6812 BDM provides a low cost real-time target debugging environment using the on-chip Background Debug Mode protocol and hardware breakpoint module. ZAP Programs and debugs single chip applications directly in Flash in real-time. No remapping or reprogramming required.
  • Flash Programming
    ZAP 6812 BDM supports most on-chip FLASH and Byte EEPROM including HC12 and HCS12 devices with 32K, 64K, 96K, 128K, 256K and 512K on-chip Flash and/or 1K, 2K and 4K of Byte EEPROM.
  • Automatic Clock Detection
    ZAP BDM connects through a PC parallel or USB port and automatically determines the target clock speed for connection and allows continued debugging even through PLL bus speed changes.
  • Flash Security
    ZAP 6812 BDM supports the 68HC12 and HCS12 FLASH security feature.
  • Multiple Execution Modes
    ZAP BDM offers 3 execution modes
    BGND mode - ZAP will uses a BGND instruction swap for standard breakpoints. This allows an unlimited number of breakpoints when debugging from RAM.
    HDBK mode - The default breakpoint mechanism will use the on-chip Hardware breakpoint module if available.
    ISTEP mode - This mode uses the BDM instruction step to execute between breakpoints.
  • Hardware Breakpoint
    ZAP fully utilizes the on-chip hardware breakpoint module to provide real-time execution and data breakpoint capabilities. ZAP transparently configures the hardware breakpoint module to supports real-time execution breakpoints in both paged and unpaged memory.
image image image image Contact Cosmic
image image image image image image