IAR Embedded Workbench for HCS12

The complete development toolchain IAR Embedded Workbench for HCS12 provides one toolbox in one view, giving you one uninterrupted workflow.


User-friendly IDE

Integrated development environment with project management tools and editor. Included is automatic checking of MISRA C rules (MISRA-C:2004), configuration files, linker and library tools as well as example projects and code templates.


Powerful build tools

The IAR C/C++ Compiler is a highly optimizing C and C++ compiler for HCS12. Included is also run-time libraries and a relocating HCS12 assembler.


Comprehensive debugger

The C-SPY Debugger is a comprehensive debugger with HCS12 simulator and support for RTOS-aware debugging on hardware and BDM debugger support.


On-demand training included

When you buy a license of IAR Embedded Workbench for HCS12, you get access to free training courses through our IAR Academy on Demand offering.

Latest releases

Version 4.10


The product now uses the current C standard defined in 1999, known as C99, as the default C language.

Compiler optimizations

Improved optimizations will give faster execution of target code and smaller code size.

Automatic selection of printf/scanf formatter

The compiler/linker will parse the printf/scanf format specifiers and select the smallest possible formatter from the library.

#pragma default_variable_attributes and #pragma default_function_attributes
Two new pragma directives have been added to set default placement and attributes for variable/function declarations and definitions. This means that you can override multiple declarations and definitions by using a single pragma directive.

New segment

A new segment EARLYDIFUNCT is added. It holds the dynamic initialization vector used by C++ for objects that require early initialization,typically stream I/O. This section can be placed anywhere in ROM memory.

New text editor and source browser

A new text editor and source browser are introduced in this version. The new features include auto completion, parameter hint, code folding, block select, block indent, bracket matching, zoom, and word/paragraph navigation. The new source browser adds features like Go to Declaration and Find All References to symbols.

New license management system

The new LMS used with this release introduces new features like commuter licenses, automatic license activation, and support for virtual servers. It is easier to administrate and a single installer concept enables easy transfer between all variants of IAR Embedded Workbench for a certain product by a license upgrade.


The version control integration has been extended with support for Subversion (SVN).

Project connection

Files or file packages generated by external code generation tools can be imported and IAR Embedded Workbench automatically detects changes in the generated file set. This enables automated integration with for example device configuration tools.

Open Source BDM support

Support for Open Source BDM has been added.

Timeline window

A Timeline window in the simulator allows correlated visualization of call stack, interrupt log, and data log values plotted against time.

Custom SFR window

It is now possible to define custom SFRs (special function registers) in C-SPY with selectable access size and type.

Call Graph window

A new Call Graph window has been added. It is browsable and displays all calls made to and from each function from any source file in the active project.

Macro Quicklaunch window

The new Macro Quicklaunch window makes it possible to evaluate expressions and to launch C-SPY macros. The return value from the evaluated macro or expression is shown in a separate column and the user can re-trigger the evaluation at any given point.

New devices

Support has been added for the following devices: MC9S12A32, MC9S12B256, MC9S12C96, MC9S12DT512, MC9S12DJ512, MC9S12E256, MC9S12GN32, MC9S12G48, MC9S12G240, MC9S12HY48, MC9S12HY32, MC9S12T64, MC9S12C128, MC9S12GC128, MC9S12GC96, MC9S12C64, MC9S12GC64, MC9S12C32, MC9S12GC32, MC9S12GC16, MC9S12HN64, MC9S12Q128, MC9S12Q96, MC9S12Q64,MC9S12Q32.

What type of license do you need?

Our tools are available in a flexible license model to suit your company needs. Together with our support and update agreements, you get the support you need in multiple time zones and multiple languages. Send a request for quote or contact sales to get started.

Read more about Licenses

Want to know more about this product?

We are present worldwide to help you wherever you are, and we are happy to answer any questions you might have about our products.

Get quote

Want to use this product in your development projects? Our sales team is here to guide you to the right solution for you. Complete this form and we will get back to you with a price quote tailored for your needs. We look forward to your request!

* read our Privacy policy

User guides and documentation

Languages and standards

The IAR C/C++ compilers offer different dialects of the C and C++ programming languages, as well as different extensions specific for embedded programming (please note that not all language standards are supported for all target implementations). The compiler can be instructed to disable extensions for strict conformance to the standards. 

A wide range of industry-standard debug and image formats compatible with most popular debuggers and emulators are supported. This includes ELF/DWARF where applicable.

ISO/ANSI C/C++ Compliance

The IAR C/C++ compilers adhere to a freestanding implementation of the following C programming language standards:

  • INCITS/ISO/IEC 9899:2018, known as C18 (Latest version only).
  • The compiler supports all C++17 features. The C++ library supports C++14 with no C++17 additions.  (Latest version only).
  • ISO/IEC 14882:2015, known as C++14
  • INCITS/ISO/IEC 9899:2012, known as C11
  • ANSI X3.159-1989, known as C89

The ISO/ANSI C/C++ Compliance level varies between the different compilers. For complete information, please refer to the IAR C/C++ Compiler user documentation in your chosen product.

IEEE 754 standard

IAR Embedded Workbench supports the IEEE 754 standard for floating-point arithmetic.


MISRA C is a software development standard for the C programming language developed by MISRA, The Motor Industry Software Reliability Association. Its aims are to facilitate code safety, portability and reliability in the context of embedded systems, specifically those systems programmed in ISO C.

The first edition of the MISRA C standard, "Guidelines for the use of the C language in vehicle based software", was produced in 1998. In 2004, a second edition was produced with many substantial changes to the guidelines, including a complete renumbering of the rules. Additionally MISRA C:2012 with extended support and MISRA C++:2008 for identifying unsafe code constructs in the C++ standard have also been added to the standards.

IAR Embedded Workbench features an add-on product C-STAT so you can check compliance with rules as defined by MISRA C:2004, MISRA C++:2008 and MISRA C:2012.

Test validation

We use the following commercial test suites to test conformance of our tools to the standards:

  • Plum Hall Validation test suite for ISO/IEC C conformance
  • Perennial EC++ Validation Suite for C++ conformance
  • Dinkum C++ Proofer to test how our libraries conform to the C and C++ standard as well as test our STL implementation against the C++ standard.

In addition to the commercial suites, we use several in-house test suites for testing new features, regression testing, corrected errors, etc.

C-SPY target system and BDM support

C-SPY target system support

  • Simulator

BDM debugger support

for the following interfaces:

  • P&E CABLE12, CABLE12HS and Multilink Interface (parallell port and USB)
  • Cyclone PRO debug interface (serial, USB and ethernet)
  • Motorola SDI interface
  • SofTec inDART-HCS12 and inDART-ONE

Download free trial

IAR Embedded Workbench for HCS12 - Free trial version

The evaluation license is completely free of charge. It runs for 14 days and allows you to try the integrated development environment and evaluate its efficiency and ease of use.

Restrictions to the 14-day time-limited evaluation

  • A 14-day time limitation.
  • Must not be used for product development or any other kind of commercial use.
  • Source code for runtime libraries is not included.
  • No support for MISRA C.
  • Limited technical support.

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.